gasolin,

Yes, I do copy the templates by hand via a little shell script, where
XXX is the project directory:

#!/bin/sh
tg-admin makexe 2>&1 | tee makexe.log
cp dev.cfg dist/prod.cfg
cp devdata.sqlite dist/
cp XXX/templates/*.tmpl dist/XXX/templates/


Good news!
The problem was actually an exception being swallowed in Sqlobject's
col.py around line 946.   The call to time.strptime was throwing an
ImportException.  The code assumed that only ValueError exceptions
would be thrown, and was reporting that error message for any exception
thrown.

An easy fix is to add:  'import _strptime' to your start_xxxx.py file.

The fix for sqlobject is:
in sqlobject col.py ~ 946:

                stime = time.strptime(value, self.format)
            except ValueError:
                raise validators.Invalid("expected an date/time string
of the '%s' format in the DateTimeCol '%s', got %s %r instead" % \
                    (self.format, self.name, type(value), value),
value, state)
            except:
                print "****Unexpected error:", sys.exc_info()[0]
                raise


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to