[Zope-CMF] CMF Tests: 11 OK
Summary of messages to the cmf-tests list. Period Thu Jun 28 12:00:00 2007 UTC to Fri Jun 29 12:00:00 2007 UTC. There were 11 messages: 11 from CMF Unit Tests. Tests passed OK --- Subject: OK : CMF-1.5 Zope-2.7 Python-2.3.6 : Linux From: CMF Unit Tests Date: Thu Jun 28 21:30:07 EDT 2007 URL: http://mail.zope.org/pipermail/cmf-tests/2007-June/005467.html Subject: OK : CMF-1.5 Zope-2.8 Python-2.3.6 : Linux From: CMF Unit Tests Date: Thu Jun 28 21:31:37 EDT 2007 URL: http://mail.zope.org/pipermail/cmf-tests/2007-June/005468.html Subject: OK : CMF-1.5 Zope-2.9 Python-2.4.4 : Linux From: CMF Unit Tests Date: Thu Jun 28 21:33:08 EDT 2007 URL: http://mail.zope.org/pipermail/cmf-tests/2007-June/005469.html Subject: OK : CMF-1.6 Zope-2.8 Python-2.3.6 : Linux From: CMF Unit Tests Date: Thu Jun 28 21:34:39 EDT 2007 URL: http://mail.zope.org/pipermail/cmf-tests/2007-June/005470.html Subject: OK : CMF-1.6 Zope-2.9 Python-2.4.4 : Linux From: CMF Unit Tests Date: Thu Jun 28 21:36:10 EDT 2007 URL: http://mail.zope.org/pipermail/cmf-tests/2007-June/005471.html Subject: OK : CMF-2.0 Zope-2.9 Python-2.4.4 : Linux From: CMF Unit Tests Date: Thu Jun 28 21:37:40 EDT 2007 URL: http://mail.zope.org/pipermail/cmf-tests/2007-June/005472.html Subject: OK : CMF-2.0 Zope-2.10 Python-2.4.4 : Linux From: CMF Unit Tests Date: Thu Jun 28 21:39:11 EDT 2007 URL: http://mail.zope.org/pipermail/cmf-tests/2007-June/005473.html Subject: OK : CMF-2.1 Zope-2.10 Python-2.4.4 : Linux From: CMF Unit Tests Date: Thu Jun 28 21:40:46 EDT 2007 URL: http://mail.zope.org/pipermail/cmf-tests/2007-June/005474.html Subject: OK : CMF-2.1 Zope-trunk Python-2.4.4 : Linux From: CMF Unit Tests Date: Thu Jun 28 21:42:17 EDT 2007 URL: http://mail.zope.org/pipermail/cmf-tests/2007-June/005475.html Subject: OK : CMF-trunk Zope-2.10 Python-2.4.4 : Linux From: CMF Unit Tests Date: Thu Jun 28 21:43:48 EDT 2007 URL: http://mail.zope.org/pipermail/cmf-tests/2007-June/005476.html Subject: OK : CMF-trunk Zope-trunk Python-2.4.4 : Linux From: CMF Unit Tests Date: Thu Jun 28 21:45:19 EDT 2007 URL: http://mail.zope.org/pipermail/cmf-tests/2007-June/005477.html ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
Re: [Zope-CMF] Re: Where is getProperty?
Am 29.06.2007 um 11:04 schrieb yuppie: You shouldn't, getUtility should. Can you please test the attached patch? It should fix your site manager instance on the fly. Seems to do the trick! Thanks Charlie -- Charlie Clark Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-938-5360 GSM: +49-178-782-6226 ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] Re: Where is getProperty?
Charlie Clark wrote: Am 29.06.2007 um 10:37 schrieb yuppie: Looks like your utility isn't acquisition wrapped - getProperty is usually acquired from the site root. 1.) Your site seems to broken, there is currently no migration code that updates the lookup class if you have an old site manager instance. 2.) getProperty should become part of the IPropertiesTool interface and implementation. It should not rely on acquisition. It's coming from the index_html.py script: return context.index_html_template(**decode(options, script)) How should I be wrapping that? You shouldn't, getUtility should. Can you please test the attached patch? It should fix your site manager instance on the fly. Cheers, Yuppie Index: CMFCore/PortalObject.py === --- CMFCore/PortalObject.py (revision 77185) +++ CMFCore/PortalObject.py (working copy) @@ -16,6 +16,7 @@ """ from five.localsitemanager import find_next_sitemanager +from five.localsitemanager.registry import FiveVerifyingAdapterLookup from five.localsitemanager.registry import PersistentComponents from Globals import InitializeClass from Products.Five.component.interfaces import IObjectManagerSite @@ -67,6 +68,11 @@ name = '/'.join(self.getPhysicalPath()) self._components = PersistentComponents(name, (next,)) self._components.__parent__ = self +elif self._components.utilities.LookupClass != FiveVerifyingAdapterLookup: +self._components.utilities.LookupClass = FiveVerifyingAdapterLookup +self._components.utilities._createLookup() +self._components.utilities.__parent__ = self._components +self._components.__parent__ = self return self._components def __before_publishing_traverse__(self, arg1, arg2=None): ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
Re: [Zope-CMF] Re: Where is getProperty?
Am 29.06.2007 um 10:37 schrieb yuppie: Looks like your utility isn't acquisition wrapped - getProperty is usually acquired from the site root. 1.) Your site seems to broken, there is currently no migration code that updates the lookup class if you have an old site manager instance. 2.) getProperty should become part of the IPropertiesTool interface and implementation. It should not rely on acquisition. It's coming from the index_html.py script: return context.index_html_template(**decode(options, script)) How should I be wrapping that? Charlie -- Charlie Clark Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-938-5360 GSM: +49-178-782-6226 ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] Re: Where is getProperty?
Hi! Charlie Clark wrote: Just udated to trunk and am now getting errors, You have been warned: http://mail.zope.org/pipermail/zope-cmf/2007-June/026272.html every time utils.decode() is called: Module Products.CMFDefault.utils, line 463, in decode AttributeError: getProperty def decode(value, context): """ Decode value using default_charset. """ ptool = getUtility(IPropertiesTool) default_charset = ptool.getProperty('default_charset', None) return toUnicode(value, default_charset) I can't see getProperty defined anywhere. No tests are failing. Looks like your utility isn't acquisition wrapped - getProperty is usually acquired from the site root. 1.) Your site seems to broken, there is currently no migration code that updates the lookup class if you have an old site manager instance. 2.) getProperty should become part of the IPropertiesTool interface and implementation. It should not rely on acquisition. HTH, Yuppie ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
Re: [Zope-CMF] Where is getProperty?
Am 29.06.2007 um 10:07 schrieb Charlie Clark: I can't see getProperty defined anywhere. No tests are failing. Hm, I guess I should pay more attention to some e-mails: this is probably related to yuppie's posting that trunk is broken. Charlie -- Charlie Clark Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-938-5360 GSM: +49-178-782-6226 ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] CMF Collector: Open Issues
The following supporters have open issues assigned to them in this collector (http://www.zope.org/Collectors/CMF). Assigned and Open hannosch - "[GS] Error when choosing initial_configuration ", [Accepted] http://www.zope.org/Collectors/CMF/473 tseaver - "CMF needs View-based TypeInformation", [Accepted] http://www.zope.org/Collectors/CMF/437 yuppie - "purge_old in runAllImportSteps not working", [Accepted] http://www.zope.org/Collectors/CMF/455 Pending / Deferred Issues - "workflow notify success should be after reindex", [Deferred] http://www.zope.org/Collectors/CMF/389 - "Can't add (plone) portal with plone 3.0b3 - AttributeError in DCWorkflow._executeTransition", [Pending] http://www.zope.org/Collectors/CMF/484 - "Cannot import extension profile as GS tries to write report twice", [Pending] http://www.zope.org/Collectors/CMF/486 Pending / Deferred Features - "CMFTopic Does Not Cache", [Deferred] http://www.zope.org/Collectors/CMF/295 - "iCal support for CMFCalendar", [Pending] http://www.zope.org/Collectors/CMF/487 - "CMFCore.TypesTool tests", [Pending] http://www.zope.org/Collectors/CMF/488 ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] Where is getProperty?
Just udated to trunk and am now getting errors, every time utils.decode() is called: Module Products.CMFDefault.utils, line 463, in decode AttributeError: getProperty def decode(value, context): """ Decode value using default_charset. """ ptool = getUtility(IPropertiesTool) default_charset = ptool.getProperty('default_charset', None) return toUnicode(value, default_charset) I can't see getProperty defined anywhere. No tests are failing. Charlie -- Charlie Clark Helmholtzstr. 20 Düsseldorf D- 40215 Tel: +49-211-938-5360 GSM: +49-178-782-6226 ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests