#2272: tg.url() is too laxist with argument types
------------------------+---------------------------------------------------
Reporter: pitrou | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 2.0rc1
Component: TurboGears | Version: 2.0b7
Severity: normal | Keywords:
------------------------+---------------------------------------------------
If you inadvertently pass `None` as a query parameter value to tg.url
(e.g. `tg.url('myaction', myparam=None)`), you will get a value of
`u"None"` in the parameter when the link is clicked, which can then break
stuff in your application.
This is PHP-like behaviour, TurboGears should instead enforce stricter
type checking to avoid annoying bugs. (there is a reason people hate PHP
:-))
--
Ticket URL: <http://trac.turbogears.org/ticket/2272>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---