On Friday 05 August 2005 06:25, Florian Lindner wrote: > in a Containers chooseName function I want to use a attribute of the > created object: > > def chooseName(self, name, object): > return object.name > > > File > "/home/florian/Desktop/zope/lib/python/CS/ContentFolder/contentfolder.py", > line 15, in chooseName > return object.name > AttributeError: 'Link' object has no attribute 'name' > > > Even though apidoc says there is a attribute name. > > Or is it impossible to access the attributes at this time of the creation > process?
Simply start the debugger to see what's going on. import pdb; pdb.set_trace() inside the chooseName method and you can inspect the object. You might have to say "up" once first to access it. Regards, Stephan -- Stephan Richter CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student) Web2k - Web Software Design, Development and Training _______________________________________________ Zope3-users mailing list Zope3firstname.lastname@example.org http://mail.zope.org/mailman/listinfo/zope3-users