There is a workflow issue. If routes fail to reload and routes is important to access admin, user is locked out.
Massimo On Nov 22, 1:06 pm, Jonathan Lundell <[email protected]> wrote: > On Nov 22, 2010, at 10:46 AM, Bruno Rocha wrote: > > > OK, now it works! thanks > > Might be nice to have a "reload routes" button in the admin app. If someone > is feeling ambitious to do it, it should just do: gluon.rewrite.load(), > except that load can raise a syntax error, so you want something like: > > try: > gluon.rewrite.load() > except SyntaxError: > <report a routes.py syntax error via flash or something> > > > > > 2010/11/22 Jonathan Lundell <[email protected]> > > On Nov 22, 2010, at 10:38 AM, Bruno Rocha wrote: > >> I already tried with > > >> routes_in = ((r'.*:/crossdomain.xml',r'/init/static/crossdomain.xml')) > > >> restarted apache and not works > > > Restart web2py, not Apache, for changes to routes.py. > > >> 2010/11/22 mdipierro <[email protected]> > >> you put it in /init/static/ and have in route.py > > >> routes_in=[('/crossdomain.xml','/init/static/crossdomain.xml')] > > >> On Nov 22, 12:28 pm, Bruno Rocha <[email protected]> wrote: > >> > HI, > > >> > I am in need to create an Cooliris web gallery from a RSS feed from the > >> > web2py app, > >> > My RSS feed is working well > >> > here:http://natalanimal.com.br/init/default/canil.rss > > >> > But Coolirishttp://www.cooliris.com/yoursite/express/builder/ , is asking > >> > me to create a crossdomain.xml file as: > > >> > <?xml version="1.0"?> > >> > <!DOCTYPE cross-domain-policy SYSTEM > >> > "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd"> > >> > <cross-domain-policy> > >> > <allow-access-from domain="*.cooliris.com" /> > >> > </cross-domain-policy> > > >> > How can I create this at my webapp root in web2py? > > >> > Guess cooliris will try to fetch this > >> > inhttp://mydomain.com.br/crossdomain.xml( I cant have any > >> > /init/default/function ) > > >> > -- > > >> > Bruno Rochahttp://about.me/rochacbruno/bio > > >> -- > > >> Bruno Rocha > >>http://about.me/rochacbruno/bio > >

