[Zope] Reading file contents in Python
   
    Richard Wesley
     
    hawkfish@trustedmedianetworks.com
       
    Wed, 16 Oct 2002 08:53:18 -0700
    
    
  
I have form (ZPT/Python) that allows the user to enter some text, 
basically by modifying a template.  Originally, the template was in 
line, but I would like to factor it out into a file for easier 
editing.  I can use the construct
<textarea tal:content="here/default_html"></textarea>
in the ZPT, but I would really like to be able to do this in the 
controlling Python script.  Unfortunately, container.default_html() 
does not work.  The MIME type is set correctly.
So how do I obtain the contents of the file?
TIA,
- rmgw
<http://www.trustedmedianetworks.com/>
----------------------------------------------------------------------------
Richard Wesley                                  Trusted Media Networks, Inc.
"...if you can't get out, you just either blow something up, or you eat
  something, or you just throw penguins in the air."
                                              - Brian Henson