The DateTime issue was the result of my sloppy upgrade. I failed to
copy over the new AppServer, Launch, etc. to my context directory.
I have to resolve a few issues with mx.DateTime in my own code, but
Webware is now running with the MySQLD-python 1.2 version.
--- Roger Haase <crosseyedpenguin@...> wrote:
> I am trying to upgrade a Fedora Core 3 installation to Fedora Core 4,
> converting from Python 2.3 to 2.4 and moving to Webware .9 as part of
> the process. Fedora Core 3 has been running with the mx utilities
> MySQL-python 0.9.2.
> I am getting an abend when trying to logon to my application:
> File "/home/web/dra/Scripts/SitePage.py", line 257, in
> File "./WebKit/HTTPContent.py", line 105, in _respond 
> File "./WebKit/Page.py", line 30, in defaultAction 
> File "/home/web/dra/Scripts/Logon.py", line 79, in writeHTML 
> user,message = self.processFields(cookieKey)
> File "/home/web/dra/Scripts/Logon.py", line 111, in processFields
> user = sqldb.fetchObjectsOfClass('User',clauses='where name="%s"'
> File "./MiddleKit/Run/SQLObjectStore.py", line 346, in
> fetchObjectsOfClass 
> File "./MiddleKit/Run/MiddleObject.py", line 104, in readStoreData
> File "/home/web/dra/db/GeneratedPy/GenUser.py", line 942, in
> setUpdateTime 
> raise TypeError, 'expecting datetime type, but got value %r of
> %r instead' % (value, type(value))
> TypeError: expecting datetime type, but got value
> datetime.datetime(2005, 12, 22, 10, 34, 53) of type <type
> 'datetime.datetime'> instead
> If I understand this correctly, a User record is in the process of
> being moved into the Middlekit store, and it is expecting the old
> mx.DateTime type of <type 'DateTime'>, but the MySQL-python module is
> passing the Python 2.3/2.4 <type 'datetime.datetime'>.
> An idea was to uninstall mx and see what happened next, but yum
> reported that MySQL-python 1.2 was dependent upon mx and would be
> uninstalled along with it.
> Anyone have an idea of what to do to fix this?
> Roger Haase
> Yahoo! DSL ï¿½ Something to write home about.
> Just $16.99/mo. or less.
> This SF.net email is sponsored by: Splunk Inc. Do you grep through
> log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD
> Webware-discuss mailing list
Yahoo! DSL Something to write home about.
Just $16.99/mo. or less.