[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/template.py Updated class docstrings.

Malthe Borch mborch at gmail.com
Sat Aug 23 08:39:47 EDT 2008


Log message for revision 90144:
  Updated class docstrings.

Changed:
  U   z3c.pt/trunk/src/z3c/pt/template.py

-=-
Modified: z3c.pt/trunk/src/z3c/pt/template.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/template.py	2008-08-23 08:39:30 UTC (rev 90143)
+++ z3c.pt/trunk/src/z3c/pt/template.py	2008-08-23 12:39:46 UTC (rev 90144)
@@ -5,14 +5,11 @@
 import translation
 
 class BaseTemplate(object):
-    """ Constructs a template object.  Must be passed an input string
-    as ``body``. ``parser`` is the parser implementation
-    (``ZopeePageTemplateParser`` or ``GenshiParser`` as of this
-    writing). ``default_expression`` is the default expression
-    namespace for any ``TALES`` expressions included in the template
-    (typically either the string ``path`` or the string ``python``);
-    ``python`` is the default if nothing is passed."""
-
+    """Constructs a template object using the template language
+    defined by ``parser`` (``ZopePageTemplateParser`` or
+    ``GenshiParser`` as of this writing). Must be passed an input
+    string as ``body``."""
+    
     def __init__(self, body, parser):
         self.body = body
         self.parser = parser        
@@ -58,17 +55,13 @@
     __call__ = render
     
 class BaseTemplateFile(BaseTemplate):
-    """ Constructs a template object.  Must be passed an absolute (or
+    """Constructs a template object using the template language
+    defined by ``parser``. Must be passed an absolute (or
     current-working-directory-relative) filename as ``filename``. If
     ``auto_reload`` is true, each time the template is rendered, it
     will be recompiled if it has been changed since the last
-    rendering.  ``cachedir`` is a directory path in which generated
-    Python will be stored and cached if non-None.
-    ``default_expression`` is the default expression namespace for any
-    ``TALES`` expressions included in the template (typically either
-    the string ``path`` or the string ``python``); ``python`` is the
-    default if nothing is passed."""
-
+    rendering."""
+    
     def __init__(self, filename, parser, auto_reload=False):
         BaseTemplate.__init__(
             self, None, parser)
@@ -86,7 +79,7 @@
         # persist template registry on disk
         if config.DISK_CACHE:
             self.registry = filecache.TemplateCache(filename)
-        
+
     def _get_filename(self):
         return getattr(self, '_filename', None)
 



More information about the Checkins mailing list