[Zope3-dev] Global Module Security

Stephan Richter stephan.richter at tufts.edu
Fri Jan 30 08:33:37 EST 2004


On Thursday 29 January 2004 22:04, Casey Duncan wrote:
> Yeah, but how about:
>
> import time
> '''
> <html>
>   <body>
>     <h1>
> '''
> print time.asctime()
> '''
>     </h1>
>   </body>
> </html>
> '''

That would very easy too, if you write a content type handling this type of 
syntax. But it should be **really** easy to do. Just put a print in front of 
the opening triple quote (as part of the script) and send it to the 
restricted Python interpreter. I would say that will take about 1-2 hours to 
implement.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training



More information about the Zope3-dev mailing list