[web2py] Re: (virtualenv problems) ImportError for file in application/myapp/modules

2012-07-23 Thread Peter O
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. --

[web2py] (virtualenv problems) ImportError for file in application/myapp/modules

2012-07-23 Thread Peter O
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.

[web2py] [Bug?] Application Name

2012-06-13 Thread Peter O
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

[web2py] Receiving Email

2012-01-08 Thread Peter O
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.

[web2py] Re: How do Global Variables Work?

2012-01-05 Thread Peter O
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

Re: [web2py] How do Global Variables Work?

2012-01-05 Thread Peter O
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

[web2py] How do Global Variables Work?

2012-01-05 Thread Peter O
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

[web2py] Re: Architecture question: can I use Web2py template engine to generate emails?

2012-01-02 Thread Peter O
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? :)