]> git.phdru.name Git - phdru.name/phdru.name.git/commitdiff
Adapted to Cheetah 2.0.
authorOleg Broytman <phd@phdru.name>
Thu, 14 Jun 2007 14:05:15 +0000 (14:05 +0000)
committerOleg Broytman <phd@phdru.name>
Thu, 14 Jun 2007 14:05:15 +0000 (14:05 +0000)
git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@65 7bb0bf08-9e0d-0410-b083-99cee3bf18b8

atom_10.tmpl
phd_pp.py
rss_20.tmpl

index ae5ea1e62428064c21b99ac0a36c872805884cee..1c8ac1b3181cc494c420d809939f4e47239f54bd 100644 (file)
 #filter WebSafe
 $post.excerpt
 &lt;p&gt;&lt;a href="$post.URL"&gt;Read more&lt;/a&gt;&amp;hellip;&lt;/p&gt;
-#filter Filter
+#end filter
     </summary>
 #end if
 #if $post.content
     <content type="html" mode="escaped">
 #filter WebSafe
 $post.content
-#filter Filter
+#end filter
     </content>
 #end if
 #for $c in $post.categoryList
index 0e2657362cbf783e5cf4849dac0291992283e370..1352b18a61b78d9c3a49faa3a68e5bf491a48406 100644 (file)
--- a/phd_pp.py
+++ b/phd_pp.py
@@ -18,6 +18,8 @@ full_dirs = len(os.getcwd().split('/')) + 1
 
 class phd_pp(Template):
    def __init__(self, *args, **kw):
+      if not hasattr(self, "_fileBaseName"):
+         self._fileDirName, self._fileBaseName = os.path.split(os.path.abspath(self._CHEETAH_src))
       Template.__init__(self, *args, **kw)
       directories = self._fileDirName.split('/')[full_dirs:] # remove directories up to "./files"
       dirs_to_root = len(directories)
index e1779be6b4d0496509218fc9e5f40ec75aa82299..84149ba214b3ce09ccd543a4ed167e79dab8afc5 100644 (file)
@@ -21,7 +21,7 @@ $post.excerpt
 #elif $post.content
 $post.content
 #end if
-#filter Filter
+#end filter
       </description>
 #end if
       <pubDate>${post.rfc822_date}</pubDate>