[Zope] Accessing the subfolders in zope

Bobby Mathew msg4bob@yahoo.com
Thu, 24 May 2001 20:56:23 +0530


This is a multi-part message in MIME format.

------=_NextPart_000_000F_01C0E493.FD937A00
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all
I need some advice as to how i access the subfolder of a folder. This is =
my code so far but i seem to be stuck.
any help appreciated.
I have a folder called eSessions and under which i have created another =
folder (say xyz) which i am passing as a parameter to this python =
script. My aim is to access that subfolder and add a property as shown =
below but i am confused how to access this xyz subfolder ??? The fname =
varialbe is passed with xyz in it as an argument.

container.fname.addProperty('memberid',1,int)          (this line gives =
me a problem)
print propertyItems
return printed


thanks
bobby

------=_NextPart_000_000F_01C0E493.FD937A00
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 content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" 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>I need some advice as to how i access =
the subfolder=20
of a folder. This is my code so far but i seem to be stuck.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>any help appreciated.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have a folder called eSessions and =
under which i=20
have created another folder (say xyz) which i am passing as a parameter =
to this=20
python script. My aim is to access that subfolder and add a property as =
shown=20
below but i am confused how to access this xyz subfolder ??? The fname =
varialbe=20
is passed with xyz in it as an argument.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>container.fname.addProperty('memberid',1,int)&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
(this line gives me a problem)<BR>print propertyItems<BR>return=20
printed</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>bobby</FONT></DIV></BODY></HTML>

------=_NextPart_000_000F_01C0E493.FD937A00--