def __init__(self, level=1, type=u'-', title=u'', status=u'[ ]', body=None): u""" :level: Indent level of the checkbox :type: Type of the checkbox list (-, +, *) :title: Title of the checkbox :status: Status of the checkbox ([ ], [X], [-]) :body: Body of the checkbox """ DomObj.__init__(self, level=level, title=title, body=body) # heading self._heading = None self._children = CheckboxList(obj=self) self._dirty_checkbox = False # list type self._type = u'-' if type: self.type = type # status self._status = Checkbox.STATUS_OFF if status: self.status = status
def __init__(self, level=1, title=u'', tags=None, todo=None, body=None, active_date=None): u""" :level: Level of the heading :title: Title of the heading :tags: Tags of the heading :todo: Todo state of the heading :body: Body of the heading :active_date: active date that is used in the agenda """ DomObj.__init__(self, level=level, title=title, body=body) self._children = HeadingList(obj=self) self._dirty_heading = False # todo self._todo = None if todo: self.todo = todo # tags self._tags = MultiPurposeList(on_change=self.set_dirty_heading) if tags: self.tags = tags # active date self._active_date = active_date if active_date: self.active_date = active_date # checkboxes self._checkboxes = CheckboxList(obj=self) self._cached_checkbox = None
def __init__(self, level=1, title=u'', tags=None, todo=None, body=None, active_date=None): u""" :level: Level of the heading :title: Title of the heading :tags: Tags of the heading :todo: Todo state of the heading :body: Body of the heading :active_date: active date that is used in the agenda """ DomObj.__init__(self, level=level, title=title, body=body) self._children = HeadingList(obj=self) self._dirty_heading = False # todo self._todo = None if todo: self.todo = todo # tags self._tags = MultiPurposeList(on_change=self.set_dirty_heading) if tags: self.tags = tags # active date self._active_date = active_date if active_date: self.active_date = active_date # checkboxes self._checkboxes = CheckboxList(obj=self) self._cached_checkbox = None self._logbook = Logbook(obj=self)