Bug (I think) in Products.GenericSetup. What's the process for getting that fixed?
Anthony Gerrard <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <CAHA8JiQkvxGc_pcsdFFjCpPKs6xzWWyeusAazyfNEEiHD9gjUg@mail.gmail.com> |
Hi,
I think I found a bug in Products.GenericSetup (details below). I have
zope commit rights but is there a team / person I should contact about it
first?
yours
Anthony
*Bug details*: I think utilties registered with a factory will get wiped on
each fresh import. Not good if they have some state
Old code in 1.4.6
new_utility = factory()
if (current and
type(aq_base(current[0].component)) ==
type(new_utility)):
continue
New code in 1.7.4
if current and getattr(current[0], "factory", None) ==
factory:
continue
But the utility registration has a blank factory attribute:
In Plone 3.3.6 (currently live)
>>> current[0].__dict__
{'info': u'', 'provided': <InterfaceClass ...myclass...>, 'component':
<..my factory object... object at 0xe4f1e2c>, 'registry':
<PersistentComponents /plone>, 'name': u''}
After upgrade and reload of profile in Plone 4.3.2 (currently on test)
>>> current[0].__dict__
{'info': u'', 'provided': <InterfaceClass ...myclass...>, 'name': u'',
'compon
ent': <...my factory object... object at 0x07D25BF0>, 'factory': None,
'registry': <PersistentComponents /plone>}
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Plone-developers mailing list
Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/plone-developers