Newbie question: testing a script with a record argument
L.S., Actually I have 2 questions: #1 Could someone hint me on how to test a Python script in the test tab view, where the script needs a person record (as obtained from an addPersonForm)? The person record consists of the person.fname and person.lname fields but I just have one entry for person in the test form. #2 The above-mentioned form should let me add a person-object to a Persons-folder. I want to assign to every object a unique IDnumber. My idea is to store the lastAssignedID information as a property of the Persons-folder and update it after every adding. Does this make sense and should I use something like container.manage_changeProperty(lastAssignedID)? Thanks in advance, Roger Erens
On Mon, 20 Aug 2001, Roger Erens wrote:
#2 The above-mentioned form should let me add a person-object to a Persons-folder. I want to assign to every object a unique IDnumber. My idea is to store the lastAssignedID information as a property of the Persons-folder and update it after every adding. Does this make sense and should I use something like container.manage_changeProperty(lastAssignedID)?
http://www.zope.org/Members/Bill/Documentation/AutoGenID?pp=1 http://www.zope.org/Members/alex.khan/GlobalSystemId?pp=1 Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
participants (2)
-
Oleg Broytmann -
Roger Erens