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

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

2000-10-24 Thread Max Moller Rasmussen
From: Aleksander Salwa [mailto:[EMAIL PROTECTED]] >> >> >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. Yes I am afraid that this is the problem. That seems like such a messy solu

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

2000-10-23 Thread Aleksander Salwa
On Mon, 23 Oct 2000, Max Mřller 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

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.

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 - objec

[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 prop