On Nov 22, 2010, at 11:22 AM, mdipierro wrote:
> 
> There is a workflow issue. If routes fail to reload and routes is
> important to access admin, user is locked out.

I was looking at that. The current logic could use a little work, but basically 
it doesn't have that problem, because the routing structures don't get updated 
directly by the exec. They only get changed if the exec succeeds. 

Of course, the new routes.py could be syntactically correct but logically 
wrong, in which case fixing it would require a restart, but that's no worse 
than it is now.

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


Reply via email to