[Zope] show filesize in LocalFS

Michael Bleijerveld michael@bleijerveld.nl
Tue, 15 Jul 2003 20:11:25 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0082_01C34B0D.44BF6D80
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all,

When using the following statements I receive the message "Error Type: =
NameError Error Value: global name 'get_size' is not defined".

<dtml-in "admin.fileIds()">
  <dtml-var sequence-item>  <dtml-var "bobobase_modification_time()"> =
<dtml-var "get_size()">
</dtml-in>

What did I do wrong ? How can I display the filesize of the current file =
?

Regards,

Michael

------=_NextPart_000_0082_01C34B0D.44BF6D80
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>When using the following statements I=20
receive&nbsp;the message "Error Type: NameError Error Value: global name =

'get_size' is not defined".<BR></FONT><FONT face=3DArial =
size=3D2></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&lt;dtml-in =
"admin.fileIds()"&gt;<BR>&nbsp;=20
&lt;dtml-var sequence-item&gt;&nbsp; &lt;dtml-var=20
"bobobase_modification_time()"&gt; &lt;dtml-var=20
"get_size()"&gt;<BR>&lt;/dtml-in&gt;<BR></FONT><FONT face=3DArial=20
size=3D2></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>What did I do wrong ? </FONT><FONT =
face=3DArial=20
size=3D2>How can I display the filesize of the current file =
?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Michael</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;</DIV></FONT></BODY></HTML>

------=_NextPart_000_0082_01C34B0D.44BF6D80--