[Modeling-users] self.getId()
Status: Abandoned
Brought to you by:
sbigaret
From: <so...@la...> - 2003-03-17 19:00:39
|
Hy all, so this is for big take a look at http://larsen-b.com As you can see, i got modeling working well :) I get one question: how could i get the id for an object (I ever see this on the list, but i miss it). cause while working on web using real objects (read between two transaction) is impossible without using user session, so i think working on id is a nice way to solve this for me. I know that working on id is a bad habit but .. Should i use something like ? ================================================================= class Article(CustomObject): [snip of generated] def getID(self): self.editingContext().globalIDForObject(o).keyValues()['id'] ================================================================= |