Update: Changing from gluon import * from globals import Storage, Response to from gluon import * from gluon.globals import Storage, Response AND restart web2py solve the "import" problem in a plugin.
Il giorno mercoledì 10 aprile 2013 16:49:08 UTC+2, Matteo Luperto ha scritto: > > Dear web2py users, > I am novice web2py user and I've recently started developing my first real > project. > Unfortunately I'm having some issues: > > - The plugin-controller code is not update when modified, unless the > server is restarted. Example: if there's an error at a certain line and I > comment it, i keep getting the same error ticket (in the ticket, the line > is not commented, the old version of the .py is displayed). > - I have troubles importing gluon.globals in a plugin controller. > Specifically "import gluon; from gluon.globals import Response" returns a > "ImportError No module named globals" exception. However if I try > executing > the same two lines in the shell or in a normal controller, it works fine. > > Is anyone else experiencing the same problems? > I am using 2.4.5 (.dmg) on OS X 10.8. > Thank you in advance! > ~Matteo > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.