Re: [web2py] Using Web2py in a multi app environment.

2013-06-06 Thread Anthony
LOAD(url=URL('otherapp', 'controller', 'function', ...)) When specifying the "url" argument, you don't have to bother setting ajax=True, as external URL's are always loaded via Ajax. Anthony On Thursday, June 6, 2013 12:44:46 PM UTC-4, Ramos wrote: > > LOAD signature does not show where i can s

Re: [web2py] Using Web2py in a multi app environment.

2013-06-06 Thread António Ramos
LOAD signature does not show where i can specify another app LOAD(c=None, f='index', args=[], vars={}, extension=None, target=None, ajax=False, ajax_trap=False, url=None,user_signature=False, timeout=None, times=1, content='loading...',**attr): 2013/6/6 António Ramos > Anthony, your first

Re: [web2py] Using Web2py in a multi app environment.

2013-06-06 Thread António Ramos
Anthony, your first suggestion seems more productive LOAD !!! thank you 2013/6/6 Anthony > > http://web2py.com/books/default/chapter/29/06#Using-DAL-without-define-tables > > > On Thursday, June 6, 2013 11:55:34 AM UTC-4, Ramos wrote: > >> how do i connect to another app sqlite database? >> >

Re: [web2py] Using Web2py in a multi app environment.

2013-06-06 Thread Anthony
http://web2py.com/books/default/chapter/29/06#Using-DAL-without-define-tables On Thursday, June 6, 2013 11:55:34 AM UTC-4, Ramos wrote: > > how do i connect to another app sqlite database? > > > > 2013/6/6 Anthony > > >> If you import the module from B within A, the B module doesn't get the >> "c

Re: [web2py] Using Web2py in a multi app environment.

2013-06-06 Thread António Ramos
how do i connect to another app sqlite database? 2013/6/6 Anthony > If you import the module from B within A, the B module doesn't get the > "current" object from the B app -- that object is created when the db.py > model file of the B app gets executed, which is not happening here. If you > w

Re: [web2py] Using Web2py in a multi app environment.

2013-06-06 Thread Anthony
If you import the module from B within A, the B module doesn't get the "current" object from the B app -- that object is created when the db.py model file of the B app gets executed, which is not happening here. If you want to use the db from app B, you could either create the DAL connection ob

Re: [web2py] Using Web2py in a multi app environment.

2013-06-06 Thread António Ramos
Well, seems an easy task but i´m stuck How can i get in app A a sqlform.smartgrid(db.auth_user) from app B? db is B's db in app A i call the app B module from applications.B.modules.funcs import * def calmais(): return mais() In app B *in db.py* current.db = db *i have a module funcs.py

Re: [web2py] Using Web2py in a multi app environment.

2013-06-06 Thread António Ramos
gotcha from applications.myapp.modules.funcs import func Nice ! 2013/6/6 António Ramos > How do i import a module from another app? > > > 2013/6/5 Niphlod > >> and nobody stops you to call other apps pages inside your "master" >> one, e.g., using LOAD, and "elect" a master app to take car

Re: [web2py] Using Web2py in a multi app environment.

2013-06-06 Thread António Ramos
How do i import a module from another app? 2013/6/5 Niphlod > and nobody stops you to call other apps pages inside your "master" > one, e.g., using LOAD, and "elect" a master app to take care of > authorization with CAS. > > On Wednesday, June 5, 2013 7:21:39 PM UTC+2, Ramos wrote: > >> I h

Re: [web2py] Using Web2py in a multi app environment.

2013-06-05 Thread Niphlod
and nobody stops you to call other apps pages inside your "master" one, e.g., using LOAD, and "elect" a master app to take care of authorization with CAS. On Wednesday, June 5, 2013 7:21:39 PM UTC+2, Ramos wrote: > > I have to check this .. > > *But you can put your SQLFORM in a module funct

Re: [web2py] Using Web2py in a multi app environment.

2013-06-05 Thread Niphlod
and nobody stops you to call other apps pages inside your "master" one, e.g., using LOAD, and "elect" a master app to take care of authorization with CAS. On Wednesday, June 5, 2013 7:21:39 PM UTC+2, Ramos wrote: > > I have to check this .. > > *But you can put your SQLFORM in a module funct

Re: [web2py] Using Web2py in a multi app environment.

2013-06-05 Thread António Ramos
I have to check this .. *But you can put your SQLFORM in a module function and import it within any application.* 2013/6/5 Vinicius Assef > So, it doesn't make sense. > > But you can put your SQLFORM in a module function and import it within > any application. > > On Wed, Jun 5, 2013 at 2:06 P

Re: [web2py] Using Web2py in a multi app environment.

2013-06-05 Thread Vinicius Assef
So, it doesn't make sense. But you can put your SQLFORM in a module function and import it within any application. On Wed, Jun 5, 2013 at 2:06 PM, António Ramos wrote: > it was app, not database i wanted to write > > table = SQLFORM.grid(app, > > query, > link

Re: [web2py] Using Web2py in a multi app environment.

2013-06-05 Thread António Ramos
it was app, not database i wanted to write table = SQLFORM.grid(*app*, query, links=links, deletable=False, editable=False, create=False ) 2013/6/5 Vinicius Assef > The query parameter

Re: [web2py] Using Web2py in a multi app environment.

2013-06-05 Thread Vinicius Assef
The query parameter already has the database you wish. On Wed, Jun 5, 2013 at 1:41 PM, António Ramos wrote: > Hello, > One of the things i have to do daily using Lotus Notes in my company is to > have a form to show a grid with documents from another app/table. > > > Short story > First , years a

[web2py] Using Web2py in a multi app environment.

2013-06-05 Thread António Ramos
Hello, One of the things i have to do daily using Lotus Notes in my company is to have a form to show a grid with documents from another app/table. Short story First , years ago, i created an app to manage all quality certificates issued to the clients. About 5000 a year total. I have about 70.00