Commit 386f4a0c authored by Jim Fulton's avatar Jim Fulton

Added check for for None value for index_html to allow

objects to prevent acquiring it.
parent a925db54
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
# attributions are listed in the accompanying credits file. # attributions are listed in the accompanying credits file.
# #
############################################################################## ##############################################################################
__version__='$Revision: 1.7 $'[11:-2] __version__='$Revision: 1.8 $'[11:-2]
from string import join, split, find, rfind, lower, upper from string import join, split, find, rfind, lower, upper
from urllib import quote from urllib import quote
...@@ -327,7 +327,10 @@ class BaseRequest: ...@@ -327,7 +327,10 @@ class BaseRequest:
# Check for method: # Check for method:
if not path: if not path:
if method and hasattr(object,method) and entry_name != method: if (method and hasattr(object,method)
and entry_name != method
and getattr(object, method) is not None
):
request._hacked_path=1 request._hacked_path=1
path=[method] path=[method]
else: else:
......
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