1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

fix color support

5f2245c35f introduced an additional alias for the
http://apple.com/ns/ical namespace. this can cause problems.
This commit is contained in:
Felix Lange 2014-11-11 21:26:29 +01:00
parent 063f7de7a2
commit 20b1a29149
2 changed files with 5 additions and 6 deletions

View file

@ -455,9 +455,9 @@ class Collection(object):
def color(self):
"""Collection color."""
with self.props as props:
if "A:calendar-color" not in props:
props["A:calendar-color"] = "#%x" % randint(0, 255 ** 3 - 1)
return props["A:calendar-color"]
if "ICAL:calendar-color" not in props:
props["ICAL:calendar-color"] = "#%x" % randint(0, 255 ** 3 - 1)
return props["ICAL:calendar-color"]
@property
def headers(self):