CRC values with dots

10 views
Skip to first unread message

Craig Small

unread,
May 16, 2013, 8:56:43 AM5/16/13
to TurboGears
I've got the second project going on now, was surprisingly quick to get
most of it working.

One quirk urls like "/things/1" work, which show the "thing" with ID of
1. However, if the ID has dots the last one is "eaten", so something
like "/lookup/turbogears.org" the controller's first parameter will be
turbogears not turbogears.org I assume the org is being taken as
the controller is trying to find the content type of "org", similiar to
urls ending in .json give that type.

Is there a way of turning it off? I guess a decorator would be nice but
no idea how to make one.

- Craig

--
Craig Small VK2XLZ http://enc.com.au/ csmall at : enc.com.au
Debian GNU/Linux http://www.debian.org/ csmall at : debian.org
GPG fingerprint: 5D2F B320 B825 D939 04D2 0519 3938 F96B DF50 FEA5

Alessandro Molina

unread,
May 16, 2013, 9:14:39 AM5/16/13
to TurboGears .
add base_config.disable_request_extensions=True to your app_cfg.py
should solve your issue.


--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turbogears+...@googlegroups.com.
To post to this group, send email to turbo...@googlegroups.com.
Visit this group at http://groups.google.com/group/turbogears?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.



Reply all
Reply to author
Forward
0 new messages