[Checkins] SVN: zope.kgs/trunk/src/zope/kgs/ update calls to other scripts including in tests to use optparse arg format
Paul Carduner
paulcarduner at gmail.com
Sat Jan 24 00:35:12 EST 2009
Log message for revision 94970:
update calls to other scripts including in tests to use optparse arg format
Changed:
U zope.kgs/trunk/src/zope/kgs/README.txt
U zope.kgs/trunk/src/zope/kgs/site.py
-=-
Modified: zope.kgs/trunk/src/zope/kgs/README.txt
===================================================================
--- zope.kgs/trunk/src/zope/kgs/README.txt 2009-01-24 05:30:36 UTC (rev 94969)
+++ zope.kgs/trunk/src/zope/kgs/README.txt 2009-01-24 05:35:11 UTC (rev 94970)
@@ -505,7 +505,7 @@
>>> introPage = os.path.join(kgsDir, 'intro.html')
>>> from zope.kgs import intro
- >>> intro.main((introPage,))
+ >>> intro.main(['-d',kgsDir])
>>> print open(introPage, 'r').read()
<!DOCTYPE ...
@@ -572,7 +572,7 @@
>>> shutil.copy(cfgFileReal, cfgFileSite)
>>> from zope.kgs import site
- >>> site.main((siteDir,))
+ >>> site.main(['-s',siteDir])
Let's have a look at the generated files:
@@ -597,7 +597,7 @@
>>> tsPath = os.path.join(siteDir, 'cf-timestamp')
>>> beforeTimestamp = open(tsPath).read()
- >>> site.main((siteDir,))
+ >>> site.main(['-s',siteDir])
>>> afterTimestamp = open(tsPath).read()
>>> beforeTimestamp == afterTimestamp
Modified: zope.kgs/trunk/src/zope/kgs/site.py
===================================================================
--- zope.kgs/trunk/src/zope/kgs/site.py 2009-01-24 05:30:36 UTC (rev 94969)
+++ zope.kgs/trunk/src/zope/kgs/site.py 2009-01-24 05:35:11 UTC (rev 94970)
@@ -91,8 +91,7 @@
# Update the intro page
logging.info("updateing the intro page")
- introPath = os.path.join(siteDir, 'intro.html')
- intro.main((introPath,))
+ intro.main(['-d',siteDir])
logging.info("finished generating site.")
More information about the Checkins
mailing list