faqts : Computers : Internet : Web Servers : Zope : Databases : PostgreSQL

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 6 people (33%) answered Yes
Recently 1 of 5 people (20%) answered Yes

Entry

Using Zope and PostgreSQL, Zope returns a variable with a space at the end. How can I prevent this space being returned?

Jul 16th, 2000 23:32
unknown unknown, Tino Wildenhain


<dtml-var "_.strip(var_with_space_at_the_end)"> should do.
Or
<dtml-call 
"REQUEST.set('var_without_space_at_the_end',_.strip(var_with_space))">