diff roundup/mailgw.py @ 880:de3da99a7c02

Add Number and Boolean types to hyperdb. Add conversion cases to web, mail & admin interfaces. Add storage/serialization cases to back_anydbm & back_metakit.
author Gordon B. McMillan <gmcm@users.sourceforge.net>
date Thu, 18 Jul 2002 11:17:31 +0000
parents 0f0f6049c9a7
children b0d3d3535998
line wrap: on
line diff
--- a/roundup/mailgw.py	Thu Jul 18 07:01:54 2002 +0000
+++ b/roundup/mailgw.py	Thu Jul 18 11:17:31 2002 +0000
@@ -73,7 +73,7 @@
 an exception, the original message is bounced back to the sender with the
 explanatory message given in the exception. 
 
-$Id: mailgw.py,v 1.76 2002-07-10 06:39:37 richard Exp $
+$Id: mailgw.py,v 1.77 2002-07-18 11:17:31 gmcm Exp $
 '''
 
 
@@ -491,6 +491,12 @@
                         props[propname] = newvalue
                     else:
                         props[propname] = curvalue
+                elif isinstance(proptype, hyperdb.Boolean):
+                    value = value.strip()
+                    props[propname] = value.lower() in ('yes', 'true', 'on', '1')
+                elif isinstance(proptype, hyperdb.Number):
+                    value = value.strip()
+                    props[propname] = int(value)
 
             # handle any errors parsing the argument list
             if errors:
@@ -784,6 +790,9 @@
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.76  2002/07/10 06:39:37  richard
+#  . made mailgw handle set and modify operations on multilinks (bug #579094)
+#
 # Revision 1.75  2002/07/09 01:21:24  richard
 # Added ability for unit tests to turn off exception handling in mailgw so
 # that exceptions are reported earlier (and hence make sense).

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