How to get an object in a folder using its id!!!!
Hi... It may seem to be a new bie question... I am trying to get the items which are in published state in folder_delete.py.... Have anybody done this already... otherwise can someone help on this.... I have list of ids....I want to get objects of those ids.....so that i can check for their review_state.... I did using context.restrictedTraverse(id)...but i cant access the property.....Does this method return the object of that id Expecting a fast replz saravanan A A.Saravanan, WundtStrasse 7,Zi:9L1, Dresden - 01217 Germany Home: 0351-7997546 Mobile: 01797395091
On 20.Jun 2003 - 17:05:18, saravanan annamalai wrote:
Hi... It may seem to be a new bie question... I am trying to get the items which are in published state in folder_delete.py....
Have anybody done this already...
otherwise can someone help on this.... I have list of ids....I want to get objects of those ids.....so that i can check for their review_state....
I did using context.restrictedTraverse(id)...but i cant access the property.....Does this method return the object of that id
That assumes the objects you wan't are in the folder on which the script is called?! Ok, then I would do: getattr(context, id) which delivers the correct Object. Andreas -- You have the body of a 19 year old. Please return it before it gets wrinkled.
saravanan annamalai wrote:
Hi... It may seem to be a new bie question... I am trying to get the items which are in published state in folder_delete.py....
Have anybody done this already...
python: getattr(folder, id)
Expecting a fast replz
Arent we all? regdz dewd
participants (3)
-
Andreas Pakulat -
Max M -
saravanan annamalai