Ok, I figured it out. Add the following to MiddleKit/Core/DateAttr.py:
import mx.DateTime . . . def stringToValue(self, aString): return 'DateTime.strptime(aString,"%Y-%m-%d")' ------ This results in the following in my generated code: def __init__(self): MiddleObject.__init__(self) self._birthday = 'DateTime.strptime(aString,"%Y-%m-%d")' Now, I don't see where the string is being evaluated, but it does appear to work as desired. Can anybody explain this? ===== ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Kevin Dahlhausen 'Do' or 'do not.' There is no 'Try.' http://members.nccw.net/kdahlhaus/ -Yoda __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ _______________________________________________ Webware-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-devel