how to get the value of size of a word-document
Hi, I select "file" from the Available Objects list and add a MSWord-File with the id "myDoc.doc" Zope will add this object. Klicking on this object will show me the following screen: Id : myDoc Title : formular Content Type : application/msword Precondition : Size : 66,048 bytes Last modified : 2000/01/25 19:41:7.68741 GMT+1 How can I get the value for size of the uploaded doc-file to show it into a index_html for instance ??? The value of "Last modified" I get with: <dtml-var bobobase_modification_time fmt="%d/%m/%Y - %H:%M"> thank you regards nico
From the ZDP:
get_size() Returns the object size in bytes of the document/object. -- Loren ----- Original Message ----- From: Nico Grubert <nico@beehive.de> To: <zope@zope.org> Sent: February 02, 2000 08:12 AM Subject: [Zope] how to get the value of size of a word-document
Hi,
I select "file" from the Available Objects list and add a MSWord-File with the id "myDoc.doc" Zope will add this object. Klicking on this object will show me the following screen:
Id : myDoc Title : formular Content Type : application/msword Precondition : Size : 66,048 bytes Last modified : 2000/01/25 19:41:7.68741 GMT+1
How can I get the value for size of the uploaded doc-file to show it into a index_html for instance ???
The value of "Last modified" I get with: <dtml-var bobobase_modification_time fmt="%d/%m/%Y - %H:%M">
thank you regards nico
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
For future reference, you can go to any url on a zope site and append /HelpSys to the url. This gets you into the (you guessed it) help system. Lots of it is outdated, but there is an object reference that seems to just include the doc strings from the python files in the source code. This means that you can select File from the HelpSys object reference and look at all of the methods.
From there, you can see that getSize is the correct method.
--sam Nico Grubert wrote:
Hi,
I select "file" from the Available Objects list and add a MSWord-File with the id "myDoc.doc" Zope will add this object. Klicking on this object will show me the following screen:
Id : myDoc Title : formular Content Type : application/msword Precondition : Size : 66,048 bytes Last modified : 2000/01/25 19:41:7.68741 GMT+1
How can I get the value for size of the uploaded doc-file to show it into a index_html for instance ???
The value of "Last modified" I get with: <dtml-var bobobase_modification_time fmt="%d/%m/%Y - %H:%M">
thank you regards nico
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- Sam Gendler Chief Technology Officer - Impossible, Inc. 1222 State St. Suite 250 Santa Barbara CA. 93101 w: 805-560-0508 f: 805-560-0608 c: 805-689-1191 e: sgendler@impossible.com
participants (3)
-
Loren Stafford -
Nico Grubert -
Sam Gendler