unquote_plus NOT working in an EM ?
Hello, Anybody know why if I have: from urllib import urlopen, urlencode, unquote_plus and then something like: print unquote_plus(innerlist[1]) the string WILL NOT come out unquoted for some reason? When I run a test from the CLI, no problem, but when inside an External Method, nothing happens! Help! :) Thanks a bunch, Jean-François Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410
In an external method, do not use "print" but "return". Florent Doyon, Jean-Francois <Jean-Francois.Doyon@CCRS.NRCan.gc.ca> wrote:
Hello,
Anybody know why if I have:
from urllib import urlopen, urlencode, unquote_plus
and then something like:
print unquote_plus(innerlist[1])
the string WILL NOT come out unquoted for some reason? When I run a test from the CLI, no problem, but when inside an External Method, nothing happens!
Help! :)
Thanks a bunch,
Jean-François Doyon Internet Service Development and Systems Support GeoAccess Division Canadian Center for Remote Sensing Natural Resources Canada http://atlas.gc.ca Phone: (613) 992-4902 Fax: (613) 947-2410
_______________________________________________ Zope maillist - Zope@zope.org 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 )
-- Florent Guillaume, Nuxeo (Paris, France) +33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com
Doyon, Jean-Francois writes:
Anybody know why if I have:
from urllib import urlopen, urlencode, unquote_plus
and then something like:
print unquote_plus(innerlist[1])
the string WILL NOT come out unquoted for some reason? When I run a test from the CLI, no problem, but when inside an External Method, nothing happens! "print" will print to "sys.stdout". Where goes this content to?
The output may be buffered. Use "import sys; sys.stdout.flush()" to flush the buffer. Dieter
participants (3)
-
Dieter Maurer -
Doyon, Jean-Francois -
Florent Guillaume