On Saturday, January 7, 2017 at 11:07:36 AM UTC-8, Anthony wrote:
>
> On Saturday, January 7, 2017 at 1:57:36 PM UTC-5, Brendan Barnwell wrote:
>>
>> The shared functionality involves DB access, so as far as I can tell it 
>> cannot be abstracted into modules that would then be imported with a normal 
>> import.
>>
>
> You can use the DAL from modules as well. As Niphlod suggested, you can 
> also use the scheduler to schedule and run a task in the context of another 
> app, though that might not be as fast as you'd like, as even setting 
> immediate=True, it could take up to "heartbeat" seconds for the worker to 
> pick up and execute the task, and then you have to check for the results.
>
>
I can use the DAL, but can I use the "db" object defined in my models 
file?  Or do you mean I could use the DAL if I rewrote my other app to use 
a "model-less" approach where the models were defined in some other manner?

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to