On Wednesday 23 July 2008, Philipp von Weitershausen wrote:
> I think Stephan is referring to the (formerly) last item of the tuple,
> which is available as utility_reg.info. It contains information about
> how the component was registered, for instance the ZCML file name + line
> number.
>
> It looks like Stephan is suggesting to do something like this:
>
>    component = factory()
>    registry.registerUtility(component, info=InfoAbout(factory))
>
> whereas Wichert's approach allows you to write:
>
>    registry.registerUtility(factory=factory)
>
> I prefer Wichert's approach.

Oh, I thought the "component" argument was still required making factory a 
documentation artifact. In this case I am okay.

Regards,
Stephan
-- 
Stephan Richter
Web Software Design, Development and Training
Google me. "Zope Stephan Richter"
_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to