Skip to content

Create Todo.COMPLETED #1797

Description

@niccokunzmann

We already have several attributes like DTSTAMP that return a UTC timestamp.

Todo misses the COMPLETED property that should be constructed in the same way.

>>> c = Calendar.from_ical("""BEGIN:VCALENDAR
... VERSION:2.0
... PRODID:-//Example Corp.//CalDAV Client//EN
... BEGIN:VTODO
... UID:20070313T123432Z-456553@example.com
... DTSTAMP:20070313T123432Z
... COMPLETED;VALUE=DATE:20070501
... SUMMARY:Submit Quebec Income Tax Return for 2006
... CLASS:CONFIDENTIAL
... CATEGORIES:FAMILY,FINANCE
... STATUS:NEEDS-ACTION
... END:VTODO
... END:VCALENDAR""")
>>> c.todos[0].COMPLETED
Traceback (most recent call last):
  File "<python-input-10>", line 1, in <module>
    c.todos[0].COMPLETED
AttributeError: 'Todo' object has no attribute 'COMPLETED'

Checklist for closing this issue:

Examples:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Example Corp.//CalDAV Client//EN
BEGIN:VTODO
UID:20070313T123432Z-456553@example.com
DTSTAMP:20070313T123432Z
COMPLETED:20070501
SUMMARY:Submit Quebec Income Tax Return for 2006
CLASS:CONFIDENTIAL
CATEGORIES:FAMILY,FINANCE
STATUS:NEEDS-ACTION
END:VTODO
END:VCALENDAR
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Example Corp.//CalDAV Client//EN
BEGIN:VTODO
UID:20070313T123432Z-456553@example.com
DTSTAMP:20070313T123432Z
COMPLETED;VALUE=DATE:20070501
SUMMARY:Submit Quebec Income Tax Return for 2006
CLASS:CONFIDENTIAL
CATEGORIES:FAMILY,FINANCE
STATUS:NEEDS-ACTION
END:VTODO
END:VCALENDAR

Related:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions