Don't return <item>/ for events

This commit is contained in:
Markus Unterwaditzer 2016-08-29 17:29:46 +02:00
parent 947c57312c
commit 90e4655a44

View File

@ -425,7 +425,7 @@ def name_from_path(path, collection):
start = collection.path + "/"
if not path.startswith(start):
raise ValueError("'%s' doesn't start with '%s'" % (path, start))
return path[len(start):]
return path[len(start):].rstrip("/")
def props_from_request(root, actions=("set", "remove")):