Considering that I have many tables in my model files on the main app I am
building &
Wanting to take the modelless approach ( slice submitted by BrunoRocha )
in order to avoid possible future bottleneck and/or latency
I wanted to advise that the modelless app no longer works under web2py 2.0.
Here is the solution:
https://github.com/rochacbruno/web2py_model_less_app/blob/master/modules/myapp.py#L82
That approach subclasses DAL so it need to include _lazy_tables = {}
But, now that we have lazy_tables in default DAL, I recommend you to use
the default web2py scheme with lazy_tables=True
thank you Bruno for the update ! .. I will look it up shortly.
--
Thanks Bruno for the comments,
I have been looking into the modelless approach so it's interesting to read
your views on the new lazy_tables feature.I think it is a lot simpler
creating an app that follows the MVC structure out of the box, so the lazy
option sounds like a great breakthrough
On Sun, Sep 9, 2012 at 9:27 PM, Andrew W wrote:
> (although I still don't quite really understand what a lazy table is).
imagine you have
models/db.py
db = DAL(...)
db.define_table("table1".)
db.define_table("table2".)
...
...
db.define_table("table30".)
So, for each request (I m
Excellent. Great explanation.
On Monday, September 10, 2012 1:15:32 PM UTC+12, rochacbruno wrote:
>
> On Sun, Sep 9, 2012 at 9:27 PM, Andrew W
> > wrote:
>
>> (although I still don't quite really understand what a lazy table is).
>
>
> imagine you have
>
> models/db.py
>
> db = DAL(...)
> db.d
Hi Bruno,
I got the same error with movuca, which I downloaded today:
File "D:\Mercurial\web2py\gluon\dal.py", line 7149, in __getattr__
if ogetattr(self,'_lazy_tables') and \
AttributeError: 'DataBase' object has no attribute '_lazy_tables'
On Monday, September 10, 2012 7:24:15 AM UTC+1
Is anyone else using Movuca with web2py version 2.x experiencing this ? I
downloaded the latest Movuca and I'm running web2py off trunk.
On Monday, September 10, 2012 4:59:08 PM UTC+12, Andrew W wrote:
>
> Hi Bruno,
> I got the same error with movuca, which I downloaded today:
>
> File "D:\M
I did some changes on Movuca, but I still have to solve little issues in
order to commit.
But I just commited a workarounf for the problem:
https://github.com/rochacbruno/Movuca/commit/aa25103e9c37921a34a225b8e82ca0f8634ca831
--
Perfect ! Thanks for the quick response.
I saw your solution above, but assumed that you had added it to github.
All's Good.
One more question please (which I asked on web2py slices):
How to use auth.wiki with movuca. There was a web2pyslices post in
relation to plugin_wiki, and I was won
So if I understand you correctly you lighten the server load and get
quicker sites when you add change db=DAL(...) to
db=DAL(...,lazy_tables=True)
I like the everything gets better option :)
On Monday, September 10, 2012 3:15:32 AM UTC+2, rochacbruno wrote:
>
> On Sun, Sep 9, 2012 at 9:27 PM, An
11 matches
Mail list logo