comparison roundup/cgi_client.py @ 502:531f4e46a818

crying out for real configuration handling... :(
author Richard Jones <richard@users.sourceforge.net>
date Tue, 08 Jan 2002 11:57:12 +0000
parents 9ad589d0a60f
children 34e05cd968b3
comparison
equal deleted inserted replaced
501:e0944187229f 502:531f4e46a818
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 # 17 #
18 # $Id: cgi_client.py,v 1.92 2002-01-08 04:12:05 richard Exp $ 18 # $Id: cgi_client.py,v 1.93 2002-01-08 11:57:12 richard Exp $
19 19
20 __doc__ = """ 20 __doc__ = """
21 WWW request handler (also used in the stand-alone server). 21 WWW request handler (also used in the stand-alone server).
22 """ 22 """
23 23
469 return None, files 469 return None, files
470 470
471 # handle the messageid 471 # handle the messageid
472 # TODO: handle inreplyto 472 # TODO: handle inreplyto
473 messageid = "<%s.%s.%s@%s>"%(time.time(), random.random(), 473 messageid = "<%s.%s.%s@%s>"%(time.time(), random.random(),
474 self.classname, self.MAIL_DOMAIN) 474 self.classname, self.instance.MAIL_DOMAIN)
475 475
476 # now create the message, attaching the files 476 # now create the message, attaching the files
477 content = '\n'.join(m) 477 content = '\n'.join(m)
478 message_id = self.db.msg.create(author=self.getuid(), 478 message_id = self.db.msg.create(author=self.getuid(),
479 recipients=[], date=date.Date('.'), summary=summary, 479 recipients=[], date=date.Date('.'), summary=summary,
1178 props[key] = value 1178 props[key] = value
1179 return props, changed 1179 return props, changed
1180 1180
1181 # 1181 #
1182 # $Log: not supported by cvs2svn $ 1182 # $Log: not supported by cvs2svn $
1183 # Revision 1.92 2002/01/08 04:12:05 richard
1184 # Changed message-id format to "<%s.%s.%s%s@%s>" so it complies with RFC822
1185 #
1183 # Revision 1.91 2002/01/08 04:03:47 richard 1186 # Revision 1.91 2002/01/08 04:03:47 richard
1184 # I mucked the intent of the code up. 1187 # I mucked the intent of the code up.
1185 # 1188 #
1186 # Revision 1.90 2002/01/08 03:56:55 richard 1189 # Revision 1.90 2002/01/08 03:56:55 richard
1187 # Oops, missed this before the beta: 1190 # Oops, missed this before the beta:

Roundup Issue Tracker: http://roundup-tracker.org/