IRC logs of #tryton for Sunday, 2010-08-22

chat.freenode.net #tryton log beginning Sun Aug 22 00:00:02 CEST 2010
2010-08-22 02:32 -!- sharoon(~sharoon@opg066b.halls.manchester.ac.uk) has joined #tryton
2010-08-22 02:51 -!- digitalsatori(~tony@116.233.253.200) has joined #tryton
2010-08-22 03:05 -!- sharoon(~sharoon@opg066b.halls.manchester.ac.uk) has joined #tryton
2010-08-22 05:19 -!- yangoon(~mathiasb@p549F50DB.dip.t-dialin.net) has joined #tryton
2010-08-22 09:09 -!- Okko(~Okko@dhcp-077-251-140-095.chello.nl) has joined #tryton
2010-08-22 10:12 -!- digitalsatori(~tony@116.233.241.138) has joined #tryton
2010-08-22 10:58 -!- Okko(~Okko@dhcp-077-251-140-095.chello.nl) has joined #tryton
2010-08-22 12:10 -!- sharoon(~sharoon@vpn57.its.manchester.ac.uk) has joined #tryton
2010-08-22 13:05 -!- digitalsatori(~tony@116.233.243.113) has joined #tryton
2010-08-22 14:24 -!- ikks(~ikks@190.158.116.172) has joined #tryton
2010-08-22 14:46 -!- digitalsatori(~tony@116.233.249.36) has joined #tryton
2010-08-22 14:51 -!- bechamel(~user@host-85-201-147-56.brutele.be) has joined #tryton
2010-08-22 16:39 -!- digitalsatori(~tony@116.233.247.191) has joined #tryton
2010-08-22 17:12 -!- enlightx(~enlightx@dynamic-adsl-94-34-197-163.clienti.tiscali.it) has joined #tryton
2010-08-22 17:40 -!- juanfer(~juanfer@186.28.213.161) has joined #tryton
2010-08-22 17:41 -!- gremly(~gremly@190.26.186.242) has joined #tryton
2010-08-22 17:43 -!- gremly(~gremly@190.26.186.242) has joined #tryton
2010-08-22 18:16 -!- digitalsatori(~tony@116.233.247.191) has joined #tryton
2010-08-22 18:20 -!- digitalsatori(~tony@116.233.247.191) has joined #tryton
2010-08-22 18:33 -!- digitalsatori(~tony@116.233.247.191) has joined #tryton
2010-08-22 18:38 -!- plantian(~ian@c-69-181-194-95.hsd1.ca.comcast.net) has joined #tryton
2010-08-22 18:39 -!- digitalsatori(~tony@116.233.247.191) has joined #tryton
2010-08-22 20:37 -!- udono(~udono@dynamic-unidsl-85-197-17-55.westend.de) has joined #tryton
2010-08-22 21:22 -!- Okko(~Okko@dhcp-077-251-140-095.chello.nl) has joined #tryton
2010-08-22 22:33 -!- gremly(~gremly@190.26.186.242) has joined #tryton
2010-08-22 22:34 -!- sharoon(~sharoon@vpn26.its.manchester.ac.uk) has joined #tryton
2010-08-22 22:34 <sharoon> cedk: something related to imports
2010-08-22 22:35 <sharoon> cedk: at the moment all modules use `from foo import bar`
2010-08-22 22:36 <sharoon> cedk: this is not a recommended practice in python for imports according to http://docs.python.org/faq/programming.html#what-are-the-best-practices-for-using-import-in-a-module
2010-08-22 22:36 <sharoon> cedk: could you please guide/advice on the developer guidelines as to how tryton should do it? __all__ or name imports ? (like from foo import bar1, bar2)
2010-08-22 22:46 <bechamel> sharoon: I don't see where this page tell to avoid 'from foo import bar', or maybe I don't understand your remark ?
2010-08-22 22:47 <sharoon> bechamel: it says avoid from foo import *
2010-08-22 22:47 <sharoon> bechamel: it was a type in second message
2010-08-22 22:47 <sharoon> bechamel: we currently use `from foo import *`
2010-08-22 22:48 <bechamel> sharoon: yes but only in the __init__.py files
2010-08-22 22:48 <sharoon> bechamel: yes, is there any specific reason why we do so?
2010-08-22 22:48 <sharoon> bechamel: though it may be called only once per db
2010-08-22 22:50 <bechamel> sharoon: I don't know why it's implemented like that, it's openerp legacy
2010-08-22 22:51 <sharoon> bechamel: ok, i guess thats the source of the warning message we get when we start tryton saying that the module has already been imported
2010-08-22 22:52 <bechamel> but ... tryton modules are not python modules, they doesn't work if they are not imported by the server
2010-08-22 22:52 <sharoon> bechamel: probably we could have this on low priority but immediately update the http://code.google.com/p/tryton/wiki/CodingGuidelines
2010-08-22 22:52 <sharoon> bechamel: it specifically says except for __init__ module, which was my concern if its done for any specific reason
2010-08-22 22:53 <bechamel> I think the "already imported" message is a result of installing eggs and running tryton from a mercurial repo
2010-08-22 22:58 <bechamel> the reason to avoid 'import *' is because it clutters the namespace. For the __init__.py files this it not a problem, it's only boilerplate code
2010-08-22 22:59 <bechamel> I'm completly ok to break guidelines where it makes sense
2010-08-22 23:08 <bechamel> sharoon: actually the only role of the __init__.py file is to tell which *.py file to load, just like the 'xml' list in __tryton__.py for the xml files. So, one can imagine creating a 'py' list in the __tryton__ and drop __init__.py
2010-08-22 23:09 <sharoon> bechamel: understand what you mean

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!