Will your example provide both field name and field value?

am reveiving error

CONTROLLER: supRows = db(db.Organization.id == 1).select()  {{#returns 
locals}}

VIEW:
{{for record in supRows:}}
    {{=record.field}} <br>
{{pass}}

Error ticket for "ES3"Ticket ID

127.0.0.1.2017-03-09.16-54-06.fc1316c6-4ce4-4041-81fc-4f3ab11ce557
<type 'exceptions.AttributeError'>Version
web2py™ Version 2.14.6-stable+timestamp.2016.05.10.00.21.47
Python Python 2.7.9: C:\alex\alt_web2py_7\web2py\web2py.exe (prefix: 
C:\Python27)Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.

Traceback (most recent call last):
  File "C:\alex\alt_web2py_7\web2py\gluon\restricted.py", line 227, in 
restricted
    exec ccode in environment
  File 
"C:\alex\alt_web2py_7\web2py\applications\ES3\views\default/manage_super_object_options.html",
 line 95, in <module>
    </div>
  File "C:\alex\alt_web2py_7\web2py\gluon\packages\dal\pydal\objects.py", line 
90, in __getattr__
    raise AttributeError
AttributeError

Error snapshot [image: help] 
<http://127.0.0.1:8000/admin/default/ticket/ES3/127.0.0.1.2017-03-09.16-54-06.fc1316c6-4ce4-4041-81fc-4f3ab11ce557#>

<type 'exceptions.AttributeError'>()

inspect attributes
Frames
   
   - 
   
   *File C:\alex\alt_web2py_7\web2py\gluon\restricted.py in restricted at 
   line 227* code arguments variables
   - 
   
   *File 
   
C:\alex\alt_web2py_7\web2py\applications\ES3\views\default\manage_super_object_options.html
 
   in <module> at line 95* code arguments variables
   - 
   
   *File C:\alex\alt_web2py_7\web2py\gluon\packages\dal\pydal\objects.py in 
   __getattr__ at line 90* code arguments variables
   Function argument list
   
   (self=<Row {'performance_measurement': <Set (performan...server': <Set 
   (it_server.super_object_fk = 13)>}>, k='field')
   Code listing
   
   85.
   86.
   87.
   88.
   89.
   90.
   
   91.
   92.
   93.
   94.
   
   
       def __getattr__(self, k):
           try:
               return self.__getitem__(k)
           except KeyError:
               raise AttributeError
   
   
       def __copy__(self):
           return Row(self)
   
   

-- 
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