I found that it looks like for problem in SQLTABLE:
{{
=SQLTABLE(table,_id="gpon_lista",_style="width: 850px; text-align: center; 
align: center;") 
}}

after commenting this line out error didn't show, but of course this not 
proper solution for me...

Please advice, becouse I don't want to mess up in web2py code, and it seems 
to be some web2py issue...

Regards
brk

W dniu niedziela, 7 maja 2017 13:46:04 UTC+2 użytkownik brushek napisał:
>
> Hello,
>
> I have recently did git pull for some old web2py powered project, after 
> that I get:
>
> <type 'exceptions.AttributeError'> 'Rows' object has no attribute 'fields' 
> Version 
> web2py™ Version 2.14.6-stable+timestamp.2016.05.09.19.18.48 
> Python Python 2.7.6: /usr/local/bin/uwsgi (prefix: /usr) Traceback 
>
> 1.
> 2.
> 3.
> 4.
> 5.
> 6.
> 7.
> 8.
>
> Traceback (most recent call last):
>   File "/home/brushek/web2py/gluon/restricted.py", line 216, in restricted
>     exec(ccode, environment)
>   File "<string>", line 102, in <module>
>   File "/home/brushek/web2py/gluon/sqlhtml.py", line 3314, in __init__
>     fieldmap = dict(zip(sqlrows.colnames, sqlrows.fields))
> AttributeError: 'Rows' object has no attribute 'fields'
>
> Error snapshot [image: help] 
> <https://gpon.betanet.pl/admin/default/ticket/GPON/89.72.161.229.2017-05-07.13-37-09.01336f84-f856-41e6-a7cb-6dd6934f60f9#>
>  
>
> <type 'exceptions.AttributeError'>('Rows' object has no attribute 'fields')
>
>
> This is all code for controller:
>
>
> def listuj():
>     (dev,telnet) = gpon.connect_GPON()
>     onts_s = gpon.ont_state(telnet)
>     table = db(db.gpon_ont._id>0).select()
>     return dict(table=table,statusy=onts_s,message='Lista wszystkich ONT w 
> bazie danych')
>
>
> Can You advice what is wrong ?
>
>
> Regards
>
> brk
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to