Commit 17d30473 by Calen Pennington

Raise an exception for a missing xmodule views

parent 14431624
......@@ -159,6 +159,7 @@ class XModule(Plugin):
for method_name, method_fn in inspect.getmembers(self, lambda m: inspect.ismethod(m)):
if getattr(method_fn, 'view_name', None) is not None:
return method_fn
raise MissingXModuleView(self.__class__, view_name)
@property
def children(self):
......
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