Author: justi9
Date: 2008-04-25 11:44:24 -0400 (Fri, 25 Apr 2008)
New Revision: 1987
Modified:
mgmt/cumin/python/cumin/client.py
mgmt/mint/python/mint/__init__.py
Log:
Make the module var name consistent with the style of the file
Modified: mgmt/cumin/python/cumin/client.py
===================================================================
--- mgmt/cumin/python/cumin/client.py 2008-04-25 15:42:35 UTC (rev 1986)
+++ mgmt/cumin/python/cumin/client.py 2008-04-25 15:44:24 UTC (rev 1987)
@@ -154,12 +154,8 @@
self.page.set_redirect_url(session, branch.marshal())
def process_submit(self, session, client):
- try:
- client.close(self.app.model.data, client.managedBroker, doit)
- except Exception, e:
- self.add_error(session, e)
- else:
- self.process_cancel(session, client)
+ action = self.app.model.client.close
+ action.invoke(client)
def render_title(self, session, client):
return "Close Client '%s'" % client.address
Modified: mgmt/mint/python/mint/__init__.py
===================================================================
--- mgmt/mint/python/mint/__init__.py 2008-04-25 15:42:35 UTC (rev 1986)
+++ mgmt/mint/python/mint/__init__.py 2008-04-25 15:44:24 UTC (rev 1987)
@@ -11,14 +11,14 @@
log = logging.getLogger("mint")
-this_module = __import__(__name__)
+thisModule = __import__(__name__)
for item in dir(schema):
cls = getattr(schema, item)
try:
if issubclass(cls, SQLObject) and cls is not SQLObject:
- setattr(this_module, item, cls)
+ setattr(thisModule, item, cls)
except TypeError:
pass
Show replies by date