[ZDP] BackTalk to Document The Zope Book (2.5 Edition)/Using Basic Zope Objects

webmaster@zope.org webmaster@zope.org
Fri, 04 Oct 2002 08:46:15 -0400


A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZopeBook/current/BasicObject.stx#3-111

---------------

      If your File holds text and is less than 64K, then Zope lets you
      edit it in the management interface. A text file is one that has a
      content-type that starts with *text/*, such as *text/html*, or
      *text/plain*. You may sometimes find it convenient to edit text
      files in the management interface. In any case, you can always
      edit files locally and then upload them to Zope.

        % Anonymous User - June 20, 2002 3:17 pm:
         How can I access the content of the uploaded file (text/html) using python? I uploaded a file object using

         <dtml-call expr="importArchive.manage_addFile(id='infile', file=file, content_type='text/plain')">

         and want to parse the contents of infile to insert it into a database.

        % Anonymous User - Oct. 4, 2002 8:46 am:
         *In any case, you can always edit files locally and then upload them to Zope.* 

         What if I want to edit a file of which I don't have a local copy? Must I download it locally, edit it an then
         upload it back to the zope server every time?