[Zope3-checkins] CVS: Zope3/src/zope/app/pythonpage - __init__.py:1.1.2.2 browser.py:1.1.2.2 README.txt:1.1.2.2

Philipp von Weitershausen philikon at philikon.de
Mon Feb 23 05:52:12 EST 2004


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

Modified Files:
      Tag: philikon-movecontent-branch
	__init__.py browser.py README.txt 
Log Message:
Cleanup.


=== Zope3/src/zope/app/pythonpage/__init__.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/pythonpage/__init__.py:1.1.2.1	Fri Feb 20 14:41:49 2004
+++ Zope3/src/zope/app/pythonpage/__init__.py	Mon Feb 23 05:52:10 2004
@@ -118,7 +118,6 @@
         else:
             filename = zapi.getPath(self)
         return filename
-
         
     def setSource(self, source):
         r"""Set the source of the page and compile it.


=== Zope3/src/zope/app/pythonpage/browser.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/pythonpage/browser.py:1.1.2.1	Fri Feb 20 14:41:49 2004
+++ Zope3/src/zope/app/pythonpage/browser.py	Mon Feb 23 05:52:10 2004
@@ -26,9 +26,8 @@
 
         self.request.response.setHeader('content-type',
                                         self.context.contentType)
-        
-        return self.context(self.request, **kw)
 
+        return self.context(self.request, **kw)
 
 class PythonPageEditView(EditView):
     """Edit View Class for Python Page."""
@@ -45,5 +44,3 @@
             self.update_status = status
 
         return status
-
-        


=== Zope3/src/zope/app/pythonpage/README.txt 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/pythonpage/README.txt:1.1.2.1	Fri Feb 20 14:41:49 2004
+++ Zope3/src/zope/app/pythonpage/README.txt	Mon Feb 23 05:52:10 2004
@@ -1,32 +1,29 @@
 Python Page
 ===========
 
-Python Page provides the user with a content object that interprets Python in
-content space. To save typing and useless messing with output, any
-free-standing string and print statement are considered for output; see the
-example below.
+Python Page provides the user with a content object that interprets
+Python in content space. To save typing and useless messing with
+output, any free-standing string and print statement are considered
+for output; see the example below.
 
 
 Example
 -------
 
-Create a new content type called "Python Page". Try the following
-source::
-
-       '''
-       <html>
-         <body>
-           <ul>
-       '''
-       
-       import time
-       print time.asctime()
-       
-       '''
-           </ul>
-         </body>
-       </html>
-       '''
-
-
+Create a new content type called "Python Page" and enter the following
+code example::
 
+  '''
+  <html>
+    <body>
+      <ul>
+  '''
+
+  import time
+  print time.asctime()
+
+  '''
+      </ul>
+    </body>
+  </html>
+  '''




More information about the Zope3-Checkins mailing list