RE: [Zope] Updating auto incrementing counter in a propertysheet

2000-10-24 Thread Max Moller Rasmussen
From: Aleksander Salwa [mailto:[EMAIL PROTECTED]] dtml-call "REQUEST.set('new_id', lastID+1)" dtml-call "REQUEST.set(lastID, new_id)" In the above line --- do you want to set up new value for ZClass property, isn't it ? If so, you have to use manage_changeProperties method of property sheet.

RE: [Zope] Updating auto incrementing counter in a propertysheet

2000-10-24 Thread Max Møller Rasmussen
From: Bill Anderson [mailto:[EMAIL PROTECTED]] Is it more important that they be in an order, or that they be in a specific sequential list? Actually what is important is that they are integers and in a specific order. So the datestamp method isn't that feasible for me. (I'm trying to make a

[Zope] Updating auto incrementing counter in a propertysheet

2000-10-23 Thread Max Møller Rasmussen
What am I doing wrong here ... please !! I am trying to make an autoincrementing counter for use in a diskussion forum. It's purpose is to autogenereate id's for new messages. It is important that the id's are in order, so I need to make them this way. I have a zClass (objectmanger) with a

Re: [Zope] Updating auto incrementing counter in a propertysheet

2000-10-23 Thread Andy McKay
[..] When I try to get the property directly via the browser i get a result of "1" The default value for lastID=0 to begin with so this sounds plausible, but when I refresh the browser nothing happens. So I guess that lastID isn't updated in the above code. I think this is a class - object

Re: [Zope] Updating auto incrementing counter in a propertysheet

2000-10-23 Thread Bill Anderson
Max Møller Rasmussen wrote: What am I doing wrong here ... please !! I am trying to make an autoincrementing counter for use in a diskussion forum. It's purpose is to autogenereate id's for new messages. It is important that the id's are in order, so I need to make them this way. Is

Re: [Zope] Updating auto incrementing counter in a propertysheet

2000-10-23 Thread Aleksander Salwa
On Mon, 23 Oct 2000, Max Mller Rasmussen wrote: I have a zClass (objectmanger) with a property called "lastID", on a propertysheet called "hidden". I have then written a dtml mehtod that should return the id incremented by 1 and then sets the lastID to this new id. the dtml for the