The problem is limited to the "import mymodule" line in models, but not in
controllers.
I am using "mymodule = local_import("mymodule")" to get by.
--
Help please.
I am preparing for a PaaS deployment on Heroku or Dotcloud.
I am following the setup on this page
(https://devcenter.heroku.com/articles/django), which is essentially the
same steps as in scripts/setup-virtualenv-web2py.sh.
However, I am getting an import error within virtualenv.
This may be a bug.
parse_path_info() in shell.py gives (None, None, None), if the application
name is abc-xyz, where the hyphen is causing the problem. abc_xyz is a
valid application name.
Version 1.99.4
Hihi, after a quick look at the code and the past discussions of the forum,
I found the Mail class doesn't read emails. Is that right?
There are python modules doing this. Just want to do make sure, before I
start.
Thank you very much.
http://web2py.com/books/default/chapter/29/5?search=globals%28%29
I see. Am I right that View doesn't see the global variables (in
Controller), but the parent View sees the variables in View as global
variables?
Then, what causes the difference between Example 1 and 2? What's the
relationship
I understand explicitly passing the variable will do the work.
However, what's the purpose of global variables? I thought this conflicts
with one of the examples in the Introduction chapter.
Secondly, I don't understand the different results between Example 1 and 2.
Something deeper is happenin
Hihi,
I am baffled by what I see between Example 1 and 2.
It may be a good case to improve my understanding of the run-time
environment of web2py.
Thanks in advance for any comments.
VIEW: (test.html)
{{=globals().get('t1', False)}}
CONTROLLER:
== Example 1 ==
def test():
global
I am glad that I found this answer, after printing all the intermediary
variables for a couple of hours.
Is this considered a Gotcha, or better be documented if it is the design? :)
8 matches
Mail list logo