On 2016-08-24 16:44, Mathias Behrle wrote: > Alternative: > > from category import Category > from party import Party, PartyCategory > ... > > def register(): > ...no need to change > > > While this should meet all three advantages cited above as well, it has for me > the additional advantage of a more accustomed view of imports.
The disadvantages are when a module has a lot of object the list in the import statement becomes very long, difficult to read and more complicate to maintain (because it must be changed for every new object). -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ -- You received this message because you are subscribed to the Google Groups "tryton-dev" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton-dev/20160824145600.GR12158%40tetsuo.
signature.asc
Description: PGP signature