Re: [Webware-discuss] Upgrade to Python 2.4, MiddleKit and DateTime confusion -- Found problem

2006-01-04 Thread Roger Haase
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


--- Roger Haase [EMAIL PROTECTED] wrote:

 Hi,
 
 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
 and
 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
 respondToPost
 [edit]
 self._respond(transaction)
   File ./WebKit/HTTPContent.py, line 105, in _respond [edit]
   File ./WebKit/Page.py, line 30, in defaultAction [edit]
   File /home/web/dra/Scripts/Logon.py, line 79, in writeHTML [edit]
 user,message = self.processFields(cookieKey)
   File /home/web/dra/Scripts/Logon.py, line 111, in processFields
 [edit]
 user = sqldb.fetchObjectsOfClass('User',clauses='where name=%s'
 %
 name)
   File ./MiddleKit/Run/SQLObjectStore.py, line 346, in
 fetchObjectsOfClass [edit]
   File ./MiddleKit/Run/MiddleObject.py, line 104, in readStoreData
 [edit]
   File /home/web/dra/db/GeneratedPy/GenUser.py, line 942, in
 setUpdateTime [edit]
 raise TypeError, 'expecting datetime type, but got value %r of
 type
 %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. 
 dsl.yahoo.com 
 
 
 
 ---
 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
 SPLUNK!
 http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
 ___
 Webware-discuss mailing list
 Webware-discuss@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/webware-discuss
 




__ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 



---
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 SPLUNK!
http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
___
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss


Re: [Webware-discuss] Upgrade to Python 2.4, MiddleKit and DateTime confusion -- Found problem

2006-01-04 Thread Chuck Esterbrook
Thanks for the update!

I actually keep my context next to my app dir to remind myself that
they are separate and can be swapped in and out. One doesn't have to
be nested inside the other. So I have something like:

appname/
rundir/  -- the app work dir
webapp/  -- the context
weblib/  -- library code
middle/  -- the MiddleKit classes
bin/  -- misc utilities

Where appname varies, but the others do not.

Hope that helps somebody,

-Chuck


On 1/4/06, Roger Haase [EMAIL PROTECTED] wrote:
 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


 --- Roger Haase [EMAIL PROTECTED] wrote:

  Hi,
 
  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
  and
  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
  respondToPost
  [edit]
  self._respond(transaction)
File ./WebKit/HTTPContent.py, line 105, in _respond [edit]
File ./WebKit/Page.py, line 30, in defaultAction [edit]
File /home/web/dra/Scripts/Logon.py, line 79, in writeHTML [edit]
  user,message = self.processFields(cookieKey)
File /home/web/dra/Scripts/Logon.py, line 111, in processFields
  [edit]
  user = sqldb.fetchObjectsOfClass('User',clauses='where name=%s'
  %
  name)
File ./MiddleKit/Run/SQLObjectStore.py, line 346, in
  fetchObjectsOfClass [edit]
File ./MiddleKit/Run/MiddleObject.py, line 104, in readStoreData
  [edit]
File /home/web/dra/db/GeneratedPy/GenUser.py, line 942, in
  setUpdateTime [edit]
  raise TypeError, 'expecting datetime type, but got value %r of
  type
  %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.
  dsl.yahoo.com
 
 
 
  ---
  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
  SPLUNK!
  http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
  ___
  Webware-discuss mailing list
  Webware-discuss@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/webware-discuss
 




 __
 Yahoo! DSL – Something to write home about.
 Just $16.99/mo. or less.
 dsl.yahoo.com



 ---
 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 SPLUNK!
 http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click
 ___
 Webware-discuss mailing list
 Webware-discuss@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/webware-discuss