core Package¶
core Package¶
The core package includes the modules implementing the MVC system.
application Module¶
command Module¶
Command Pattern
-
class
vinstall.core.command.CommandExecutor(delegate=None)[source]¶ Bases:
threading.ThreadExecute commands in another thread. Call hooks before and after executing commands, and before and after processing the queue
-
class
vinstall.core.command.CommandExecutorTestCase(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
controller Module¶
Provides a base class for controllers.
core Module¶
Utilities for declaring classes as views of certain model.
-
exception
vinstall.core.core.RegistryError[source]¶ Bases:
exceptions.ExceptionException raised for registry errors.
log Module¶
A logging facility for Vinstall.
model Module¶
Classes representing option types.
-
class
vinstall.core.model.BoolOption(name, short_desc=None, help_text=None)[source]¶ Bases:
objectUser is expected to provide a boolean value.
-
class
vinstall.core.model.DropdownOptionList(label=None, *options)[source]¶ Bases:
objectUser is expected to select one option from a list.
-
class
vinstall.core.model.ExclusiveOptionList(*options)[source]¶ Bases:
objectUser is expected to select one option from a list.
-
class
vinstall.core.model.IPAddress(name, short_desc=None, help_text=None)[source]¶ Bases:
objectInternet Protocol model.
-
class
vinstall.core.model.NumericOption(name, minvalue=0, maxvalue=0, short_desc=None, help_text=None)[source]¶ Bases:
objectUser is expected to provide a numeric value.
-
class
vinstall.core.model.PasswordOption(name, maxlen=0, short_desc=None, help_text=None)[source]¶ Bases:
vinstall.core.model.TextOptionA TextOption for passwords
observer Module¶
render Module¶
The render module provides a Render class, which responsibility is to allow access to the view objects at runtime.
-
class
vinstall.core.render.Render(title, intro, *options)[source]¶ Bases:
objectGiven a set of model objects, find the proper view and setup window properties.
-
get_user_input()[source]¶ Get the widgets state. Used by controller instances for getting user input. The _process attribute in renderers are set by the core module, and they indicate if the widget provides a value entered by the user or not (for example, simple text labels do not provide any value, and they are not processed by the controller.process method)
-
main_window¶ Lazy initialization of the main window object.
-
main_window_instance= None¶
-