[Zope-DB] passing multiple variables via the url string
Maciej Wisniowski
maciej.wisniowski at coig.katowice.pl
Sat Sep 1 18:40:32 EDT 2007
> container.absolute_url()+'/my-documents/?field1='+field1&'field2='+field2
>
> Executing the command returns the following error:
>
> "unsupported operand type(s) for &: 'str' and 'str'"
>
>
> The "&"symbol from all my research should separate the variables. Does Zope
> use some other symbol?
No. Your code is wrong because you have '&' outside string:
container.absolute_url()+'/my-documents/?field1='+field1&'field2='+field2
^^^^^
This should be:
container.absolute_url()+'/my-documents/?field1='+field1+'&field2='+field2
BTW. This list is for Zope and database issues.
--
Maciej Wisniowski
More information about the Zope-DB
mailing list