*Running on latest web2py v2.4.6 from trunk (but also occurs in Version 
2.4.6-stable+timestamp.2013.04.06.17.37.38).*

When traversing linked tables with a smartgrid, the breadcrumbs code in 
sqlhtml.py is causing an error, due to a mixup of the table/record 
association.

The problem is easily duplicated by creating a new app with the wizard:

   1. Define table: car_type
      - Field: desc string
   2. Define table: car
      - Field: name string
      - Field: car_type_id *reference* car_type
   3. Run the application.
   4. Click the "Car Type" menu link, which invokes SQLFORM.smartgrid for 
   the car_type table.
   5. In the car_type grid, on one of the records, click the "T cars" link. 
   This pulls up a grid for the cars table, filtered for the selected car_type.
   6. In the car grid, click one of the "Car Type Id" links.
      - This will result in the error: <type 'exceptions.AttributeError'> 
      'Row' object has no attribute 'f_name'
   
Causing this error is a call to format() in the breadcrumbs code of 
sqlhtml.py, line 2662. The table argument being referenced for the format 
string is *car*, but the row argument is a *car_type* record.

-- 

--- 
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/groups/opt_out.


Reply via email to