Mercurial > p > roundup > code
diff roundup/mailgw.py @ 224:ad2c98faec97
using isinstance(blah, Foo) now instead of isFooType
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Sun, 12 Aug 2001 06:32:36 +0000 |
| parents | 152fedaab07c |
| children | 8af4945246cb |
line wrap: on
line diff
--- a/roundup/mailgw.py Wed Aug 08 03:29:35 2001 +0000 +++ b/roundup/mailgw.py Sun Aug 12 06:32:36 2001 +0000 @@ -72,7 +72,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.12 2001-08-08 01:27:00 richard Exp $ +$Id: mailgw.py,v 1.13 2001-08-12 06:32:36 richard Exp $ ''' @@ -219,15 +219,15 @@ Subject was: "%s" '''%(key, subject) - if type.isStringType: + if isinstance(type, hyperdb.String): props[key] = value - elif type.isDateType: + elif isinstance(type, hyperdb.Date): props[key] = date.Date(value) - elif type.isIntervalType: + elif isinstance(type, hyperdb.Interval): props[key] = date.Interval(value) - elif type.isLinkType: + elif isinstance(type, hyperdb.Link): props[key] = value - elif type.isMultilinkType: + elif isinstance(type, hyperdb.Multilink): props[key] = value.split(',') # handle the users @@ -398,6 +398,9 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.12 2001/08/08 01:27:00 richard +# Added better error handling to mailgw. +# # Revision 1.11 2001/08/08 00:08:03 richard # oops ;) #
