>
>  1) when and why to user "current"

I don't be sure I understand, "user current", current is the object you can
access from the module instead of passing globals

2) where to put "imports". since in Python we've always been told to put
> them at top of file. But it looks like they need to go in the def function()
> in order to not be loaded when other functions run.


Use in the top of controller nobody restrict you to do that, I'm only
importing when I need it.

2011/5/13 pbreit <pbreitenb...@gmail.com>

> Good writeup, thanks, Martin.
>
> The things that still confuse me are:
> 1) when and why to user "current"
> 2) where to put "imports". since in Python we've always been told to put
> them at top of file. But it looks like they need to go in the def function()
> in order to not be loaded when other functions run.
>



-- 
 http://martin.tecnodoc.com.ar

Reply via email to