Re: Help needed for Plone 5

Timo Stollenwerk <tisto-z4DKO/[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <[email protected]>
Just one thing that I forgot. Please check if the package you work on 
has a Plone 5 only branch. If the master branch is used for Plone 4.x as 
well, we need to keep both lookup options.

Timo

Am 13.12.14 09:07, schrieb Timo Stollenwerk:
> Hi,
>
> do you want to help making Plone 5 ready for a beta release by working
> on some easy tasks? You will also learn some things about how Plone 5
> works!
>
> Here is how it goes:
>
> The mail control panel has been moved from storing its settings in the
> mailhost and portal object to storing the settings in plone.app.registry.
>
> The old way of setting/getting the mailhost settings was:
>
>    from Products.CMFCore.utils import getToolByName
>    from zope.component.hooks import getSite
>
>    portal = getSite()
>    mailhost = getToolByName(portal, 'MailHost')
>    mailhost.smtp_host = 'localhost'
>    mailhost.smtp_port = 25
>    mailhost.smtp_user_id = '[email protected]'
>    mailhost.smtp_pass = 'secret'
>
>    portal.email_from_address = 'dummyme-zndaEfzHj/[email protected]'
>    portal.email_from_name = 'me'
>
> The new way is:
>
>    from Products.CMFPlone.interfaces import IMailSchema
>    from plone.registry.interfaces import IRegistry
>    from zope.component import getUtility
>
>    registry = getUtility(IRegistry)
>    mail_settings = registry.forInterface(IMailSchema, prefix='plone')
>    mail_settings.smtp_host = u'localhost'
>    mail_settings.smtp_port = 25
>    mail_settings.smtp_user_id = u'[email protected]'
>    mail_settings.smtp_pass = u'secret'
>    mail_settings.email_from_address = '[email protected]'
>    mail_settings.email_from_name = u'plone@rulez'
>
> (There is an easier way with less imports in plone.api that 3rd-party
> developers can use later on.)
>
> We now need to replace the old lookup with the new lookup in quite a few
> packages. To help with this do:
>
> 1) Checkout buildout.coredev (the 5.0 branch)
>
> 2) Grep for the old mailhost settings:
>
>    $ cd parts/omelette
>    $ grep -lr --exclude=*.{pyc,pyo,pot,po,mo,zexp,xml,dtml,pt}
> "mail_host\|smtp_port\|smtp_userid\|smtp_pass\|email_from_name\|email_from_address"
> *
>
> 3) Grab a package, change the lookups (as described above) and do a pull
> request. Here is an example of how this was done in plone.app.contentrules:
>
> https://github.com/plone/plone.app.contentrules/commit/5273e342f24c8d1870fcc52ad5b8f95bcb584943
>
>
> 4) Run the package tests and make sure they all still work.
>
> 5) Report your work here:
> https://github.com/plone/Products.CMFPlone/issues/214
>
> If you have any question or if you are stuck don't hesitate to ask me
> via email or on IRC (username: tisto)
>
> Cheers,
> Timo
>
> Am 12.12.14 15:43, schrieb Eric Bréhault:
>> Hello Plone people,
>>
>> We all want to release Plone 5 soon, and to do that, we need you!
>> So if you want to help, here is a list of tickets the Framework team has
>> identified as blockers for Plone 5.
>> Note: some tickets already have owners, but it does not mean you cannot
>> help :)
>>
>> Theming
>> ------------
>>
>> - Logo Customization on control panel
>> https://github.com/plone/Products.CMFPlone/issues/165 @giacomos
>> - live search https://github.com/plone/Products.CMFPlone/issues/176
>> @ale-rt
>> - Theme editor integration @ebrehault
>>
>>
>> Migration
>> ------------
>>
>> - Registry migration (from Resource Registry)
>>
>>
>> Cleanup
>> -----------
>>
>> - Move filter control panel to z3c.form.
>> https://github.com/plone/Products.CMFPlone/issues/211 @tisto
>> - [ ] Move user prefs control panel to z3c.form.
>> https://github.com/plone/Products.CMFPlone/issues/212 @tisto
>> - Move editing control panel to z3c.form.
>> https://github.com/plone/Products.CMFPlone/issues/213 @tisto
>> - Move mail control panel to z3c.form.
>> https://github.com/plone/Products.CMFPlone/issues/214 @tisto
>> - Move security control panel to z3c.form.
>> https://github.com/plone/Products.CMFPlone/issues/216 @tisto
>> - Move language control panel to z3c.form.
>> https://github.com/plone/Products.CMFPlone/issues/218 @tisto
>>
>> Misc
>> ------
>>
>> - plone.app.multilingual https://dev.plone.org/ticket/13091 @bloodbare
>>
>> Bugs
>> -------
>>
>> - Linkintegrity is broken in Plone 5
>> https://github.com/plone/Products.CMFPlone/issues/255 @martior
>> - KeyError: 'plone.resources.development'
>> https://dev.plone.org/ticket/20133
>> - Access to acquired content should not be allowed
>> https://dev.plone.org/ticket/13793
>> - Sharing https://dev.plone.org/ticket/14192
>> - syndication settings: JS error https://dev.plone.org/ticket/14276
>> - Deleting an item returns a 404 https://dev.plone.org/ticket/14463
>>
>> Note: this information comes from the following issue
>> https://github.com/plone/Products.CMFPlone/issues/184 where we maintain
>> all the Plone 5 related issues, so check it for updates.
>>
>> Eric
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>>
>>
>>
>>
>> _______________________________________________
>> Plone-developers mailing list
>> Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>> https://lists.sourceforge.net/lists/listinfo/plone-developers
>>

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
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.