[Checkins] SVN: GenericSetup/trunk/PageTemplates/exportimport.py *
move the supported meta type into a variable so it can be
overridden by
Rob Miller
ra at burningman.com
Mon May 15 16:02:31 EDT 2006
Log message for revision 68137:
* move the supported meta type into a variable so it can be overridden by
subclasses
Changed:
U GenericSetup/trunk/PageTemplates/exportimport.py
-=-
Modified: GenericSetup/trunk/PageTemplates/exportimport.py
===================================================================
--- GenericSetup/trunk/PageTemplates/exportimport.py 2006-05-15 13:59:50 UTC (rev 68136)
+++ GenericSetup/trunk/PageTemplates/exportimport.py 2006-05-15 20:02:31 UTC (rev 68137)
@@ -27,10 +27,14 @@
__used_for__ = IPageTemplate
+ mime_type = 'text/html'
+ suffix = '.pt'
+ supported_meta_type = 'Page Template'
+
def _exportBody(self):
"""Export the object as a file body.
"""
- if self.context.meta_type == 'Page Template':
+ if self.context.meta_type == self.supported_meta_type:
return self.context.read()
return None
@@ -40,7 +44,3 @@
self.context.write(body)
body = property(_exportBody, _importBody)
-
- mime_type = 'text/html'
-
- suffix = '.pt'
More information about the Checkins
mailing list