Getting started with a content filter
John Arbash Meinel
john at arbash-meinel.com
Tue Jul 26 09:15:37 UTC 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
...
> * The file contents are passed to the content filter as chunks, which
> are strings. That basically forces me to have the whole file in memory.
> Is there a way to obtain a stream-interface to the file instead of the
> file contents?
I think technically a "file" object implements the chunked interface.
However, we may be assuming you can do ''.join() on it.
>
> * What is the recommended way to get debug output out of my plugin?
> bzrlib.trace? Is there something else specific for debugging?
>
> Cheers,
> Anteru
>
>
trace.mutter is pretty good for debug information.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk4uhbkACgkQJdeBCYSNAAMhYACcCiFAejiYnN0T6769PtEB6hVb
IlgAoNbFd8wIhAY+dh8rsUdE7GUgEJSP
=M1Db
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list