+1 for Graham.

Backward compatibility is not broken because relocating the web2py site in
the directory structure is a new feature.  If you want to take advantage of
the new feature, you just re-code your URL functions.  Old installations
work as they always did.  (Also - can we call w2p "enterprise" if it doesn't
play nice with other WSGI apps?)

-- Joe B.


On Fri, Sep 4, 2009 at 2:59 AM, Graham Dumpleton <[email protected]
> wrote:

>
> On Sep 4, 4:26 pm, mdipierro <[email protected]> wrote:
> > I think we can modify your patch so that it does not require r=request
> > (which would break some apps)
>
> Why would requiting r=request for URL calls break some applications?
>
> The code for URL is:
>
>    application = controller = function = None
>    if r:
>        application = r.application
>        controller = r.controller
>        function = r.function
>    if a:
>        application = a
>    if c:
>        controller = c
>    if f:
>        if isinstance(f, str):
>            function = f
>        else:
>            function = f.__name__
>
>    if not (application and controller and function):
>        raise SyntaxError, 'not enough information to build the url'
>
> So supplying it where it wasn't previously shouldn't matter that I can
> see as previously for it to work the called would have had to provide
> a, c and f. If they are doing that they would still override what is
> specified by the request object.
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to