mò (á¸Ec@s,ddddd„Zdfd„ƒYZdS(tcCsdS(sb Add a new File object. Creates a new File object 'id' with the contents of 'file' N((tidtfilettitlet preconditiont content_type((t6/data/zmath/zope/lib/python/Products/OFSP/help/File.pytmanage_addFilestFilecBs;tZdZeZdZeed„Zd„Zd„Z RS(sU A File is a Zope object that contains file content. A File object can be used to upload or download file information with Zope. Using a File object in Zope is easy. The most common usage is to display the contents of a file object in a web page. This is done by simply referencing the object from DTML:: A more complex example is presenting the File object for download by the user. The next example displays a link to every File object in a folder for the user to download::
In this example, the 'absolute_url' method and 'id' are used to create a list of HTML hyperlinks to all of the File objects in the current Object Manager. Also see ObjectManager for details on the 'objectValues' method. s(OFSP.ObjectManagerItem.ObjectManagerItems$OFSP.PropertyManager.PropertyManagercCsdS(s5 Updates the contents of the File with 'data'. The 'data' argument must be a string. If 'content_type' is not provided, then a content type will not be set. If size is not provided, the size of the file will be computed from 'data'. Permission -- Python only N((tdataRtsize((Rt update_dataAs cCsdS(sV Returns the size of the file in bytes. Permission -- 'View' N((((RtgetSizeLscCsdS(sU Returns the content type of the file. Permission -- 'View' N((((RtgetContentTypeSs(s(OFSP.ObjectManagerItem.ObjectManagerItems$OFSP.PropertyManager.PropertyManager( t__name__t __module__t__doc__Rt__constructor__t __extends__tNoneR R R (((RRs  N(RR(RR((Rt?s