How do I edit values of items created using Property Sheets
Hello, I am new to Zope, so this might be a FAQ, but my seraches of the Zope archives and website didn't come up with anything. I have created a Zope application (phoebe.rider.edu:8080/Athena). I am using a Z Class with Property Sheets to define the fields for each of my entries. The entries are created using a form on my Zope site. My question is, is there any document, instructions, how-to, etc., that can tell me how to edit the entries once they are submitted? Ed Corrado ecorrado@hera.rider.edu
http://www.zope.org/Members/lstaffor/zProperties ----- Original Message ----- From: "Ed Corrado" <ecorrado@rider.edu> To: <zope@zope.org> Sent: Tuesday, March 14, 2000 10:35 AM Subject: [Zope] How do I edit values of items created using Property Sheets
I am new to Zope, so this might be a FAQ, but my seraches of the Zope archives and website didn't come up with anything. I have created a Zope application (phoebe.rider.edu:8080/Athena). I am using a Z Class with Property Sheets to define the fields for each of my entries. The entries are created using a form on my Zope site. My question is, is there any document, instructions, how-to, etc., that can tell me how to edit the entries once they are submitted?
The How-To explains how to do this from [zCass]_add method. How can it be done from a standard DTML method or document. With out hardcoding the id in the DTML? I hope this clarification helps. It would help me too :) Thanks to all, Nick Henderson ----- First Message ----- From: Kevin Dangoor <kid@kendermedia.com> Subject: Re: [Zope] How do I edit values of items created using Property Sheets
http://www.zope.org/Members/lstaffor/zProperties
----- Original Message ----- From: "Ed Corrado" <ecorrado@rider.edu> Subject: [Zope] How do I edit values of items created using Property Sheets
I am new to Zope, so this might be a FAQ, but my seraches of the Zope archives and website didn't come up with anything. I have created a Zope application (phoebe.rider.edu:8080/Athena). I am using a Z Class with Property Sheets to define the fields for each of my entries. The entries are created using a form on my Zope site. My question is, is there any document, instructions, how-to, etc., that can tell me how to edit the entries once they are submitted?
After reading the how-to that Kevin Dangoor and making some changes from the management interface, I am able to edit values connected to my Zope objects. While this is a start, it really isn't ideal. As Nick Henderson suggested, it would be better if there was a way to do this from standard DTHML, so that the editing form looks like a filled-in entry form? Does anyone have any suggestions? Also, a number of the fields in my entries are coming from "select" lists or checkboxes. This is being done to control the vocabulary so everyone enters the same term for the same item (eg. It would be a problem for my application if person #1 calls it "Time" and person #2 calls it "Time Magazine." Does anyone know of a way to take the existing values of an entry and pull it into a select list and tell the list to keep them "selected," or have an idea of a direction to go in order to attempt this? Ed Corrado On Tue, 14 Mar 2000, Nick Henderson wrote:
The How-To explains how to do this from [zCass]_add method. How can it be done from a standard DTML method or document. With out hardcoding the id in the DTML?
I hope this clarification helps. It would help me too :)
Thanks to all, Nick Henderson
----- First Message ----- From: Kevin Dangoor <kid@kendermedia.com> Subject: Re: [Zope] How do I edit values of items created using Property Sheets
http://www.zope.org/Members/lstaffor/zProperties
----- Original Message ----- From: "Ed Corrado" <ecorrado@rider.edu> Subject: [Zope] How do I edit values of items created using Property Sheets
I am new to Zope, so this might be a FAQ, but my seraches of the Zope archives and website didn't come up with anything. I have created a Zope application (phoebe.rider.edu:8080/Athena). I am using a Z Class with Property Sheets to define the fields for each of my entries. The entries are created using a form on my Zope site. My question is, is there any document, instructions, how-to, etc., that can tell me how to edit the entries once they are submitted?
On Mon, 20 Mar 2000, Ed Corrado wrote:
objects. While this is a start, it really isn't ideal. As Nick Henderson suggested, it would be better if there was a way to do this from standard DTHML, so that the editing form looks like a filled-in entry form? Does
I'd really like to see a global method that replicates the property sheet editor but is callable from code rather than the management interface and can thus be "wrapped"... There is some sample code somewhere that shows how to mostly do this in DTML. I looked at it, but wound up just creating my own specific editing form anyway, because I couldn't get it to run out of the box and didn't have time (or at that point the knowledge) to debug it.
and person #2 calls it "Time Magazine." Does anyone know of a way to take the existing values of an entry and pull it into a select list and tell the list to keep them "selected," or have an idea of a direction to go in order to attempt this?
Here's a snippet of code from my custom edit form that does this for a multiple select property I have. Hopefully this will help you roll your own. 'regions' is a lines property defined on another propertysheet (named 'constants' <wry grin>). I haven't yet figured out how to call this variable so I can use it in the addForm.) I basically copied this out of that sample code I mentioned above. <tr> <th><label id=in_regions>In Regions</label></th> <td> <select name="in_regions:list" multiple size="7"> <dtml-in regions> <option <dtml-if "_['sequence-item'] in in_regions">SELECTED</dtml-if >> <dtml-var sequence-item></option> </dtml-in> </select> </td> </tr> --RDM
participants (4)
-
Ed Corrado -
Kevin Dangoor -
Nick Henderson -
R. David Murray