OR use an alternative dispatcher.


Robert






On Mon, Oct 18, 2010 at 14:02, Robert Kluin <[email protected]> wrote:
> I believe the groups are passed in as positional parameters.  That
> could easily be a gotcha if you are using multiple URL schemes.
>
> Personally, I would use what ever consistently works for your
> application and your url scheme.  If your urls are complex you'll
> probably want to parse it in handler.
>
>
>
> Robert
>
>
>
>
> On Mon, Oct 18, 2010 at 12:07, John McLaughlin
> <[email protected]> wrote:
>> I'm now wondering if I'm missing something.  I tried using the regex
>> groups in the webapp.WSGIApplication call, but after a couple of times
>> getting argument/parameter mismatches I gave up on that.  I decided
>> that it was much easier and cleaner to do the url path parsing using
>> python regex within the "get/post" functions, and just use the
>> WSGIApplication call for doing the handler selection.  Are there best
>> practice / rules for this?
>>
>> John
>>
>> On Oct 18, 3:54 am, Massimiliano <[email protected]>
>> wrote:
>>> Ok, just to understand everything.
>>>
>>> 2010/10/18 sodso <[email protected]>
>>>
>>> > yes exactly
>>>
>>> > '/(.*)/(.*)
>>>
>>> r'/(.*)/someaction', SomeActionHandler
>>> I need a "r" before the line?
>>>
>>>
>>>
>>> > the content between those two ( ) will be passed to ur RequestHandler as
>>> > second param(string), third param(string), and so on
>>>
>>> The param string as the var name I want, as the system will pass the value.
>>> So I can have
>>>
>>> get(self, var1, var2, var3,....)
>>>
>>> Right?
>>>
>>>
>>>
>>> > so u can do anything with those string params as u want
>>>
>>> >  --
>>> > You received this message because you are subscribed to the Google Groups
>>> > "Google App Engine" group.
>>> > To post to this group, send email to [email protected].
>>> > To unsubscribe from this group, send email to
>>> > [email protected]<google-appengine%2Bunsubscrib
>>> >  [email protected]>
>>> > .
>>> > For more options, visit this group at
>>> >http://groups.google.com/group/google-appengine?hl=en.
>>>
>>> --
>>>
>>> My email: [email protected]
>>> My Google Wave: [email protected]
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "Google App Engine" 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/google-appengine?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en.

Reply via email to