Re: [Zope] Stripping Quotes

2007-09-05 Thread Jaroslav Lukesh
Sorry, it was my fault, here are better version:



  - Original Message - 
  From: Tom Von Lahndorff
  To: Zope user list
  Sent: Tuesday, September 04, 2007 5:28 PM
  Subject: Re: [Zope] Stripping Quotes




  doesn't work. the double quotes are not escaped and zope sees them as the 
end of the expression.


  > From: "Jaroslav Lukesh" <[EMAIL PROTECTED]>
  > Date: August 29, 2007 6:16:12 PM EDT
  > To: "Zope user list" , "Tom Von Lahndorff"
  > <[EMAIL PROTECTED]>
  > Subject: Re: [Zope] Stripping Quotes
  >
  >  ('\'','')">
  >
  >
  > - Original Message - From: "Tom Von Lahndorff"
  > <[EMAIL PROTECTED]>
  >
  >
  >> Whats the best way to strip (double and/or single) quotes from a
  >> string in python and/or dtml? Thanks.
___
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 )


Re: [Zope] Stripping Quotes

2007-09-04 Thread Dieter Maurer
Tom Von Lahndorff wrote at 2007-9-4 11:28 -0400:
>
>doesn't work. the double quotes are not escaped and zope sees them as  
>the end of the expression.
>
> > From: "Jaroslav Lukesh" <[EMAIL PROTECTED]>
> > Date: August 29, 2007 6:16:12 PM EDT
> > To: "Zope user list" , "Tom Von Lahndorff"
> > <[EMAIL PROTECTED]>
> > Subject: Re: [Zope] Stripping Quotes
> >
> >  > ('\'','')">

It is extremely long ago that I used DMTL intensively.
Therefore, I may have forgotten a lot...

But, when I remember right, then '"' had to be escaped by
'\x22'.

I.e. try:



Or, to get it a bit more readable:

   
 
   


Even better: use a Python Script (to work around DTML's syntactic pitfalls).



-- 
Dieter
___
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 )


Re: [Zope] Stripping Quotes

2007-09-04 Thread Tom Von Lahndorff


doesn't work. the double quotes are not escaped and zope sees them as  
the end of the expression.


> From: "Jaroslav Lukesh" <[EMAIL PROTECTED]>
> Date: August 29, 2007 6:16:12 PM EDT
> To: "Zope user list" , "Tom Von Lahndorff"
> <[EMAIL PROTECTED]>
> Subject: Re: [Zope] Stripping Quotes
>
>  ('\'','')">
>
>
> - Original Message - From: "Tom Von Lahndorff"
> <[EMAIL PROTECTED]>
>
>
>> Whats the best way to strip (double and/or single) quotes from a
>> string in python and/or dtml? Thanks.___
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 )


Re: [Zope] Stripping Quotes

2007-08-29 Thread Jaroslav Lukesh




- Original Message - 
From: "Tom Von Lahndorff" <[EMAIL PROTECTED]>





Whats the best way to strip (double and/or single) quotes from a  
string in python and/or dtml? Thanks.


___
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 )


[Zope] Stripping Quotes

2007-08-29 Thread Tom Von Lahndorff


Whats the best way to strip (double and/or single) quotes from a  
string in python and/or dtml? Thanks.

___
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 )