Can you show some code? You might just be able to pass those objects to the class's methods when they are called. Otherwise, you could add the db object to the current object and import current in you modules, as described here: http://web2py.com/books/default/chapter/29/04#Accessing-the-API-from-Python-modules .
Anthony On Wednesday, April 10, 2013 7:27:24 AM UTC-4, ctrlSoft wrote: > > my db.tables are defined in model, i have 3 controllers, and i have some > functions that are used in all 3, so i decided to create an module. now i'm > a little confused, i saw some examples where tables are defined in module, > and other posts where is talinkg about import.... > wich is the best way? > > i would like to maintain defining tables in model and pass > (db,tablename,field1,value1......) to my class.... and so on.(if my > preference is not SF, can help me with it?) > > > -- --- 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.