I've noticed in Routes 1.10.3 that when url_for is called with  
arguments which are None, it goes ahead and puts the string 'None' in  
the generated URL.

I needed this to change to avoid urls like:

/shop/?source=34465&filters=&product=77987245

or

/shop/?source=34465&filters=None&product=77987245

I went ahead and created a small patch file which checks if the var is  
None and if so, doesn't include it in the resultant URL.  Hope it  
helps if anybody needs it.

http://www.pylonshq.com/pasties/9f17ba4998e211114343428f189286bc

TJ


  

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to