[Zope3-dev] absolute_url vs IAbsoluteURL

Garrett Smith garrett at mojave-corp.com
Thu Apr 8 12:49:36 EDT 2004


We're currently looking up the absolute URL view by name 
('absolute_url'). Is this something falls into the 'magic names bad' 
category?

I.e. instead of:

   zapi.getView(context, 'absolute_url', request)

we'd use:

   zapi.getViewProviding(context, IAbsoluteURL, request)

  -- Garrett




More information about the Zope3-dev mailing list