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 <[email protected]>
> On 31 Mar 2015, at 6:46 pm, Asko Soukka <[email protected]> wrote:
> 
> Dylan Jay wrote:
>> The default content and configuration is installed on first install maybe vs GS. You would likely have upgrades to the diazo or plugins but you would have to ship upgrade profiles to the GS if you wanted to ship a theme that included upgrades to configuration. Most likely you wouldn't.
>> The idea is to help people get started quickly so they have to make so many choices on how to get a useful site for their purpose quickly.
> 
> So, I wrote a proof-of-concept skeleton for this:
> 
> https://github.com/datakurre/collective.themesitesetup/tree/master/src/collective/themesitesetup

awesome.

> 
> - a view (for writable resource directory), which dumps GS export into a timepstamp-named directory into context resource directory.
> 
> - a p.a.theming-plugin, which imports configured "install"-profile during theme activation an optional "uninstall"-profile during theme deactivation

I was thinking that it might be important to make it optional. For example there are many times you activate a theme to switch them for testing for instance and you don't want to reinstall content then. 
I'm not sure where it should go but it perhaps needs deeper integration where in plone.app.theming is a message that says "the currently activated theme contains an setup. do you wish to run it now?". But then I'm not sure how you;d run the uninstall. Perhaps you need both?


> 
> - current configuration in the theme manifest
> 
>      [theme:genericsetup]
>      install = profile
>      uninstall =
> 
> Notes:
> 
> - plone resource directories are globally configured to filter dot-files and therefore dotted files must be handled as special cases (e.g. ".objects" and ".properties" are renamed to just "objects" and "properties")

You might be better off with __gs__objects or something similar, or making the .objects work. Otherwise there can't be any content imported called objects. But then I guess its a proof of concept right?

> 
> - nobody has ever made a plugin for p.a.theming onEnabled-hook, because that was broken: https://github.com/plone/plone.app.theming/compare/1.1.x...datakurre-1.1.x-fix-on-enabled-pluginsupport
> 
> Cheers,
> 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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.