Hi yuppie

> Betreff: [Zope-dev] coding style: using zapi recommended?

[...]

> In the Five version
> 
>    from zope.app import zapi
>    factory = zapi.getUtility(IFactory, type_name)
> 
> was replaced by
> 
>    import zope.component
>    factory = zope.component.getUtility(IFactory, type_name)

Use zope.component and skip dependency to zope.app 
by using "from zope.app import zapi".

Feel free to replace zapi everywhere in all packages
if you change something.

Regards
Roger Ienichen

_______________________________________________
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