[Zope] Re: Changing ZClass Property Values
Josef Meile
jmeile@hotmail.com
Wed, 4 Dec 2002 22:14:12 +0100
This is a multi-part message in MIME format.
------=_NextPart_000_0005_01C29BE2.79DCE8B0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
> How can I change these values programatically? The only example I've
> ever seen of manage_changeProperties in within a method of the
> propertysheet as such:
>=20
> propertysheets.myPropertySheet.manage_changeProperties(REQUEST)
You can try this from an external method:
myObject.propertysheets.myPropertySheet.manage_changeProperties(self.REQU=
EST,myProperty=3DmyValue)
>From a python script you just have to change self for context
Regards,
Josef
------=_NextPart_000_0005_01C29BE2.79DCE8B0
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.1126" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>> How can I change these values =
programatically?=20
The only example I've<BR>> ever seen of manage_changeProperties in =
within a=20
method of the<BR>> propertysheet as such:<BR>> <BR>>=20
propertysheets.myPropertySheet.manage_changeProperties(REQUEST)</FONT></D=
IV><FONT=20
face=3DArial size=3D2>
<DIV><BR>You can try this from an external method:</DIV>
<DIV> </DIV>
<DIV>myObject.propertysheets.myPropertySheet.manage_changeProperties(self=
.REQUEST,myProperty=3DmyValue)<BR></DIV>
<DIV>From a python script you just have to change self for context</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Josef</DIV></FONT></BODY></HTML>
------=_NextPart_000_0005_01C29BE2.79DCE8B0--