[Zope] Error message when changing password

Chris Withers chrisw@nipltd.com
Fri, 28 Feb 2003 16:25:43 +0000


Maybe you could submit that to the Zope collector?

cheers,

Chris

Leslie A. Barnes wrote:
>>Leslie A. Barnes wrote at 2003-2-27 07:56 -0800:
>> >  I'm getting the following error message when trying to change user password:
>> > 
>> > Zope Error
>> > Zope has encountered an error while publishing this resource.
>> > Error Type: NameError
>> > Error Value: global name 'pw' is not defined
>> > 
>> >  This is Zope 2.6.1
>> > 
>> >  Any ideas?
>>
>>Seems to be a bug.
>>
>>When you want to fix it yourself, consult the "error_log" in
>>your Zope root folder (in the management interface).
>>It should give you the traceback for this problem.
>>Its last line tells you where the error was detected.
>>
>>Look around this line in the sources to find out what should
>>have been used instead of "pw".
>>
>>Otherwise, file a collector report (<http://collector.zope.org/Zope>)
>>and wait until someone fixed the problem.
>>
>>
>>Dieter
>>
>>
> 
> 
>  Thanks!  In User.py,
> 
>     def _doChangeUser(self, name, password, roles, domains, **kw):
>         user=self.data[name]
>         if password is not None:
>             if self.encrypt_passwords and not self._isPasswordEncrypted(pw):
> 
>     ...
> 
>   changed to 
> 
>             if self.encrypt_passwords and not self._isPasswordEncrypted(password):
> 
>   and it seems to be happy.
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 
>