mirror of
https://github.com/Kozea/Radicale.git
synced 2025-04-03 21:27:36 +03:00
Fix a unicode/string bug in plain support
git-svn-id: http://svn.32rwr.info/radicale/trunk@6 74e4794c-479d-4a33-9dda-c6c359d70f12
This commit is contained in:
parent
e87d37703d
commit
3593799f97
1 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ def append(cal, vcalendar):
|
|||
"""
|
||||
Append vcalendar to cal
|
||||
"""
|
||||
oldCalendar = read(cal)
|
||||
oldCalendar = unicode(read(cal), config.get("encoding", "stock"))
|
||||
oldTzs = [tz.tzid for tz in ical.timezones(oldCalendar)]
|
||||
path = os.path.join(_folder, cal.replace(posixpath.sep, os.path.sep))
|
||||
|
||||
|
@ -103,7 +103,7 @@ def remove(cal, etag):
|
|||
"""
|
||||
path = os.path.join(_folder, cal.replace(posixpath.sep, os.path.sep))
|
||||
|
||||
cal = read(cal)
|
||||
cal = unicode(read(cal), config.get("encoding", "stock"))
|
||||
|
||||
headers = ical.headers(cal)
|
||||
timezones = ical.timezones(cal)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue