I'm trying a left outer join in a sqlform.grid
Traceback
Traceback (most recent call last):
File "C:\Users\tim\web2py_dev\gluon\restricted.py", line 216, in
restricted
exec(ccode, environment)
File
"C:\Users\tim\web2py_dev\applications\patient_form\controllers/patient_appointments.py:patient_lookup"
, line 337, in <module>
File "C:\Users\tim\web2py_dev\gluon\globals.py", line 405, in <lambda>
self._caller = lambda f: f()
File
"C:\Users\tim\web2py_dev\applications\patient_form\controllers/patient_appointments.py:patient_lookup"
, line 185, in patient_lookup
File "C:\Users\tim\web2py_dev\gluon\sqlhtml.py", line 2332, in grid
tablenames += db._adapter.tables(join)
TypeError: unsupported operand type(s) for +=: 'dict' and 'dict'
This is master for web2py and 17.03 release of DAL although I have this
problem in the latest tagged release too.
The database is mssql.
the code is:
grid = SQLFORM.grid(db_vciadmin.patient_entity_link,
left = db_vciadmin.appt_reminder_status.on(
db_vciadmin.patient_entity_link.unified_id == db_vciadmin.
appt_reminder_status.clinic_patient),
#
fields=[db_vciadmin.patient_entity_link,tbl_appt.location,
tbl_appt.appt_date,tbl_appt.appt_startdatetime,tbl_appt.patient_name,
tbl_appt.email_sent_when,
# #tbl.email_reply_when,
#
tbl_appt.appt_confirmed,tbl_appt.sms_sent_when, tbl_appt.sms_reply_when,
# tbl_appt.patient_phone,
tbl_appt.clinic_patient,
# #tbl.patient_email
# ],
# orderby = tbl_appt.appt_date,
# paginate=200,
# links=[dict(header='Appts', body=lambda row:
appt_details_helper(row))],
# details=True
)
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.