[web2py:25479] Re: confusion about web2py's MVC namespace

2009-07-02 Thread
On Jul 2, 5:11 pm, Yarko Tymciurak wrote: > 2009/7/2 小谢 > > > > > > > On Jul 2, 4:55 pm, Yarko Tymciurak wrote: > > > On Thu, Jul 2, 2009 at 2:19 AM, 小谢 wrote: > > > > > On Jul 2, 2:30 am, Yarko Tymciurak wrote: >

[web2py:25476] Re: confusion about web2py's MVC namespace

2009-07-02 Thread
On Jul 2, 4:55 pm, Yarko Tymciurak wrote: > On Thu, Jul 2, 2009 at 2:19 AM, 小谢 wrote: > > > On Jul 2, 2:30 am, Yarko Tymciurak wrote: > > > On Wed, Jul 1, 2009 at 9:19 AM, Сл wrote: > > > > .. > > > > > Thanks. It really helped. It's

[web2py:25471] Re: confusion about web2py's MVC namespace

2009-07-02 Thread
On Jul 2, 2:30 am, Yarko Tymciurak wrote: > On Wed, Jul 1, 2009 at 9:19 AM, Сл wrote: > > .. > > > Thanks. It really helped. It's lucky that the project is still in its > > early stage and we'll be refactoring the existing code with respect to > > web2py's conventions. > > Glad it helped.

[web2py:25469] Re: Exception: cursor already closed

2009-07-02 Thread
On Jul 2, 2:57 pm, Сл wrote: > Hi everyone > > I'm encapsulating a couple of classes into a file under myapp/modules > and initialize some of them with "db" object. The weired thing is that > after one successful query I got "cursor already closed" exception > later on. Any suggestions? Oh, th

[web2py:25468] Exception: cursor already closed

2009-07-01 Thread
Hi everyone I'm encapsulating a couple of classes into a file under myapp/modules and initialize some of them with "db" object. The weired thing is that after one successful query I got "cursor already closed" exception later on. Any suggestions? --~--~-~--~~~---~--~--

[web2py:25413] Re: confusion about web2py's MVC namespace

2009-07-01 Thread
On Jul 1, 1:09 pm, Yarko Tymciurak wrote: > Hi Xie - > > The reason this worked as you described: > > For each request to your application,  web2py runs, finds your (the request) > application, > executes each file in the models directory (since the connection needs to be > defined), > and then

[web2py:25384] confusion about web2py's MVC namespace

2009-06-30 Thread
Recently I'm having some trouble with web2py but I don't know where the problem is. My best guess is that it's about the MVC namespace. Please correct me if I'm wrong. The problem is that I defined a class "App" in models/utils.py and when I tried to inherit this class in another .py file under t

[web2py:24866] Re: SQLDB.executesql doesn't work in doctest?

2009-06-23 Thread
On 6月24日, 上午10时06分, mdipierro wrote: > Can you tell us step by step what you are doing and which version of > web2py? > > massimo > > On Jun 23, 8:35 pm, Сл wrote: > > > Whenever I try to execute directly an sql, the test failed with > > "syntax error". Meanwhile the code works well when acces

[web2py:24856] SQLDB.executesql doesn't work in doctest?

2009-06-23 Thread
Whenever I try to execute directly an sql, the test failed with "syntax error". Meanwhile the code works well when accessed from a browser. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group.

[web2py:24470] little patch for gluon/sql.py

2009-06-18 Thread
hello all Here is a patch for gluon/sql.py to fix the raise of exception when executing directly an sql statement. For example: db.executesql("ALTER SEQUENCE table_id_seq RESTART WITH 1;") --- sql.py 2009-05-25 11:48:49.0 +0800 +++ sql.py