[Zope-CMF] Question: AccessControl, guarded_getitem

Rob Boyd boydrobh at yahoo.com
Tue Apr 27 12:43:37 EDT 2004

I was experimenting with PasswordResetTool for CMF
when things broke in a way I can't figure out. It's
only broken on one Plone site, but works ok on others
in the same Zope instance (sharing same product
files). It actually worked once, then I customized the
skins, it broke, and I removed the custom skins, and
still it's broken. I've removed the product,
reinstalled it, etc etc.

I've traced the difficulty to when portal_registration
calls the mail_password_template DTML method (in the
product's skins), and when it attempts to call the
reset tool and also call a script in its own skins
directory, it fails. A bit of traceback below...

Module DocumentTemplate.DT_String, line 474, in
Module DocumentTemplate.DT_With, line 76, in render 
Module DocumentTemplate.DT_Util, line 201, in eval
__traceback_info__: pwreset_constructURL 
Module <string>, line 1, in <expression> 
Module AccessControl.DTML, line 32, in guarded_getitem

Module AccessControl.ZopeGuards, line 95, in

If I remove the call to pwreset_constructURL, it still
fails in the attempted calls to the password reset
tool methods. If I remove all calls from
mail_password_template, it works. What could have
happened with AccessControl for just this one site,
for just this one product?


Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs  

More information about the Zope-CMF mailing list