[Checkins] SVN: zope.kgs/trunk/src/zope/kgs/template try to use my macro and only create directories in the destination if they do not already exist.
Paul Carduner
paulcarduner at gmail.com
Tue Jan 27 02:53:00 EST 2009
Log message for revision 95078:
try to use my macro and only create directories in the destination if they do not already exist.
Changed:
U zope.kgs/trunk/src/zope/kgs/template.py
U zope.kgs/trunk/src/zope/kgs/templates/index.html
-=-
Modified: zope.kgs/trunk/src/zope/kgs/template.py
===================================================================
--- zope.kgs/trunk/src/zope/kgs/template.py 2009-01-27 07:52:30 UTC (rev 95077)
+++ zope.kgs/trunk/src/zope/kgs/template.py 2009-01-27 07:53:00 UTC (rev 95078)
@@ -68,7 +68,8 @@
elif srcPath.endswith('.pt'):
continue
elif os.path.isdir(srcPath):
- os.mkdir(dstPath)
+ if not os.path.exists(dstPath):
+ os.mkdir(dstPath)
generateSite(srcPath, dstPath, data, templates)
elif srcPath.endswith('.html'):
data = Template(srcPath, templates)()
Modified: zope.kgs/trunk/src/zope/kgs/templates/index.html
===================================================================
--- zope.kgs/trunk/src/zope/kgs/templates/index.html 2009-01-27 07:52:30 UTC (rev 95077)
+++ zope.kgs/trunk/src/zope/kgs/templates/index.html 2009-01-27 07:53:00 UTC (rev 95078)
@@ -1,7 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<html metal:use-macro="templates/master.pt/macros/page" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
- <title>Introduction to the KGS</title>
+ <title metal:fill-slot="page-title">Introduction to the KGS</title>
</head>
<body>
<div tal:content="structure templates/menu.pt" />
More information about the Checkins
mailing list