[Zope-Checkins] CVS: Zope/lib/python - Main.py:1.38
Andreas Jung
andreas@digicool.com
Thu, 7 Feb 2002 13:07:00 -0500
Update of /cvs-repository/Zope/lib/python
In directory cvs.zope.org:/tmp/cvs-serv25570
Modified Files:
Main.py
Log Message:
replaced string module calls by string methods
=== Zope/lib/python/Main.py 1.37 => 1.38 ===
from BoboPOS import SimpleDB, TJar, SingleThreadedTransaction
-import sys, os, string, Globals, OFS.Application
+import sys, os, Globals, OFS.Application
Globals.BobobaseName = os.path.join(Globals.data_dir, 'Data.bbb')
Globals.DatabaseVersion='2'
@@ -63,7 +63,7 @@
OFS.Application.initialize(app)
if os.environ.has_key('ZOPE_DATABASE_QUOTA'):
- quota=string.atoi(os.environ['ZOPE_DATABASE_QUOTA'])
+ quota=int(os.environ['ZOPE_DATABASE_QUOTA'])
Bobobase._jar.db.set_quota(
lambda x, quota=quota, otherdb=VersionBase.TDB:
x + otherdb.pos > quota)