|
15 | 15 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
16 | 16 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
17 | 17 | # |
18 | | -# $Id: cgi_client.py,v 1.80 2001-12-12 23:27:14 richard Exp $ |
| 18 | +# $Id: cgi_client.py,v 1.81 2001-12-12 23:55:00 richard Exp $ |
19 | 19 |
|
20 | 20 | __doc__ = """ |
21 | 21 | WWW request handler (also used in the stand-alone server). |
@@ -395,15 +395,15 @@ def showuser(self, message=None): |
395 | 395 | props, changed = parsePropsFromForm(self.db, user, self.form, |
396 | 396 | self.nodeid) |
397 | 397 | set_cookie = 0 |
398 | | - if self.nodeid == self.getuid() and 'password' in changed: |
| 398 | + if self.nodeid == self.getuid() and changed.has_key('password'): |
399 | 399 | password = self.form['password'].value.strip() |
400 | 400 | if password: |
401 | 401 | set_cookie = password |
402 | 402 | else: |
| 403 | + # no password was supplied - don't change it |
403 | 404 | del props['password'] |
404 | | - del changed[changed.index('password')] |
| 405 | + del changed['password'] |
405 | 406 | user.set(self.nodeid, **props) |
406 | | - self._post_editnode(self.nodeid) |
407 | 407 | # and some feedback for the user |
408 | 408 | message = _('%(changes)s edited ok')%{'changes': |
409 | 409 | ', '.join(changed.keys())} |
@@ -1090,6 +1090,9 @@ def parsePropsFromForm(db, cl, form, nodeid=0): |
1090 | 1090 |
|
1091 | 1091 | # |
1092 | 1092 | # $Log: not supported by cvs2svn $ |
| 1093 | +# Revision 1.80 2001/12/12 23:27:14 richard |
| 1094 | +# Added a Zope frontend for roundup. |
| 1095 | +# |
1093 | 1096 | # Revision 1.79 2001/12/10 22:20:01 richard |
1094 | 1097 | # Enabled transaction support in the bsddb backend. It uses the anydbm code |
1095 | 1098 | # where possible, only replacing methods where the db is opened (it uses the |
|
0 commit comments