How about creating a _get method in your class like:
def _get_ident(self):
return self.namespace + ':' + str(self.id)
You have to give the identifier a different name, but it does what you want
in a simple way.
You now get your identifier by 'object.ident'
TiNo
2007/7/30, Oleg Broytmann <[E
On Mon, Jul 30, 2007 at 01:59:26AM -0300, ?$B%D Leandro Sales wrote:
> I use the 'id' attribute of a sqlobject object in my program to
> uniquely identify a object. But now I need to use something like
> namespace:id as an identifier. What is the best way to produce this
> output since id is inte