Hi,

Since some time, I'm a little bit annoyed by our exception about
"import *" in __init__.py. It will be great if we could have no more
those warning.
So I propose to gradually change our style to use this one (example from
party module):

    import category
    import party
    …

    def register():
        Pool.register(
        category.Category,
        party.Party,
        party.PartyCategory,
        …)

I find that it has three advantages:

    - remove the "import *"
    - remove collision risk about class name
    - show which python file comes a class

What do you think?

-- 
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/20160824105925.GP12158%40tetsuo.

Reply via email to