On Fri, Jul 25, 2008 at 6:48 PM, Dean Landolt <[EMAIL PROTECTED]> wrote:
>
>> I'm working in a intranet environment, and the '/' is a item code
>> naming convention in ERP and the field compose the key of database
>> table.
>>
>> For workaround I chosen to replace backslash with underscore when i
>> create the url, and replace the '_' where i use it in the sql
>> statement params.
>>
>> item_code.replace('/', '_')
>>
>> Thanks again
>
> For a potentially cleaner solution you could pass these values as
> querystring params. This way you won't run itno trouble down the road when
> unescaping and trying to differentiate between a real _ and an escaped /.
I also suggest (if possible) to not use underscore in URLs because
they are simply less readable than hyphens
--
Lawrence, stacktrace.it - oluyede.org - neropercaso.it
"It is difficult to get a man to understand
something when his salary depends on not
understanding it" - Upton Sinclair
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---