Re: [web2py] Re: routers only exposing default controller

2011-12-11 Thread Jonathan Lundell
On Dec 11, 2011, at 9:39 AM, Anthony wrote: > It might be sufficient to just reload routes.py, which you can do via a > button in 'admin', or via a call to URL('admin', 'default', 'reload_routes'), > or via: > > import gluon.rewrite > gluon.rewrite.load() Yes, anything that reloads the routing

[web2py] Re: routers only exposing default controller

2011-12-11 Thread Anthony
It might be sufficient to just reload routes.py, which you can do via a button in 'admin', or via a call to URL('admin', 'default', 'reload_routes'), or via: import gluon.rewrite gluon.rewrite.load() Anthony On Sunday, December 11, 2011 12:04:41 PM UTC-5, Olympus Runner wrote: > > > I have the

Re: [web2py] Re: routers only exposing default controller

2011-12-11 Thread Jonathan Lundell
On Dec 11, 2011, at 9:04 AM, Olympus Runner wrote: > > I have the following setup > http://groups.google.com/group/web2py/browse_thread/thread/b4df60e75f0d64fb > This is my routes.py file: > # > routers = dict( BASE = dict( domains = { >

[web2py] Re: routers only exposing default controller

2011-12-11 Thread Olympus Runner
I have the following setup http://groups.google.com/group/web2py/browse_thread/thread/b4df60e75f0d64fb This is my routes.py file: # routers = dict(     BASE = dict(         domains = {             'mymanager.example.com': 'mymanager',             'test.example.c

Re: [web2py] Re: routers only exposing default controller

2011-11-16 Thread Bruno Rocha
On Wed, Nov 16, 2011 at 11:32 AM, Richard Baron Penman wrote: > I found listing the controllers explicitly as Bruno mentioned fixed the > problem. > Previously domain/non-default-controller returned: invalid function > (default/non-default-controller) > I would expect all controllers to work by de

Re: [web2py] Re: routers only exposing default controller

2011-11-16 Thread Richard Baron Penman
I found listing the controllers explicitly as Bruno mentioned fixed the problem. Previously domain/non-default-controller returned: invalid function (default/non-default-controller) I would expect all controllers to work by default. Richard On Wed, Nov 16, 2011 at 2:36 PM, Jonathan Lundell wrot

Re: [web2py] Re: routers only exposing default controller

2011-11-15 Thread Jonathan Lundell
On Nov 15, 2011, at 8:54 PM, Bruno Rocha wrote: > On Wed, Nov 16, 2011 at 2:34 AM, Massimo Di Pierro > wrote: > this should not be the case. if it is is a bug. > > > I found this some time ago and I tough it was the default behaviour. > > for the following worked > > routers = dict( > BASE

Re: [web2py] Re: routers only exposing default controller

2011-11-15 Thread Bruno Rocha
On Wed, Nov 16, 2011 at 2:34 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > this should not be the case. if it is is a bug. > > I found this some time ago and I tough it was the default behaviour. for the following worked routers = dict( BASE = dict( domains = {

Re: [web2py] Re: routers only exposing default controller

2011-11-15 Thread Richard Baron Penman
The URL's are mapped like this: http://domain.com/function/args?vars The controllers are not exposed. v1.99.2 Richard On Wed, Nov 16, 2011 at 1:34 PM, Massimo Di Pierro wrote: > this should not be the case. if it is is a bug. > > On Nov 15, 10:18 pm, Plumo wrote: >> I am mapping apps to diffe

[web2py] Re: routers only exposing default controller

2011-11-15 Thread Massimo Di Pierro
this should not be the case. if it is is a bug. On Nov 15, 10:18 pm, Plumo wrote: > I am mapping apps to different domains using this snippet from the book: > > routers = dict( >   BASE  = dict( >       domains = { >           'domain1.com' : 'app1', >           'domain2.com' : 'app2', >       }