I'm not sure why you're getting that specific error, but I see a few 
problems:
 
This may be a typo, but your module pastie says the module is named 
object.py (which is probably not a good idea, since 'object' is a Python 
builtin), but the controller says 'from objects import Search' (note the 
plural).
 
staticmethods do not implicitly receive the object instance as the first 
argument, so your show() function in class Search should not include the 
'self' argument.
 
This is not critical, but when creating a class, I think it is generally 
preferable to use new style classes, so you should do 'class 
Search(object):' instead of just 'class Search:'.
 
A couple of side notes:
 
As of 1.98.1, you no longer have to use TAG['']() -- instead you can use the 
new CAT() tag (which does exactly the same thing).
 
The 'current' object is a thread-local object, and the framework adds the 
request, response, session, cache, and T objects to it (i.e., 
current.request, current.response, etc.). You can import 'current' from 
gluon and then use it to access those request-scope objects within any 
module without having to explicitly pass them as arguments.
 
Anthony
 
 

Reply via email to