Changeset View
Changeset View
Standalone View
Standalone View
pykolab/xml/attendee.py
import kolabformat | import kolabformat | ||||
from pykolab.translate import _ | from pykolab.translate import _ | ||||
from pykolab.translate import N_ | from pykolab.translate import N_ | ||||
from contact_reference import ContactReference | from contact_reference import ContactReference | ||||
participant_status_labels = { | participant_status_labels = { | ||||
"NEEDS-ACTION": N_("Needs Action"), | "NEEDS-ACTION": N_("Needs Action"), | ||||
"ACCEPTED": N_("Accepted"), | "ACCEPTED": N_("Accepted"), | ||||
"DECLINED": N_("Declined"), | "DECLINED": N_("Declined"), | ||||
"TENTATIVE": N_("Tentatively Accepted"), | "TENTATIVE": N_("Tentatively Accepted"), | ||||
"DELEGATED": N_("Delegated"), | "DELEGATED": N_("Delegated"), | ||||
"IN-PROCESS": N_("Started"), | "IN-PROCESS": N_("Started"), | ||||
"COMPLETED": N_("Completed"), | "COMPLETED": N_("Completed"), | ||||
"PENDING": N_("Pending"), | |||||
# support integer values, too | # support integer values, too | ||||
kolabformat.PartNeedsAction: N_("Needs Action"), | kolabformat.PartNeedsAction: N_("Needs Action"), | ||||
kolabformat.PartAccepted: N_("Accepted"), | kolabformat.PartAccepted: N_("Accepted"), | ||||
kolabformat.PartDeclined: N_("Declined"), | kolabformat.PartDeclined: N_("Declined"), | ||||
kolabformat.PartTentative: N_("Tentatively Accepted"), | kolabformat.PartTentative: N_("Tentatively Accepted"), | ||||
kolabformat.PartDelegated: N_("Delegated"), | kolabformat.PartDelegated: N_("Delegated"), | ||||
kolabformat.PartInProcess: N_("Started"), | kolabformat.PartInProcess: N_("Started"), | ||||
kolabformat.PartCompleted: N_("Completed"), | kolabformat.PartCompleted: N_("Completed"), | ||||
▲ Show 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | def __init__( | ||||
self, | self, | ||||
email, | email, | ||||
name=None, | name=None, | ||||
rsvp=False, | rsvp=False, | ||||
role=None, | role=None, | ||||
participant_status=None, | participant_status=None, | ||||
cutype=None, | cutype=None, | ||||
ical_params=None | ical_params=None | ||||
): | ): | ||||
Lint: PEP8 E125: continuation line with same indent as next logical line | |||||
self.email = email | self.email = email | ||||
self.contactreference = ContactReference(email) | self.contactreference = ContactReference(email) | ||||
if not name == None: | if not name == None: | ||||
self.contactreference.set_name(name) | self.contactreference.set_name(name) | ||||
▲ Show 20 Lines • Show All 191 Lines • Show Last 20 Lines |
continuation line with same indent as next logical line