[ Dennis Allison]
Tom, I don't think the backslashes need to be escaped here.
Really? I've never had occasion to try it ... so I just did. Here is the Python script - str = 'c:\this\is\a\test' return str When called via dtml-var, each character after a backslash was missing or otherwised changed. I had to double the backslashes to get the string returned correctly. Cheers, Tom P
Argh! Right you are -- the damn'd gratutious Microscoft change to the directory delimiter. I don't do Windows in general--and when I do I use r'c:\this\is\a\test' which does the right thing. On Fri, 17 Oct 2003, Passin, Tom wrote:
[ Dennis Allison]
Tom, I don't think the backslashes need to be escaped here.
Really? I've never had occasion to try it ... so I just did. Here is the Python script -
str = 'c:\this\is\a\test' return str
When called via dtml-var, each character after a backslash was missing or otherwised changed. I had to double the backslashes to get the string returned correctly.
Cheers,
Tom P
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Dennis Allison -
Passin, Tom