Mercurial > p > roundup > code
diff roundup/cgi_client.py @ 103:381016730332
Fixed some non-string node ids.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sat, 28 Jul 2001 00:34:34 +0000 |
| parents | 6eebdf2bf262 |
| children | 8775d545f41e |
line wrap: on
line diff
--- a/roundup/cgi_client.py Sat Jul 28 00:31:10 2001 +0000 +++ b/roundup/cgi_client.py Sat Jul 28 00:34:34 2001 +0000 @@ -1,4 +1,4 @@ -# $Id: cgi_client.py,v 1.3 2001-07-23 03:56:30 richard Exp $ +# $Id: cgi_client.py,v 1.4 2001-07-28 00:34:34 richard Exp $ import os, cgi, pprint, StringIO, urlparse, re, traceback @@ -278,7 +278,7 @@ # now create the message content = '\n'.join(m) - message_id = self.db.msg.create(author=1, recipients=[], + message_id = self.db.msg.create(author='1', recipients=[], date=date.Date('.'), summary=summary, content=content) messages = cl.get(nid, 'messages') messages.append(message_id) @@ -324,13 +324,13 @@ continue proptype = cl.properties[key] if proptype.isStringType: - value = str(self.form[key].value).strip() + value = self.form[key].value.strip() elif proptype.isDateType: - value = date.Date(str(self.form[key].value)) + value = date.Date(self.form[key].value.strip()) elif proptype.isIntervalType: - value = date.Interval(str(self.form[key].value)) + value = date.Interval(self.form[key].value.strip()) elif proptype.isLinkType: - value = str(self.form[key].value).strip() + value = self.form[key].value.strip() # handle key values link = cl.properties[key].classname if not num_re.match(value): @@ -342,9 +342,9 @@ elif proptype.isMultilinkType: value = self.form[key] if type(value) != type([]): - value = [i.strip() for i in str(value.value).split(',')] + value = [i.strip() for i in value.value.split(',')] else: - value = [str(i.value).strip() for i in value] + value = [i.value.strip() for i in value] link = cl.properties[key].classname l = [] for entry in map(str, value): @@ -402,7 +402,7 @@ # now create the message content = '\n'.join(m) - message_id = self.db.msg.create(author=1, recipients=[], + message_id = self.db.msg.create(author='1', recipients=[], date=date.Date('.'), summary=summary, content=content) messages = cl.get(nid, 'messages') messages.append(message_id) @@ -489,6 +489,9 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.3 2001/07/23 03:56:30 richard +# oops, missed a config removal +# # Revision 1.2 2001/07/22 12:09:32 richard # Final commit of Grande Splite #
