def __init__(self, node_id): VNode.__init__(self, node_id) self.title = u'' # list of triplets ('{begin/end}-{at/before/after}-date', mxDate, priority) self.date_constraints = set() # list of triplets ('{begin/end}-after-{begin/end}', task_id, priority) self.task_constraints = set() self.description = u'' self.description_raw = u'' self.description_format = u'docbook' self._progress = None self._priority = None self.duration = None self.load_type = None self.resources_role = None self._resource_ids = None # will become a set self.can_interrupt = [ True, 1 ] # the integer represent the priority of the constraint self.link = None self.level = 1
def __init__(self, id, name=u''): VNode.__init__(self, id) self.name = name self.day_types = {} # example: # {'working': ['DefaultWorking', [(Time(8), Time(12)), # (Time(13), Time(17))] # ], # 'nonworking': ['DefaultNonworking', []], # } self.default_day_type = None # day type in a usual week # ex : {day_of_week:type, ...} and day_of_week # in {mon, tue, wed, thu, fri, sat, sun} self.weekday = {} # list of periods associated to its type #ex: [(from_date, to_date, type), ...] # with from_date and to_date as DateTime object self.timeperiods = [] # register the national day, so a relative date # available each year (mm/dd) self.national_days = [] self.start_on = None self.stop_on = None
def __init__(self, id=None, klass=None): VNode.__init__(self, id) self.klass = klass
def __init__(self, id: Optional[str] = None, klass: Optional[str] = None) -> None: VNode.__init__(self, id) self.klass = klass