[Bug 256931] Re: z2.switch_on disturbes other parameter passing

0 views
Skip to first unread message

Simone Deponti

unread,
Oct 31, 2009, 7:46:48 AM10/31/09
to singing...@googlegroups.com
This is not a S&D bug. However, testing from trunk reveals that Five
seems to have fixed that, atleast in plone 3.3


** Changed in: singing-dancing
Status: New => Fix Committed

** Changed in: singing-dancing
Status: Fix Committed => Invalid

--
z2.switch_on disturbes other parameter passing
https://bugs.launchpad.net/bugs/256931
You received this bug notification because you are a member of Singing &
Dancing developers, which is the registrant for Singing & Dancing.

Status in Singing & Dancing: Invalid

Bug description:
In some cases, passing parameters to a url that invokes z2.switch_on, does not work because z2.switch_on changes the request. This is actually a very common occurrence, on sites using the channelsubscribe portlet.

As an example: changing workflow states from folder_contents does not work when the portlet is displayed because the 'paths' argument is turned into unicode and unrestrictedTraverse does not accept unicode.

We need some way to return the request to it's original state after we've done our form-business. I am told Fives formlib has this same issue, so maybe we can come up with a general fix?

morphex

unread,
Oct 11, 2011, 6:22:18 AM10/11/11
to singing...@googlegroups.com
I had a customer that needed a quick fix so I did a try: except: on it.
But it seems that make_query only wants strings, so a better quick fix
would then be to encode the unicode strings as utf-8? Instead of
upgrading Five that is..

--

You received this bug notification because you are a member of Singing &
Dancing developers, which is the registrant for Singing & Dancing.

https://bugs.launchpad.net/bugs/256931

Title:


z2.switch_on disturbes other parameter passing

Status in Singing & Dancing:
Invalid

Bug description:
In some cases, passing parameters to a url that invokes z2.switch_on, does not work because z2.switch_on changes the request. This is actually a very common occurrence, on sites using the channelsubscribe portlet.

As an example: changing workflow states from folder_contents does not work when the portlet is displayed because the 'paths' argument is turned into unicode and unrestrictedTraverse does not accept unicode.

We need some way to return the request to it's original state after
we've done our form-business. I am told Fives formlib has this same
issue, so maybe we can come up with a general fix?

To manage notifications about this bug go to:
https://bugs.launchpad.net/singing-dancing/+bug/256931/+subscriptions

Reply all
Reply to author
Forward
0 new messages