[ANN] Zip exporter plugin and merge candidat

John A Meinel john at arbash-meinel.com
Wed Nov 16 01:39:54 GMT 2005


Alexander Belchenko wrote:
> Aaron Bentley пишет:
>> Alexander Belchenko wrote:
>>> This is should be easy, but need to be implemented way for autodetect
>>> appropriate format by filename extension. Per example, by adding map
>>> with known file extensions as keys, and known exporters as values.
>>
>> Isn't tree.exporters already such a map?  It's certainly how I intended
>> it to be used.
> 
> It is not the same map. tree.exporters is map between format names and
> exporter functions. But there is no relations between destination
> filename extensions and export formats for autodetect feature. In
> current bzr.dev autodetect hardcoded as sequence of if-elif-else
> statements.
> 
> Alexander
> 
> 

Right, which is why I extended it into 2 maps. One which maps extension
=> format, and one which maps format => function.

I went ahead and created a register_exporter, and register_lazy_exporter
functions, and split everything out into separate files.

John
=:->

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051115/fbf8ee60/attachment.pgp 


More information about the bazaar mailing list