| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
dict --+
|
ExtensionRegister
A data storage class for managing mappings of file types to file extentions. The register is created as a singleton.
Status: initial implimentation
| Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
new empty dictionary |
|
||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
| Static Methods | |||
| a new object with type S, a subtype of T |
|
||
| Class Variables | |
config =
|
|
first = True
|
|
instance = {u'LaTeX': ['aux', 'sty', 'tex'], u'Plain Text': ['
|
|
| Properties | |
|
Inherited from |
| Method Details |
Associate a given file type with the given file extension(s). The ext parameter can be a string of space separated extensions to allow for multiple associations at once.
|
Disassociate a file type with a given extension or space separated list of extensions.
|
Returns the file type that is associated with the extension. If no association is found Plain Text will be returned by default.
|
Returns a sorted list of all extensions registered
|
Loads the default settings Postcondition: sets dictionary back to default installation state |
Load the extention register with values from a config file
|
Like Associate but overrides any current settings instead of just adding to them.
|
Initializes the register
|
Return the default value if an item is not found
|
Maintain only a single instance of this object
|
Ensures that only one filetype is associated with an extension at one time. The behavior is that more recent settings override and remove associations from older settings.
|
Converts the Register to a string that is formatted for output to a config file.
|
| Class Variable Details |
instance
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Feb 21 14:51:15 2008 | http://epydoc.sourceforge.net |