MCPcopy Create free account
hub / github.com/apache/solr / __init__

Method __init__

dev-tools/scripts/releaseWizard.py:794–821  ·  view source on GitHub ↗
(self, id, title, description=None, post_description=None, done=None, types=None, links=None,
                 commands=None, user_input=None, depends=None, vars=None, asciidoc=None, persist_vars=None,
                 function=None)

Source from the content-addressed store, hash-verified

792 yaml_tag = u'!Todo'
793 hidden_fields = ['state']
794 def __init__(self, id, title, description=None, post_description=None, done=None, types=None, links=None,
795 commands=None, user_input=None, depends=None, vars=None, asciidoc=None, persist_vars=None,
796 function=None):
797 self.id = id
798 self.title = title
799 self.description = description
800 self.asciidoc = asciidoc
801 self.types = types
802 self.depends = depends
803 self.vars = vars
804 self.persist_vars = persist_vars
805 self.function = function
806 self.user_input = user_input
807 self.commands = commands
808 self.post_description = post_description
809 self.links = links
810 self.state = {}
811
812 self.set_done(done)
813 if self.types:
814 self.types = ensure_list(self.types)
815 for t in self.types:
816 if not t in ['minor', 'major', 'bugfix']:
817 sys.exit("Wrong Todo config for '%s'. Type needs to be either 'minor', 'major' or 'bugfix'" % self.id)
818 if commands:
819 self.commands.todo_id = self.id
820 for c in commands.commands:
821 c.todo_id = self.id
822
823 @classmethod
824 def from_yaml(cls, loader, node):

Callers

nothing calls this directly

Calls 3

set_doneMethod · 0.95
ensure_listFunction · 0.85
exitMethod · 0.45

Tested by

no test coverage detected