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:\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+12, rochacbruno wrote:
>>
>>
>> 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*
>> rocha...@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.cl...@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