Let GET requests create address books too!
This commit is contained in:
parent
22e4e3764c
commit
f37c3a0b27
@ -305,6 +305,7 @@ class Application(object):
|
||||
|
||||
collection = collections[0]
|
||||
item_name = xmlutils.name_from_path(environ["PATH_INFO"], collection)
|
||||
|
||||
if item_name:
|
||||
# Get collection item
|
||||
item = collection.get_item(item_name)
|
||||
|
@ -392,6 +392,9 @@ class Collection(object):
|
||||
try:
|
||||
props["tag"] = open(self.path).readlines()[0][6:].rstrip()
|
||||
except IOError:
|
||||
if self.path.endswith(".vcf"):
|
||||
props["tag"] = "VADDRESSBOOK"
|
||||
else:
|
||||
props["tag"] = "VCALENDAR"
|
||||
return props["tag"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user