[Zope] Copy/Paste problem

Oleg Broytmann phd@phd.russ.ru
Sat, 1 Jul 2000 09:34:48 +0000 (GMT)


Hi!

   (Nobody dared to answer, trying to do some research...)

   I (and some my friends) have problem with Copy/Paste. Sometimes it's
wotking, but often Paste button does not appeared after Copy/Cut.

   I put debug DTML method on a site - just <dtml-var REQUEST> and found
browse always pass __cp cookie, so it is not a cookie problem.

   I copied the cookie value and tried to _cb_decode it myself:

from marshal import loads, dumps
from urllib import quote, unquote
from zlib import compress, decompress

def _cb_decode(s):
    print unquote(s)
    return loads(decompress(unquote(s)))

print _cb_decode('x%DA%D3%60b%60%60%C8%04b%86hF%20%A1%01%E2%16%83%B9%CC%20%16%07%03%1C0%21q%D8%95%919%B3%20%92%9D%04%29')

error: MemoryError: Out of memory while decompressing data.

   I did experimets with by copying just one DTML document in a folder 1
level below the root, so this is not a problem with too many object or too
long path. What is it?

   Sun Sparc, Solaris 2.5.1, python 1.5.2 compiled by me from sources, Zope
(both 2.1.4 and 2.2.0b3) compiled from sources; gcc 2.7.2.3.

   I did some experiments on Linux. Paste works a little better there, but
not much - often Paste button does not appeare.

Oleg.            (All opinions are mine and not of my employer)
---- 
    Oleg Broytmann      Foundation for Effective Policies      phd@phd.russ.ru
           Programmers don't die, they just GOSUB without RETURN.