[Mailman3-dev] getting webserver to run with stubbackend;
how about ITransactionManager.checkState()?
Michael Kato
mk2s at digitalcommute.com
Mon Apr 12 00:10:45 EDT 2004
Barry,
I came across the following code, and thought perhaps the
ITransactionManager interface should support a method like checkState()
then the following code can be changed to use that instead. What do
you think?
....maki....
Index: bin/webserver
===================================================================
RCS file: /cvsroot/mailman/mailman3/bin/webserver,v
retrieving revision 3.0
diff -u -r3.0 webserver
--- bin/webserver 29 Mar 2004 05:18:49 -0000 3.0
+++ bin/webserver 12 Apr 2004 03:53:10 -0000
@@ -104,8 +104,10 @@
else:
if txnlist: txnlist.commit()
if txnuser: txnuser.commit()
- assert not dbmgr.lists._txnstack(), 'listdb: %s' %
listdb._txnstack()
- assert not dbmgr.users._txnstack(), 'userdb: %s' %
userdb._txnstack()
+ # ITransactionManager perhaps should define stateCheck as a
+ # public method
+ #assert not dbmgr.lists._txnstack(), 'listdb: %s' %
listdb._txnstack()
+ #assert not dbmgr.users._txnstack(), 'userdb: %s' %
userdb._txnstack()
if utext is None:
return
# All do_ methods return unicode strings, as is the default
for all
More information about the Mailman3-Dev
mailing list