Yep - that took care of it. Thanks, Anthony! On Monday, June 2, 2014 5:17:02 PM UTC-5, Anthony wrote: > > Your "set" object is actually a Query, not a Set -- should be: > > set = db(db.t_image.id.belongs(db(query)._select(db.t_image.id, limitby=(0 > ,48)))) > > Anthony > > On Monday, June 2, 2014 5:27:12 PM UTC-4, Spokes wrote: >> >> Thanks! I removed that while doing some debugging, and forgot to bring it >> back in - it seems to have fixed the error originating in the model. Now >> that that's resolved, I'm a bit confused about how to use the gallery table >> in the controller with SQLFORM(). If I do the usual thing, as in the >> following line, there is an error message stating that "Query' object is >> not callable": >> >> form = SQLFORM(db.t_gallery) >> >> >> >> On Monday, June 2, 2014 2:14:20 PM UTC-5, Anthony wrote: >>> >>> You forgot the second argument to IS_IN_DB: >>> >>> IS_IN_DB(set, 't_image.id', db.t_image._format, multiple=(1,24))) >>> >>> Anthony >>> >>> On Monday, June 2, 2014 2:50:53 PM UTC-4, Spokes wrote: >>>> >>>> I made the modification, and it's still producing the same error >>>> message. I get the impression that it has to do with *db.t_image*'s >>>> format field. Do you think that this may be the case? Any other >>>> suggestions >>>> on how to go about resolving the issue? Thank you. >>>> >>>
-- 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.

