On Thu, Jan 20, 2011 at 6:20 AM, pdknsk <[email protected]> wrote:

> > static_files can contain substitution parameters from the regular
> expression
> > in 'url', and there's no way to tell which strings could be inserted with
> > those substitution parameters.
>
> Can you post an example?
>

 - url: /([a-f0-9]+)/(.*)
   static_files: static/\1/\2/\1

It's not possible to generate a single regular expression that matches
exactly the set of files that can be requested via the above handler without
backreferences, and in any case attempting to write something that parses
and assembles arbitrary regular expressions is disproportionately complex
for what's trying to be achieved.

Additionally, specifying an upload_url provides additional flexibility: You
can specify a broad rewrite rule, but only upload and serve a subset of the
files that might match.

-Nick Johnson


> --
> 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%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

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