Does not exist because it is always lazy by default.

On Friday, 14 June 2019 21:53:54 UTC-7, 黄祥 wrote:
>
> *url* = 
>> http://localhost:8000/_dashboard/dbadmin?app=test&dbname=db&tablename=address
>> *result* = { "__class__": "lazyT", "kwargs": {}, "text": "Field 0", 
>> "translator": { "__class__": "method" } }
>> *expected result *= Field 0
>> no error occured but the result is not expected
>>
>
> there's told about lazyT, so put it lazy (which work in web2py), but 
> return an error on web3py
> def on_define_address(table): 
>     table.street.label = T('Street', lazy = True)
>
> Traceback (most recent call last):
>   File "/Users/sugizo/learn/python/web3py/web3py/core.py", line 614, in 
> import_apps
>     module = importlib.machinery.SourceFileLoader(module_name, init).
> load_module()
>   File "<frozen importlib._bootstrap_external>", line 407, in 
> _check_name_wrapper
>   File "<frozen importlib._bootstrap_external>", line 907, in load_module
>   File "<frozen importlib._bootstrap_external>", line 732, in load_module
>   File "<frozen importlib._bootstrap>", line 265, in _load_module_shim
>   File "<frozen importlib._bootstrap>", line 696, in _load
>   File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 728, in exec_module
>   File "<frozen importlib._bootstrap>", line 219, in 
> _call_with_frames_removed
>   File "/Users/sugizo/learn/python/web3py/apps/test/__init__.py", line 1, 
> in <module>
>     from .controllers.install import *
>   File 
> "/Users/sugizo/learn/python/web3py/apps/test/controllers/install.py", 
> line 2, in <module>
>     from ..models.db_schema_1_address import *
>   File 
> "/Users/sugizo/learn/python/web3py/apps/test/models/db_schema_1_address.py"
> , line 54, in <module>
>     format = lambda r: \
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/base.py"
> , line 592, in define_table
>     table = self.lazy_define_table(tablename, *fields, **kwargs)
>   File 
> "/Users/sugizo/miniconda3/envs/python3_test/lib/python3.7/site-packages/pydal/base.py"
> , line 633, in lazy_define_table
>     on_define(table)
>   File 
> "/Users/sugizo/learn/python/web3py/apps/test/models/db_schema_1_address.py"
> , line 8, in on_define_address
>     table.street.label = T('Street', lazy = True)
> TypeError: __call__() got an unexpected keyword argument 'lazy'
>
> best regards,
> stifan
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/ccfec337-af57-4788-ad45-48f5213c7eaf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to