> At 11:44 AM 10/1/2001 -0400, Geoff Talvola wrote: > >So, I'm thinking we should put this fixed version of > Cookie.py directly > >into Webware and force it to use its own fixed private copy > for any Python > >version prior to 2.2. Does anyone disagree? > > > >I suppose before we do that, we should make sure that the > fixed version is > >still compatible with Python 1.5.2, 2.0, and 2.1.
I had yet another cookie that raised an exception in WebUtils.Cookie and I didn't have time to figure out the problem so I just copied Cookie.py from Python 2.2a4 into WebUtils. My FreeBSD box is running Python 2.1 and they were not fully compatible. It could not find string.ascii_letters so I copied them out of string.py in Python 2.2 into Cookie.py. Then it worked and was able to parse the cookie. Can someone test this against 1.5.2? A simple 4 line test script follows. Thanks, Jeff Here's the change to Cookie.py from Python 2.2a4: # @@ JCJ copied this from string.py in Python 2.2a4 lowercase = 'abcdefghijklmnopqrstuvwxyz' uppercase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' letters = lowercase + uppercase ascii_lowercase = lowercase ascii_uppercase = uppercase ascii_letters = ascii_lowercase + ascii_uppercase _LegalChars = ascii_letters + string.digits + "!#$%&'*+-.^_`|~" # @@ JCJ #_LegalChars = string.ascii_letters + string.digits + "!#$%&'*+-.^_`|~" Here's a four line test script: cs = """lubid=01000000404449A804983BB89E9F00020B7B00000000; m_DDT=ABIJMQAACvU5blYY70py6Bs1B07Ji7QTKNSlj6hCoC_a3rldApOecSFTXaZk9_sA; GUID=2001100108423920920281609365; NV=2; lycos_sso=xyxyx; epimid=2096104800000010020351051031113; Epinions_2_Cookie[0]=kbKoTs6dB3zrnfw%2FqH86hmoQlGB9ADk0xHhRHBpuaC3vlcdlO ue7EQ%3D%3D; p_uniqid=hQ3XYr9TLERy; QCTVPOPUP=FLAG=1; SITESERVER=ID=54eef4f28db29670ef2ecad5eea95b18; MAYA_SSO_19=ATExtdp16QiIO_y7xRZBG1ZqS-wMMRyhz8-bh_vad0huyS6369p3SG7JLrdA rGRG8GgT5Z5kMdf9W8g77s5wc-frADZrAdBvIGUzmV8b54M6TVQz69p3SG7JLrfr2ndIbsku t_vad0huyS63jurqAVojKwks8gSUOYG0TD-gEA1LXLxnZjJiNUEfRHeDzQ9CTJupvdcLutD3 3h_d; MAYA_SSO=ATFWC9yCX20Qi5-EM_fm054BDtGpE3TKwzcdR5rCI37QYTicmsIjftBhOJw8Gem Tj8aFWb0AqdeG_dyigZua6TeCqLGBfTF5yXilVthbF8ff31MOmsIjftBhOJyawiN_0GE4nJr CI37QYTico7H1VP1seu6FHxrBdFTIIj0mlS2LC8CNQz-pWBq7FqmEWrfbjmDDaSHSzkpCYn6 E; MAYA_SSO_4=ATExtZWs1SPd2g4rxRZBG1ZqS-wMMRyhz8-bh_vad0huyS6369p3SG7JLrdAr GRG8GgT5Z5kMdf9W8g77s5wc-frADZrAdBvIGUzmV8b54M6TVQz69p3SG7JLrfr2ndIbskut _vad0huyS63jurqAVojKwks8gSUOYG0TD-gEA1LXLxnZjJiNUEfRHeDzQ9CTJupvdcLutD33 h_d; QUOTE=QID=%7BE0370FEA%2D0836%2D4862%2DA2DD%2DBE3C8EB32AAF%7D%2FQXZI3; countyno=017; state=MA; city=Acton; _SID_=2001100417304946429; CookiesEnabled=1; MLSURV=35""" from Cookie import Cookie c = Cookie() c.load(cs) _______________________________________________ Webware-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-devel
