Hi Alex,

You can safely remove those.  You're right, formatted routes are for
routes like /foo/bar/baz.xml, where "xml" is the format extension part
of the url.  For future reference there are ways to do this in the
latest Routes (the version going into Pylons 1.0) that don't involve
the clutter of these extra routes though.

Regards,
Mike


On May 8, 12:17 am, Alexandre Conrad <[email protected]>
wrote:
> Hi list,
>
> Every time I create a controller, the generated test contains multiple
> url(formatted_*, ...), e.g.:
>
> def test_edit_as_xml(self):
>     response = self.app.get(url('formatted_edit_article', id=1,
> format='xml'), headers=self.headers)
>
> I was wondering what this was supposed to be used for. Request article
> edition from an XML document? I don't have to implement this, but I
> was just curious of the purpose of such test and how I should
> interpret it.
>
> --
> Alex
> twitter.com/alexconrad
>
> --
> You received this message because you are subscribed to the Google Groups 
> "pylons-discuss" 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 
> athttp://groups.google.com/group/pylons-discuss?hl=en.

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

Reply via email to