Package mathbench :: Package basement :: Module librarian :: Class LibrarianSingleton
[hide private]

Class LibrarianSingleton

source code

object --+
         |
        LibrarianSingleton

A singleton class in charge of building, updating the library and also performing the searches.

The librarian is in charge of creating the library desk display and then must be informed of which DeskFacory to use to create this desk.

The display widget created must also send a 'LibraryDeskClosed' signal when it is closed.



Instance Methods [hide private]
 
__init__(self)
Initialisation: this class should not be initialised explicitly and the get classmethod must be called instead.
source code
 
show(self, txt)
Show the results in a frame.
source code
 
_desk_closed(self)
When the desk is closed
source code
 
compile_results(self, search_query)
Compile the search results in a unique html page.
source code
 
show_welcome(self)
Display the welcome text in a widget
source code
 
setSearchMethod(self, search_method, context_name)
Set the search method
source code
 
record_search(self, txt)
Record the previous search items
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Methods [hide private]
 
get(self)
Actually create an instance
source code
 
register(self, search_method, context_name)
Register a search method for a specific context (usually the library imported by a precise plugin.)
source code
 
setDeskFactory(self, desk_factory)
Set the factory that will be in charge of creating the desk (ie the widget displaying the search results)
source code
 
search(self, search_query)
Return a HTML formated text providing links to all the search results.
source code
 
welcome(self)
Display a welome page
source code
 
popup(self)
Put the desk on top of the other frames
source code
Class Variables [hide private]
  __instance = None
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Initialisation: this class should not be initialised explicitly and the get classmethod must be called instead.
Overrides: object.__init__