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, and you will not have the
ols problem of lot of tables defined.

BTW: I am still using the modelless class based scheme and it is working
good.


*Bruno Cezar Rocha** - @rochacbruno*
rochacbr...@gmail.com | Mobile: +55 (11) 99210-8821
www.CursoDePython.com.br | www.rochacbruno.com.br
Blog: Using Python to get all the external links from a
webpage<http://rochacbruno.com.br/using-python-to-get-all-the-external-links-from-a-webpage/>
  Get a signature like this.
<http://r1.wisestamp.com/r/landing?promo=18&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_18>
Click
here.<http://r1.wisestamp.com/r/landing?promo=18&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_18>



On Sun, Sep 9, 2012 at 3:22 PM, Don_X <don.clerm...@gmail.com> wrote:

> 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.x
>
> When I downloaded and installed the running test app to check it out with
> any 2.0.x
>
> I get the following error ticket msg :
>
> <type 'exceptions.AttributeError'> 'DataBase' object has no attribute
> '_lazy_tables'
>
>
> Can anyone help me with this ??? ...  so I can make it right ... before I
> incorporate this approach in my app dev habit ..
>
> is there a patch for it ??? ...
>
> thank you
>
> Don
>
>
>
>  --
>
>
>
>

-- 



Reply via email to