Skip to content

Commit 9643803

Browse files
author
Richard Jones
committed
Fixed some problems with user editing
1 parent b8caffb commit 9643803

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

frontends/ZRoundup/ZRoundup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1515
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1616
#
17-
# $Id: ZRoundup.py,v 1.2 2001-12-12 23:33:58 richard Exp $
17+
# $Id: ZRoundup.py,v 1.3 2001-12-12 23:55:00 richard Exp $
1818
#
1919
''' ZRoundup module - exposes the roundup web interface to Zope
2020
@@ -113,7 +113,7 @@ def __init__(self, id, instance_home):
113113

114114
security.declarePrivate('_opendb')
115115
def _opendb(self):
116-
'''Open the roundup instnace database for a transaction
116+
'''Open the roundup instance database for a transaction.
117117
'''
118118
instance = roundup.instance.open(self.instance_home)
119119
request = RequestWrapper(self.REQUEST['RESPONSE'])
@@ -163,6 +163,9 @@ def __getitem__(self, item):
163163

164164
#
165165
# $Log: not supported by cvs2svn $
166+
# Revision 1.2 2001/12/12 23:33:58 richard
167+
# added some implementation notes
168+
#
166169
# Revision 1.1 2001/12/12 23:27:13 richard
167170
# Added a Zope frontend for roundup.
168171
#

roundup/cgi_client.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
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 $
1919

2020
__doc__ = """
2121
WWW request handler (also used in the stand-alone server).
@@ -395,15 +395,15 @@ def showuser(self, message=None):
395395
props, changed = parsePropsFromForm(self.db, user, self.form,
396396
self.nodeid)
397397
set_cookie = 0
398-
if self.nodeid == self.getuid() and 'password' in changed:
398+
if self.nodeid == self.getuid() and changed.has_key('password'):
399399
password = self.form['password'].value.strip()
400400
if password:
401401
set_cookie = password
402402
else:
403+
# no password was supplied - don't change it
403404
del props['password']
404-
del changed[changed.index('password')]
405+
del changed['password']
405406
user.set(self.nodeid, **props)
406-
self._post_editnode(self.nodeid)
407407
# and some feedback for the user
408408
message = _('%(changes)s edited ok')%{'changes':
409409
', '.join(changed.keys())}
@@ -1090,6 +1090,9 @@ def parsePropsFromForm(db, cl, form, nodeid=0):
10901090

10911091
#
10921092
# $Log: not supported by cvs2svn $
1093+
# Revision 1.80 2001/12/12 23:27:14 richard
1094+
# Added a Zope frontend for roundup.
1095+
#
10931096
# Revision 1.79 2001/12/10 22:20:01 richard
10941097
# Enabled transaction support in the bsddb backend. It uses the anydbm code
10951098
# where possible, only replacing methods where the db is opened (it uses the

0 commit comments

Comments
 (0)