Re: What I'd like to see gsoc achieve: plone distributions
Dylan Jay <djay-n0pU0XVUApFWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <CANyGbvf=xta8GAO4gpMrENZiGaGDNTSjXPT7BqjQmKTEiyPafw@mail.gmail.com> |
On 28 Mar 2015 01:59, "Asko Soukka" <[email protected]> wrote: > > > Dylan Jay <djay-n0pU0XVUApFWk0Htik3J/[email protected]> kirjoitti 27.3.2015 kello 11.47: > >> I figure the simplest way is to use GS but store it in portal_resources inside the theme in a profiles folder. > > This probably should be implemented into p.a.themingplugins (if it's not a problem that themingplugins has dependency on jbot, which would be unnecessary for this): > I'd prefer not to see it in themingplugins as I don't agree with encouraging jbot use as it discourages the use of a proper api and instead makes hacking the core the recommended way to customise a site. Besides its a change unrelated to jbot or ttw coding so why conflate it? Personally, if others agree this is a good way forward, I'd prefer to see it in the core since it adds an extra burden to theme developers to get someone to install this plugin before their theme will properly work. Otherwise c.themesitesetup? > - a button into theme-editor to create a new GS-export into theme's resource directory (it's done by using GS' tarball export API, opening the tarball and dumping its contents into theme resource directory) > > - GS step filter might be unnecessary, because it's easy enough to delete extra steps afterward (only downside is the expensive structure export step, but I understood that this would be used mostly only during development phase) > > - enabling theme would import its profile (pretty trivial to do into p.a.themingplugins: steps from resource directory should be wrapped into a tarball and tarball fed to GS import API) > > But should there be support for uninstalling the profile imported during a theme activation? And if so, would it be good enough to run GS implicit "magical" uninstall, or should an explicit uninstall profile be supported? > I suppose it should mirror fs GS as much as possible since that is well supported and documented including uninstall profiles and possibly someway to support upgrade profiles? Do zip themes even have version numbers now? > >> You can have a control panel to snapshot the current site and that could include filters to only include the "right" kinds of GS steps. There is GS for creating content using plone.rfc822 now but not for saving content to GS I believe. The format kind of sucks and it only handles certain content types so is not universal. > > When it's not universal? AFAIK it emulates DAV PUT, which should be universal. There might be limitations for Archetypes (e.g. only one primary field per content item), but DX content uses the new plone.rfc822, which is can be extended for custom field types. (I have experimental plone.rfc822 adapters for Archetypes', but it's long shot to merge those into Archetypes). > As in it only works for AT and DX. Might not work for things like Plomino databases but I guess that can be lived with or data stored in annotations. > That said, generic import support is not trivial and any solution skipping plone.rfc822 seems like reinventing the wheel and wasting a lot of work. > > > or the sharing/publishing can be done via asko's existing git integration - https://github.com/collective/collective.gitresource > > Configure a github repo. Click push. > > One more project needing the last 10% push :+) > > >> Most of that I think is doable in a sprint or GSOC. > > Sprint yes. GSOC with a "new to Plone" student would require a really dedicated mentor (who probably could do that by himself with all the time required to mentor). > > Regards, > Asko ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Plone-developers mailing list Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/plone-developers