Пример #1
0
 def __init__(self, session=None, target=None):
     ScoreManagerObject.__init__(self, session=session)
     if target is not None:
         assert isinstance(target, self.target_class)
     self.target = target
     self.initialize_attributes_in_memory()
     if not hasattr(self, 'target_manifest'):
         raise Exception(self)
     self.explicit_breadcrumb = None
Пример #2
0
 def __init__(self, session=None, where=None):
     ScoreManagerObject.__init__(self, session=session)
     PromptMakerMixin.__init__(self)
     self._prompts = []
     self.allow_none = False
     self.capitalize_prompts = True
     self.include_newlines = False
     self.number_prompts = False
     self.prompt_character = '>'
     self.where = where
Пример #3
0
 def __init__(self, session=None):
     from scoremanager import wranglers
     ScoreManagerObject.__init__(self, session=session)
     self._segment_package_wrangler = \
         wranglers.SegmentPackageWrangler(session=self.session)
     self._material_package_manager_wrangler = \
         wranglers.MaterialPackageManagerWrangler(session=self.session)
     self._material_package_wrangler = \
         wranglers.MaterialPackageWrangler(session=self.session)
     self._score_package_wrangler = \
         wranglers.ScorePackageWrangler(session=self.session)
     self._stylesheet_file_wrangler = \
         wranglers.StylesheetFileWrangler(session=self.session)
Пример #4
0
 def __init__(
     self, 
     session=None, 
     where=None,
     should_clear_terminal=False,
     title=None,
     ):
     ScoreManagerObject.__init__(self, session=session)
     self._menu_sections = []
     self._make_default_hidden_section()
     self.should_clear_terminal = should_clear_terminal
     self.title = title
     self.where = where
Пример #5
0
 def __init__(
     self, 
     is_numbered=True,
     is_ranged=False, 
     items=None, 
     return_value_attribute='explicit',
     session=None,
     where=None,
     ):
     ScoreManagerObject.__init__(self, session=session)
     self.is_numbered = is_numbered
     self.is_ranged = is_ranged
     self.items = items or []
     self.return_value_attribute = return_value_attribute
     self.where = where
Пример #6
0
 def __init__(
     self, 
     explicit_breadcrumb=None,
     is_numbered=True,
     is_ranged=False, 
     items=None, 
     return_value_attribute='explicit',
     session=None,
     where=None,
     ):
     ScoreManagerObject.__init__(self, session=session)
     self._explicit_breadcrumb = explicit_breadcrumb
     self._is_numbered = is_numbered
     self._is_ranged = is_ranged
     self._items = items or []
     self._return_value_attribute = return_value_attribute
     self._my_where = where
Пример #7
0
 def __init__(
     self, 
     session=None, 
     where=None,
     breadcrumb_callback=None,
     # TODO: maybe remove include_default_hidden_sections?
     include_default_hidden_sections=False,
     name=None,
     title=None,
     ):
     ScoreManagerObject.__init__(self, session=session)
     self._breadcrumb_callback = breadcrumb_callback
     self._client_source_code_location = where
     self._menu_sections = []
     if include_default_hidden_sections:
         self._make_default_hidden_sections()
     self._name = name
     self._predetermined_user_input = None
     self._should_clear_terminal = False
     self._title = title
Пример #8
0
 def __init__(
     self, 
     session=None, 
     where=None,
     allow_none=False,
     capitalize_prompts=True,
     include_chevron=True,
     include_newlines=False,
     number_prompts=False,
     prompt_character='>',
     ):
     ScoreManagerObject.__init__(self, session=session)
     PromptMakerMixin.__init__(self)
     self._prompts = []
     self._allow_none = allow_none
     self._capitalize_prompts = capitalize_prompts
     self._include_chevron = include_chevron
     self._include_newlines = include_newlines
     self._number_prompts = number_prompts
     self._prompt_character = prompt_character
     self._my_where = where
Пример #9
0
 def __init__(self, session=None):
     ScoreManagerObject.__init__(self, session=session)
Пример #10
0
 def __init__(self, session=None, target=None):
     ScoreManagerObject.__init__(self, session=session)
     self.target = target
Пример #11
0
 def __init__(self, filesystem_path=None, session=None):
     assert filesystem_path is None or os.path.sep in filesystem_path
     self._filesystem_path = filesystem_path
     ScoreManagerObject.__init__(self, session=session)
Пример #12
0
 def __init__(self, session=None, target=None):
     ScoreManagerObject.__init__(self, session=session)
     self._target = target
     self._target_editor_class_name_suffix = 'Editor'