Anthony,
it looks like I was mistaken, I just got one of our more simple models to 
work as a module. I'll repost later with what I discover wrt response 
times. 

Thanks,
Matt

On Wednesday, June 12, 2013 1:50:54 PM UTC-4, Anthony wrote:
>
> On Wednesday, June 12, 2013 1:35:11 PM UTC-4, Matt wrote:
>
>> Yes, I started going down this path but it seems almost impossible. We 
>> use gluon.dal.Field in every model, as well as the T(..) function, and a 
>> number of other gluon-related classes/functions. I thought I could just 
>> import all of these and maintain all of our "models" as modules, but when I 
>> tried to use them in practice I received tons of errors about "request" or 
>> "response" not being available.
>
>
> If you need to access request, response, session, cache, or T in a module, 
> use the current object: 
> http://web2py.com/books/default/chapter/29/04#Accessing-the-API-from-Python-modules.
>  
> If you show an example of some of your model code, perhaps we can suggest 
> how you could do it in a module.
>
> Anthony
>

-- 

--- 
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.


Reply via email to