Your message dated Tue, 18 Dec 2007 18:32:03 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#456944: fixed in python-mechanize 0.1.7b-2
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: python-mechanize
Version: 0.1.6b-1
Severity: normal
Tags: patch
Forwarded: [EMAIL PROTECTED]
Hello,
Luis Bruno reported a bug on Twill Debian package: ``showforms'' command
doesn't work in Twill Debian package ATM. This bug happens only in
Debian package because I (as the Twill Debian package maintainer) remove
the installation of customized version of mechanize and clientform from
Twill module in favor of depending on official mechanize and clientform
modules.
Titus patched ClientForm in Twill module:
--- ClientForm.py 2007-03-06 23:00:05.000000000 +0000
+++ python-clientform-0.2.6/ClientForm.py 2007-01-07 18:30:19.000000000 +0000
@@ -1085,9 +1085,6 @@
if backwards_compat:
deprecation("operating in backwards-compatibility mode")
fp = form_parser_class(entitydefs, encoding)
-
- file.seek(0)
-
while 1:
data = file.read(CHUNK)
try:
Actually, ``file.seek(0)'' has been added by Titus in ClientForm.py
because ``file'' position (parameter of ``_ParseFileEx'' class) may not
be at the beginning.
However, IMHO the ``seek'' shouldn't be performed in ClientForm because
the file position is only modified by ``RobustFactory.set_response''
(but not by DefaultFactory.set_response) when reading the response.
I have attached a patch that fixes this problem for me and forwarded it
to [EMAIL PROTECTED] and [EMAIL PROTECTED] but
I didn't get an answer yet.
Regards,
Arnaud Fontaine
--- mechanize-0.1.7b/mechanize/_html.py.old 2007-12-16 15:17:37.000000000 +0000
+++ mechanize-0.1.7b/mechanize/_html.py 2007-12-16 15:17:47.000000000 +0000
@@ -599,6 +599,7 @@
Factory.set_response(self, response)
if response is not None:
data = response.read()
+ response.seek(0)
soup = self._soup_class(self.encoding, data)
self._forms_factory.set_response(
copy.copy(response), self.encoding)
pgpaDuTt21ZD0.pgp
Description: PGP signature
--- End Message ---
--- Begin Message ---
Source: python-mechanize
Source-Version: 0.1.7b-2
We believe that the bug you reported is fixed in the latest version of
python-mechanize, which is due to be installed in the Debian FTP archive:
python-mechanize_0.1.7b-2.diff.gz
to pool/main/p/python-mechanize/python-mechanize_0.1.7b-2.diff.gz
python-mechanize_0.1.7b-2.dsc
to pool/main/p/python-mechanize/python-mechanize_0.1.7b-2.dsc
python-mechanize_0.1.7b-2_all.deb
to pool/main/p/python-mechanize/python-mechanize_0.1.7b-2_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Fabio Tranchitella <[EMAIL PROTECTED]> (supplier of updated python-mechanize
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Tue, 18 Dec 2007 19:15:17 +0100
Source: python-mechanize
Binary: python-mechanize
Architecture: source all
Version: 0.1.7b-2
Distribution: unstable
Urgency: low
Maintainer: Debian/Ubuntu Zope Team <[EMAIL PROTECTED]>
Changed-By: Fabio Tranchitella <[EMAIL PROTECTED]>
Description:
python-mechanize - stateful programmatic web browsing
Closes: 456944
Changes:
python-mechanize (0.1.7b-2) unstable; urgency=low
.
* debian/patches/mechanize_seek.dpatch: applied a patch from the twill
maintainer to add file.seek(0) because ``file'' position may not be at
the beginning; thanks Arnaud Fontaine. (Closes: #456944)
Files:
fd1982a6d9dff4a11fdbdfd1e5f996ca 952 python extra python-mechanize_0.1.7b-2.dsc
730d54e0f637ec431a071f80931298c4 4221 python extra
python-mechanize_0.1.7b-2.diff.gz
b7fa949b173360e95de6a3ed311b1305 133970 python extra
python-mechanize_0.1.7b-2_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFHaA97K/juK3+WFWQRAlW5AKCE+AbufO3KvjqUYsVma4Aqlx3BsQCgnlk9
nUbMPm0kjHngQxcdLV2345w=
=0QU+
-----END PGP SIGNATURE-----
--- End Message ---