Re: [Zope-CMF] strange problem fixed by _owner

2006-08-11 Thread Dieter Maurer
Miles Waller wrote at 2006-8-11 16:17 +0100: > ... >I stepped through the code and somehow it thinks the user 'admin' is the >owner. I think this is being acquired from somewhere (not sure where). > I added the line _owner = None at the class level in >CMFCore.DTMLMethod (analagous to that in

[Zope-CMF] strange problem fixed by _owner

2006-08-11 Thread Miles Waller
Hi, As part of a workflow, I evaluate whether the user has the 'Modify portal content' permission as follows: from CMFCore.permissions import ModifyPortalContent from CMFCore.utils import _checkPermission can_edit = _checkPermission(ModifyPortalContent, ob) where ob is the object I am talkin

[Zope-CMF] Re: Abusing GenericSetup during traditional installs

2006-08-11 Thread yuppie
Hi! Florent Guillaume wrote: > Martin Aspeli wrote: >> yuppie-2 wrote: >>> If you write a new XML body to adapted.body the settings of the >>> workflow are changed. The body is not stored as a string, it is >>> stored as object tree. (So yes, the workflow is 'initialized' with >>> the settings de

[Zope-CMF] CMF Collector: Open Issues

2006-08-11 Thread tseaver
The following supporters have open issues assigned to them in this collector (http://www.zope.org/Collectors/CMF). Assigned and Open jens - "CachingPolicyManager: Support OFS.Cache.CacheManager", [Accepted] http://www.zope.org/Collectors/CMF/408 mhammond - "Windows Developm