summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a2e8aa6)
raw | patch | inline | side by side (parent: a2e8aa6)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 12 Dec 2001 23:55:00 +0000 (23:55 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 12 Dec 2001 23:55:00 +0000 (23:55 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@460 57a73879-2fb5-44c3-a270-3262357dd7e2
frontends/ZRoundup/ZRoundup.py | patch | blob | history | |
roundup/cgi_client.py | patch | blob | history |
index 2b5795765eddca20457c7aa34035a6134530ad3c..d73d7d86f30e826286c619a191030ed91b438c73 100644 (file)
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: ZRoundup.py,v 1.2 2001-12-12 23:33:58 richard Exp $
+# $Id: ZRoundup.py,v 1.3 2001-12-12 23:55:00 richard Exp $
#
''' ZRoundup module - exposes the roundup web interface to Zope
security.declarePrivate('_opendb')
def _opendb(self):
- '''Open the roundup instnace database for a transaction
+ '''Open the roundup instance database for a transaction.
'''
instance = roundup.instance.open(self.instance_home)
request = RequestWrapper(self.REQUEST['RESPONSE'])
#
# $Log: not supported by cvs2svn $
+# Revision 1.2 2001/12/12 23:33:58 richard
+# added some implementation notes
+#
# Revision 1.1 2001/12/12 23:27:13 richard
# Added a Zope frontend for roundup.
#
diff --git a/roundup/cgi_client.py b/roundup/cgi_client.py
index 59b587b33aff973c225554a5cf5761a9796485bf..f4fa8d14e6fcfb015f176bbd596b360e9065157f 100644 (file)
--- a/roundup/cgi_client.py
+++ b/roundup/cgi_client.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: cgi_client.py,v 1.80 2001-12-12 23:27:14 richard Exp $
+# $Id: cgi_client.py,v 1.81 2001-12-12 23:55:00 richard Exp $
__doc__ = """
WWW request handler (also used in the stand-alone server).
props, changed = parsePropsFromForm(self.db, user, self.form,
self.nodeid)
set_cookie = 0
- if self.nodeid == self.getuid() and 'password' in changed:
+ if self.nodeid == self.getuid() and changed.has_key('password'):
password = self.form['password'].value.strip()
if password:
set_cookie = password
else:
+ # no password was supplied - don't change it
del props['password']
- del changed[changed.index('password')]
+ del changed['password']
user.set(self.nodeid, **props)
- self._post_editnode(self.nodeid)
# and some feedback for the user
message = _('%(changes)s edited ok')%{'changes':
', '.join(changed.keys())}
#
# $Log: not supported by cvs2svn $
+# Revision 1.80 2001/12/12 23:27:14 richard
+# Added a Zope frontend for roundup.
+#
# Revision 1.79 2001/12/10 22:20:01 richard
# Enabled transaction support in the bsddb backend. It uses the anydbm code
# where possible, only replacing methods where the db is opened (it uses the