[Zope3-checkins] CVS: Zope3/src/zope/products/pythonpage - __init__.py:1.2 browser.py:1.2 configure.zcml:1.2

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Jan 30 18:28:41 EST 2004


Update of /cvs-repository/Zope3/src/zope/products/pythonpage
In directory cvs.zope.org:/tmp/cvs-serv364/pythonpage

Modified Files:
	__init__.py browser.py configure.zcml 
Log Message:
oops, violated my own naming rules.


=== Zope3/src/zope/products/pythonpage/__init__.py 1.1 => 1.2 ===
--- Zope3/src/zope/products/pythonpage/__init__.py:1.1	Fri Jan 30 18:19:23 2004
+++ Zope3/src/zope/products/pythonpage/__init__.py	Fri Jan 30 18:28:40 2004
@@ -41,7 +41,7 @@
         description=_("The source of the Python page."),
         required=False)
 
-    content_type = TextLine(
+    contentType = TextLine(
         title=_("Content Type"),
         description=_("The content type the script outputs."),
         required=True,
@@ -106,11 +106,11 @@
 
     implements(IPythonPage)
 
-    def __init__(self, source=u'', content_type=u'text/html'):
+    def __init__(self, source=u'', contentType=u'text/html'):
         """Initialize the object."""
         super(PythonPage, self).__init__()
         self.source = source
-        self.content_type = content_type
+        self.contentType = content_type
 
     def __filename(self):
         if self.__parent__ is None:


=== Zope3/src/zope/products/pythonpage/browser.py 1.1 => 1.2 ===
--- Zope3/src/zope/products/pythonpage/browser.py:1.1	Fri Jan 30 18:19:23 2004
+++ Zope3/src/zope/products/pythonpage/browser.py	Fri Jan 30 18:28:40 2004
@@ -24,7 +24,7 @@
         """Call a Python Page"""
 
         self.request.response.setHeader('content-type',
-                                        self.context.content_type)
+                                        self.context.contentType)
         
         return self.context(self.request, **kw)
 


=== Zope3/src/zope/products/pythonpage/configure.zcml 1.1 => 1.2 ===
--- Zope3/src/zope/products/pythonpage/configure.zcml:1.1	Fri Jan 30 18:19:23 2004
+++ Zope3/src/zope/products/pythonpage/configure.zcml	Fri Jan 30 18:28:40 2004
@@ -22,7 +22,7 @@
   
     <require
         permission="zope.ManageContent"
-        set_attributes="source content_type" />
+        set_attributes="source contentType" />
   
     <implements
         interface="zope.app.interfaces.annotation.IAttributeAnnotatable" />




More information about the Zope3-Checkins mailing list