Commit 8c55f4cc authored by Łukasz Nowak's avatar Łukasz Nowak

traverse_subpath can be empty.

parent 146c0e41
...@@ -297,7 +297,8 @@ class InstancePublisher(GenericPublisher): ...@@ -297,7 +297,8 @@ class InstancePublisher(GenericPublisher):
def __call__(self): def __call__(self):
"""Instance GET/POST support""" """Instance GET/POST support"""
if self.REQUEST['REQUEST_METHOD'] == 'POST': if self.REQUEST['REQUEST_METHOD'] == 'POST':
if self.REQUEST['traverse_subpath'][-1] == 'bang': if self.REQUEST['traverse_subpath'] and \
self.REQUEST['traverse_subpath'][-1] == 'bang':
self.__bang() self.__bang()
else: else:
self.__request() self.__request()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment