git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1867 fd906abe-77d9-0310-91a1-e0d9ade77398
29 lines
496 B
Text
29 lines
496 B
Text
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.
|
|
|
|
|
|
Example
|
|
-------
|
|
|
|
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>
|
|
'''
|