[Zope-CMF] Recall: AccessControl, guarded_getitem
Rob Boyd
boydrobh at yahoo.com
Tue Apr 27 14:33:00 EDT 2004
Never mind! The DTML method mail_password_template had
code of dtml-let
reset="portal_password_reset.requestReset(member.getId())",
and I had a totally unrelated skin named 'reset' in
portal_skins/custom. Still, I'd think the local var
reset in the DTML method would have overridden the
portal skin reset script. Oh well.
--- Rob Boyd <boydrobh at yahoo.com> wrote:
> 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
> __call__
> 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
> guarded_getitem
>
> 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?
>
> TIA,
> Rob
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Win a $20,000 Career Makeover at Yahoo! HotJobs
> http://hotjobs.sweepstakes.yahoo.com/careermakeover
>
> _______________________________________________
> Zope-CMF maillist - Zope-CMF at zope.org
> http://mail.zope.org/mailman/listinfo/zope-cmf
>
> See http://collector.zope.org/CMF for bug reports
> and feature requests
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover
More information about the Zope-CMF
mailing list