[Zope-Checkins]
SVN: Zope/branches/ajung-zpt-integration/lib/python/Products/ZPT/
Andreas Jung
andreas at andreas-jung.com
Fri Dec 9 11:01:45 EST 2005
Log message for revision 40662:
Changed:
U Zope/branches/ajung-zpt-integration/lib/python/Products/ZPT/ZPT.py
U Zope/branches/ajung-zpt-integration/lib/python/Products/ZPT/pt/ptEdit.zpt
-=-
Modified: Zope/branches/ajung-zpt-integration/lib/python/Products/ZPT/ZPT.py
===================================================================
--- Zope/branches/ajung-zpt-integration/lib/python/Products/ZPT/ZPT.py 2005-12-09 15:43:46 UTC (rev 40661)
+++ Zope/branches/ajung-zpt-integration/lib/python/Products/ZPT/ZPT.py 2005-12-09 16:01:44 UTC (rev 40662)
@@ -81,7 +81,7 @@
+ Cacheable.manage_options
- _properties=({'id':'title', 'type': 'string', 'mode': 'wd'},
+ _properties=({'id':'title', 'type': 'ustring', 'mode': 'w'},
{'id':'content_type', 'type':'string', 'mode': 'w'},
{'id':'expand', 'type':'boolean', 'mode': 'w'},
)
@@ -281,6 +281,10 @@
self.REQUEST.RESPONSE.setHeader('Content-Type', self.content_type)
return self.read()
+ security.declareProtected(view_manage_screens, 'html')
+ def html(self):
+ return self.content_type == 'text/html'
+
security.declareProtected(view_management_screens, 'get_size')
def get_size(self):
return len(self.read())
@@ -315,6 +319,7 @@
'title': 'This template has an error'},)
return icons
+ security.declareProtected(view, 'pt_source_file')
def pt_source_file(self):
"""Returns a file name to be compiled into the TAL code."""
try:
Modified: Zope/branches/ajung-zpt-integration/lib/python/Products/ZPT/pt/ptEdit.zpt
===================================================================
--- Zope/branches/ajung-zpt-integration/lib/python/Products/ZPT/pt/ptEdit.zpt 2005-12-09 15:43:46 UTC (rev 40661)
+++ Zope/branches/ajung-zpt-integration/lib/python/Products/ZPT/pt/ptEdit.zpt 2005-12-09 16:01:44 UTC (rev 40662)
@@ -39,10 +39,9 @@
</div>
</td>
<td align="left" valign="top" colspan=2>
-<!--
<a href="source.html" tal:condition="context/html">Browse HTML source</a>
<a href="source.xml" tal:condition="not:context/html">Browse XML source</a>
--->
+
<br>
<input type="hidden" name="expand:int:default" value="0">
<input type="checkbox" value="1" name="expand:int"
More information about the Zope-Checkins
mailing list