summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b245717)
raw | patch | inline | side by side (parent: b245717)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 28 Nov 2001 21:55:35 +0000 (21:55 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 28 Nov 2001 21:55:35 +0000 (21:55 +0000) |
. Woohoo! Found that bloody re-login bug that was killing the mail
gateway.
(also a minor cleanup in hyperdb)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@431 57a73879-2fb5-44c3-a270-3262357dd7e2
gateway.
(also a minor cleanup in hyperdb)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@431 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/cgi_client.py | patch | blob | history | |
roundup/hyperdb.py | patch | blob | history | |
roundup/mailgw.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 10992308f32742547fa1deffed4372ca9719f1a5..7bb068aa33ab75882f41b9d7a48071d065a0ef1a 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
Fixed:
. Lots of bugs, thanks Roché and others on the devel mailing list!
+ . login_action and newuser_action return values were being ignored
+ . Woohoo! Found that bloody re-login bug that was killing the mail
+ gateway.
2001-11-23 - 0.3.0
diff --git a/roundup/cgi_client.py b/roundup/cgi_client.py
index 4ce3bba1a2c969749475d0efe670f11e6c2a4382..7cb0ba2830ffc7674e2b68a5685f6f43cec25079 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.66 2001-11-27 03:00:50 richard Exp $
+# $Id: cgi_client.py,v 1.67 2001-11-28 21:55:35 richard Exp $
__doc__ = """
WWW request handler (also used in the stand-alone server).
return self.login(message=_('Incorrect password'))
self.set_cookie(self.user, password)
+ return None # make it explicit
def set_cookie(self, user, password):
# construct the cookie
self.user = cl.get(uid, 'username')
password = cl.get(uid, 'password')
self.set_cookie(self.user, self.form['password'].value)
- return self.index()
+ return None # make the None explicit
def main(self):
# determine the uid to use
# everyone is allowed to try to log in
if action == 'login_action':
# do the login
- self.login_action()
+ ret = self.login_action()
+ if ret is not None:
+ return ret
# figure the resulting page
action = self.form['__destination_url'].value
if not action:
else:
return self.login(action=action)
# add the user
- self.newuser_action()
+ ret = self.newuser_action()
+ if ret is not None:
+ return ret
# figure the resulting page
action = self.form['__destination_url'].value
if not action:
#
# $Log: not supported by cvs2svn $
+# Revision 1.66 2001/11/27 03:00:50 richard
+# couple of bugfixes from latest patch integration
+#
# Revision 1.65 2001/11/26 23:00:53 richard
# This config stuff is getting to be a real mess...
#
diff --git a/roundup/hyperdb.py b/roundup/hyperdb.py
index 4c9b511a59499bfdab2c49d79f098c694a483a14..10eaf38e2ea5ec26316a3e13e914e66be29ac046 100644 (file)
--- a/roundup/hyperdb.py
+++ b/roundup/hyperdb.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: hyperdb.py,v 1.36 2001-11-27 03:16:09 richard Exp $
+# $Id: hyperdb.py,v 1.37 2001-11-28 21:55:35 richard Exp $
__doc__ = """
Hyperdatabase implementation, especially field types.
value = self.db.classes[link_class].lookup(value)
except:
raise IndexError, 'new property "%s": %s not a %s'%(
- key, value, self.properties[key].classname)
- propvalues[key] = value
- if not self.db.hasnode(link_class, value):
+ key, value, link_class)
+ elif not self.db.hasnode(link_class, value):
raise IndexError, '%s has no node %s'%(link_class, value)
+ # save off the value
+ propvalues[key] = value
+
# register the link with the newly linked node
self.db.addjournal(link_class, value, 'link',
(self.classname, newid, key))
#
# $Log: not supported by cvs2svn $
+# Revision 1.36 2001/11/27 03:16:09 richard
+# Another place that wasn't handling missing properties.
+#
# Revision 1.35 2001/11/22 15:46:42 jhermann
# Added module docstrings to all modules.
#
diff --git a/roundup/mailgw.py b/roundup/mailgw.py
index 8a15ad0890ffbc49df3d8c5cbb6b3848c69fa214..5ef6e2c332a3c81ca9024d8e0233aa9abe9aa1cc 100644 (file)
--- a/roundup/mailgw.py
+++ b/roundup/mailgw.py
an exception, the original message is bounced back to the sender with the
explanatory message given in the exception.
-$Id: mailgw.py,v 1.36 2001-11-26 22:55:56 richard Exp $
+$Id: mailgw.py,v 1.37 2001-11-28 21:55:35 richard Exp $
'''
username = self.db.user.get(author, 'username')
self.db.close()
self.db = self.instance.open(username)
+
+ # re-get the class with the new database connection
+ cl = self.db.getclass(classname)
+
# now update the recipients list
recipients = []
tracker_email = self.ISSUE_TRACKER_EMAIL.lower()
#
# $Log: not supported by cvs2svn $
+# Revision 1.36 2001/11/26 22:55:56 richard
+# Feature:
+# . Added INSTANCE_NAME to configuration - used in web and email to identify
+# the instance.
+# . Added EMAIL_SIGNATURE_POSITION to indicate where to place the roundup
+# signature info in e-mails.
+# . Some more flexibility in the mail gateway and more error handling.
+# . Login now takes you to the page you back to the were denied access to.
+#
+# Fixed:
+# . Lots of bugs, thanks Roché and others on the devel mailing list!
+#
# Revision 1.35 2001/11/22 15:46:42 jhermann
# Added module docstrings to all modules.
#