My app has several different tables, like: db.gis_layer_openstreetmap_type db.gis_layer_google_type
I want to be able to do a lookup on these tables by a single line with subsitution. Something like: type="openstreetmap" for row in db().select(db.gis_layer_%(type)_type.ALL): I see some examples which suggest that something like this should be possible but I can't get it to work. Pointers welcomed - docs seem scarce on this functionality, even in base Python, let alone Web2Py... F --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

