Re: [Zope] append() and spaces

2000-12-12 Thread Dieter Maurer

Sven Hohage writes:
 > 
 > ('car?bought=1&amount=%s')%(Amount)
 >  yields
 > spaces between the values ->[1, 3, 4]
You may use:
   ('car?bought=1&amount=%s')%(_.string.join(Amount,''))


Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] append() and spaces

2000-12-11 Thread Sven Hohage

Hallo,
I've got a strange problem.
I use RESPONSE.redirect and pass values the usual way -->
('car?bought=1&amount=%s')%(Amount)
where Amount is a list-variable.
I build Amount dynamically with the append-method, and 
strangely I can't pass this variable(Error: Bad Request) because Python
puts 
spaces between the values ->[1, 3, 4]
So, I have to extract the list and build a new string but this is very
uncomfortable!
Any hint?
Thanks!

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )