I'm having trouble setting default dates for Middlekit objects. It is using mxDate and Time. My classes.csv looks like this:
UserDemographics ,birthday, 1968-03-17 When generating the code, the following exception is thrown: Generating SQL... Generating Python... Traceback (most recent call last): File "/home/kpd/src/python/WebwareFromCvs/Webware/MiddleKit/Design/Generate.py", line 150, in ? Generate().main(sys.argv) File "/home/kpd/src/python/WebwareFromCvs/Webware/MiddleKit/Design/Generate.py", line 87, in main outdir=outdir) File "/home/kpd/src/python/WebwareFromCvs/Webware/MiddleKit/Design/Generate.py", line 146, in generate generator.generate(outdir) File "/home/kpd/src/python/WebwareFromCvs/Webware/MiddleKit/Design/PythonGenerator.py", line 27, in generate self._model.writePy(self, dirname) File "/home/kpd/src/python/WebwareFromCvs/Webware/MiddleKit/Design/PythonGenerator.py", line 43, in writePy klass.writePy(generator, filename) File "/home/kpd/src/python/WebwareFromCvs/Webware/MiddleKit/Design/PythonGenerator.py", line 58, in writePy self._writePy(generator, out) File "/home/kpd/src/python/WebwareFromCvs/Webware/MiddleKit/Design/PythonGenerator.py", line 84, in _writePy self.writePyClassDef() File "/home/kpd/src/python/WebwareFromCvs/Webware/MiddleKit/Design/PythonGenerator.py", line 133, in writePyClassDef self.writePyInit() File "/home/kpd/src/python/WebwareFromCvs/Webware/MiddleKit/Design/PythonGenerator.py", line 152, in writePyInit wr('\t\tself._%s = %r\n' % (name, attr.defaultValue())) File "/home/kpd/src/python/WebwareFromCvs/Webware/MiddleKit/Design/PythonGenerator.py", line 186, in defaultValue return self.stringToValue(default) File "/home/kpd/src/python/WebwareFromCvs/Webware/MiddleKit/Design/PythonGenerator.py", line 198, in stringToValue raise AbstractError, self.__class__ MiscUtils.AbstractError: MiddleKit.Core.DateAttr.DateAttr It looks like the mapping to a DateTime attr type is being missed. Can anyone point me in a good direction for this? -I'm using the postgres patches, but I don't think that's an issue here. ===== ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss