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

traverse_subpath can be empty.

parent 146c0e41
......@@ -297,7 +297,8 @@ class InstancePublisher(GenericPublisher):
def __call__(self):
"""Instance GET/POST support"""
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()
else:
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