Re: [Zope-dev] Bug in ZopeFind in Zope 2.4.0b2

2001-07-04 Thread Chris Withers

Chris Withers wrote:
 
   File E:\Zope\24C37D~1.0B2\lib\python\DocumentTemplate\pDocumentTemplate.py,
 line 297, in render_blocks

...furthermore, why's pDocumentTemplate.py getting used? Is something wrong with
cDocumentTemplate.py?

cheers,

Chris

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Bug in TransparentFolders ???

2001-07-04 Thread Andre Schubert

Hi,

after searching the soures if found a way the point of disaster.
in TransparentFolderPatch i changed the line:
if tpids and not self._v_no_transparent and name[:3] != '_p_' :
to:
if tpids and not self._v_no_transparent and name[:3] != '_p_' and
name[-11:] != '_Permission':
which means to me the if there is a TransparentFolder then don't acquire
its Permissions only Acquire its Objects.
Is this right or did i forgot something???

thanks as



Andre Schubert schrieb:

 Hi all,

 i think i have found a bug in using TransparentFolders.
 Let it explain step by step.
 First the Structure:

 Folder_A
 Folder_B_Transparent

 You have Folder( Folder_A )  and create a new TransparentFolder
 Folder_B_Transparent in Folder_A.
 Then go to the SecurityManagement of the Folder_B_Transparent  and
 Disable the acquire permission setting of any permission(s),
 maybe Use MailHost Service or so, and save the changes.
 Then go Back to the Folder_A and try to open the SecurityTab of
 Folder_A.
 I got the following error only if any acquire permission setting is
 disabled in Folder_B_Transparent:

 !--
 Traceback (innermost last):
   File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 223,
 in publish_module
   File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 187,
 in publish
   File /usr/share/zope/lib/python/Zope/__init__.py, line 221, in
 zpublisher_exception_hook
 (Object: Traversable)
   File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 171,
 in publish
   File /usr/lib/python1.5/site-packages/ZPublisher/mapply.py, line 160,
 in mapply
 (Object: manage_access)
   File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 112,
 in call_object
 (Object: manage_access)
   File /usr/share/zope/lib/python/AccessControl/Role.py, line 257, in
 manage_access
 (Object: Traversable)
   File /usr/share/zope/lib/python/Shared/DC/Scripts/Bindings.py, line
 324, in __call__
 (Object: _normal_manage_access)
   File /usr/share/zope/lib/python/Shared/DC/Scripts/Bindings.py, line
 354, in _bindAndExec
 (Object: _normal_manage_access)
   File /usr/share/zope/lib/python/App/special_dtml.py, line 236, in
 _exec
 (Object: _normal_manage_access)
   File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_With.py,
 line 146, in render
 (Object: _.namespace(valid_roles=valid_roles()))
   File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_In.py, line
 650, in renderwob
 (Object: permission_settings)
   File /usr/share/zope/lib/python/AccessControl/Role.py, line 182, in
 permission_settings
 (Object: Traversable)
   File /usr/share/zope/lib/python/AccessControl/Role.py, line 177, in
 lambda
 AttributeError: (see above)
 --

 thanks, as

 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



Re: [Zope-dev] Weird message from Python Scripts

2001-07-04 Thread Jerome Alet

Hi,

On Wed, 4 Jul 2001, Chris Withers wrote:

 Shane Hathaway wrote:
  
  It's behaving correctly.  Visit the scripts and click Save changes to
  compile.  (You don't have too many, do you?)
 
 30-40 :-(
 
 What short python script would do this for me?
 
 I'm guessign something like:
 
 for s in context.ZopeFind(spec=['Python Script']):
 s.edit()
 
 ...or something?

I think ZShell could do that, probably with its call command.

get it from: http://cortex.unice.fr/~jerome/zshell

and remember: the man command is your best friend.

bye,

Jerome Alet


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )