Error message when changing password
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? thanks
At 07:56 AM 2/27/2003, Leslie A. Barnes wrote:
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
You appear to have tried to make use of the variable pw before defining it. Make sure the names of the fields you use in your form match the names of the variables in your processing method. HTH, Dylan
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
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.
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 )
participants (4)
-
Chris Withers -
Dieter Maurer -
Dylan Reinhardt -
Leslie A. Barnes