[Zope] binary math filesize

2000-09-05 Thread ethan mindlace fremen

Kapil Thangavelu wrote:

 http://www.zope.org/Members/ZQR
 
 get size in kbs assuming its an int
 
 dtml-var "get_size/1000"

 dtml-var "get_size/1024"

pedantically yours,
-- 
ethan mindlace fremen
Zopatista Community Liason
Abnegate I!

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] binary math filesize

2000-09-05 Thread Dario Lopez-Kästen

 Kapil Thangavelu wrote:

  http://www.zope.org/Members/ZQR
 
  get size in kbs assuming its an int
 
  dtml-var "get_size/1000"

  dtml-var "get_size/1024"

 pedantically yours,
 --
 ethan mindlace fremen
 Zopatista Community Liason
 Abnegate I!

actually it turns out to be

dtml-var "size/1024"

get_size and getSize do not work for files (for reasons unknown to me; I am
a Zope newbie :-). haven't tried for any other objects.

Anybody knows more about the DateTime issues I posted about earlier?

/dario

- 
Dario Lopez-Kästen Systems Developer  Chalmers Univ. of Technology
[EMAIL PROTECTED]  ICQ will yield no hitsIT Systems  Services



___
Zope maillist  -  [EMAIL PROTECTED]
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 )