[Zope3-Users] getId in zope3?
jim at zope.com
Sun Nov 5 16:35:03 EST 2006
Fred Drake wrote:
> On 11/5/06, Stephan Richter <srichter at cosmos.phy.tufts.edu> wrote:
>> This is officially an implementation detail;
>> zope.traversing.api.getName() is
>> the API call.
> Interesting; I'd never known it was anything other than __name__.
> These APIs just keep changing...
No, the APIs haven't changed. It's really a question of best practice
and that evolves over time. We created a formal API, getName,
because we were queasy about exposing __name__. In practice, there
is no other implementation and using __name__ is cleaner in a lot of
Jim Fulton mailto:jim at zope.com Python Powered!
CTO (540) 361-1714 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org
More information about the Zope3-users