From: Bill E. <bi...@rf...> - 2002-05-25 12:33:31
|
> 4. One of the example insets shows Unix users executing generate as > "generate", when it should read "./generate", or "python2 generate". Depends on your path - frequently normal users have current directory as the last part of their path. This should never be the case for root user. > 8. The main.py example won't run under python 1.x either, because it imports > MySQLObjectStore, which has syntax requiring python2. I think Webware itself won't run under 1.x - even in the install script there are python2 dependencies. > > BTW, if anybody wants to rewrite main.py for python2, I'd sure appreciate > it, as I can get on with this business. I don't know what python2's > equivalent for 1.x's mx.DateTime is, but I'm sure one of you does! :-) I believe just comment out the import mx line, and when passing a date, send "YYYY-MM-DD" passing a time send "HH:MM:SS" and DateTime is: "YYYY-MM-DD HH:MM:SS" Of course then you don't use "DateFrom". you might want to import time and use time.strftime etc. -- Bill Eldridge Radio Free Asia bi...@rf... |