GoogleCodeArchives / editra

Automatically exported from code.google.com/p/editra
Other
0 stars 0 forks source link

Bug in ExtensionRegister.Associate #412

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. attempt to add a new extension type using Associate
2. view the list of extensions associated with the file type

What is the expected output? What do you see instead?

This simple program:

import synextreg
extreg = synextreg.ExtensionRegister()
print extreg["XML"]
extreg.Associate("XML", "abcxml")
print extreg["XML"]

should print a list that includes abcxml in the list of valid extensions. 
Instead returns a shortened list:

['axl', 'dtd', 'plist', 'rdf', 'svg', 'xml', 'xrc', 'xsd', 'xsl', 'xslt',
'xul']
['axl', 'plist', 'svg', 'xrc', 'xsl', 'xul']

IMPORTANT!!! Please answer these questions for any and ALL bug reports

What version of the product are you using? On what operating system?

svn, linux

What method of install was your version installed with (Binary/Source)?

svn

If from source: What version of python and wxPython are you using?

2.5.2, 2.8.9.2

Please provide any additional information below.

Attaching diff

Original issue reported on code.google.com by rob.mcmu...@gmail.com on 22 Sep 2009 at 2:59

Attachments:

GoogleCodeExporter commented 9 years ago
Must have wrote those functions thinking to use them at some point then moved on
without ever using them.

Modified patch applied, thanks.

Also fix Disassociate.

Leaving open to remember to add unittests.

Original comment by CodyPrec...@gmail.com on 22 Sep 2009 at 4:00

GoogleCodeExporter commented 9 years ago
unittest suite added, closing as fixed

Original comment by CodyPrec...@gmail.com on 22 Sep 2009 at 1:55