Re: [Zope] My Z Class
A Class is a template for an object, you create it once and any changes affect every object. An object is an instance of a class, it contains data, properties etc. Changing that just changes the object and it is common to change the information in an object. Karl I think you are trying to change the image object in an object. The syntax for that depends upon what you are trying to do but /myobject/myimage might be the url to your image. - Original Message - From: "Rik Hoekstra" <[EMAIL PROTECTED]> To: "Karl Munroe" <[EMAIL PROTECTED]> Cc: "Zope Help" <[EMAIL PROTECTED]> Sent: Tuesday, September 12, 2000 2:07 AM Subject: Re: [Zope] My Z Class > > > Karl Munroe wrote: > > > > I have constructed a z class which contians other products. Is it possible > > for me to have access and edit the properties of the objects contained in > > the z class. > > For example. MYZClass contains an image object...how do I change the and > > edit the photo contained in the class > > > > I don't know if I get this right. The point of ZClasses is that they > provide common behaviour for all instances of the class. This means that > if you have an image in the ZClass, it will be available in all the > instances, but if you change it 1) that can only be done in the ZClass > definition and 2) this will affect all your instances. > > If you want an image that is specific for your ZClass instance, you'll > have to put it into the instance. You can change it there like any > normal Zope object. Creating the Image object inside your instance can > be done at the time the ZClass is created and you can also customize the > image object at that time. > > Please provide more details as to what you try to attain if I got your > question wrong. > > hth > > Rik > > ___ > 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 ) > ___ 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] My Z Class
Karl Munroe wrote: > > I have constructed a z class which contians other products. Is it possible > for me to have access and edit the properties of the objects contained in > the z class. > For example. MYZClass contains an image object...how do I change the and > edit the photo contained in the class > I don't know if I get this right. The point of ZClasses is that they provide common behaviour for all instances of the class. This means that if you have an image in the ZClass, it will be available in all the instances, but if you change it 1) that can only be done in the ZClass definition and 2) this will affect all your instances. If you want an image that is specific for your ZClass instance, you'll have to put it into the instance. You can change it there like any normal Zope object. Creating the Image object inside your instance can be done at the time the ZClass is created and you can also customize the image object at that time. Please provide more details as to what you try to attain if I got your question wrong. hth Rik ___ 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 )
[Zope] My Z Class
I have constructed a z class which contians other products. Is it possible for me to have access and edit the properties of the objects contained in the z class. For example. MYZClass contains an image object...how do I change the and edit the photo contained in the class ___ 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 )
[Zope] My z Class
I am having problems adding images to my z class I am creating a Z class for a staff profile...I have added an image to the methods of the class. When editing and creating a new profile object I use the following syntax It changes to the MYProfileClass_add_form take place. When I call the above code in the add method..I get an error telling me I do not have access to theMYProfileClass object.. Please I would like some help on how to include other objects in my Z class and how to edit the properties of the included objects. Payng attention to the image example ___ 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 )