Changeset View
Changeset View
Standalone View
Standalone View
pykolab/xml/todo.py
Show All 32 Lines | if message.is_multipart(): | ||||
todo._attachment_parts.append(part) | todo._attachment_parts.append(part) | ||||
return todo | return todo | ||||
# FIXME: extend a generic pykolab.xml.Xcal class instead of Event | # FIXME: extend a generic pykolab.xml.Xcal class instead of Event | ||||
class Todo(Event): | class Todo(Event): | ||||
type = 'task' | type = 'task' | ||||
# This have to be a copy (see T1221) | |||||
properties_map = Event.properties_map.copy() | |||||
def __init__(self, from_ical="", from_string=""): | def __init__(self, from_ical="", from_string=""): | ||||
self._attendees = [] | self._attendees = [] | ||||
self._categories = [] | self._categories = [] | ||||
self._exceptions = [] | self._exceptions = [] | ||||
self._attachment_parts = [] | self._attachment_parts = [] | ||||
self.properties_map.update({ | self.properties_map.update({ | ||||
"due": "get_due", | "due": "get_due", | ||||
▲ Show 20 Lines • Show All 216 Lines • Show Last 20 Lines |