[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r7074 - trunk/gnue-appserver/src
From: |
johannes |
Subject: |
[gnue] r7074 - trunk/gnue-appserver/src |
Date: |
Wed, 2 Mar 2005 10:36:05 -0600 (CST) |
Author: johannes
Date: 2005-03-02 10:36:04 -0600 (Wed, 02 Mar 2005)
New Revision: 7074
Modified:
trunk/gnue-appserver/src/data.py
Log:
Fixed self-test code and some minor optimizations
Modified: trunk/gnue-appserver/src/data.py
===================================================================
--- trunk/gnue-appserver/src/data.py 2005-03-02 14:21:42 UTC (rev 7073)
+++ trunk/gnue-appserver/src/data.py 2005-03-02 16:36:04 UTC (rev 7074)
@@ -358,10 +358,13 @@
"""
# Update state information of the row
- if self.__getState (table, row) is None:
- self.__setState (table, row, 'initializing')
+ state = self.__getState (table, row)
- if dirty and self.__getState (table, row) == 'initialized':
+ if state is None:
+ state = 'initializing'
+ self.__setState (table, row, state)
+
+ if dirty and state == 'initialized':
self.__setState (table, row, 'commitable')
@@ -1684,8 +1687,10 @@
if __name__ == '__main__':
from gnue.common.apps import GClientApp
+ from gnue.appserver import geasConfiguration
- app = GClientApp.GClientApp (application = 'appserver')
+ app = GClientApp.GClientApp (application = 'appserver', defaults =
+ geasConfiguration.ConfigOptions)
print 'create connection object ...',
c = connection (app.connections, 'gnue')
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r7074 - trunk/gnue-appserver/src,
johannes <=