Commit 3c3bbd11 by Victor Shnayder

minor formatting tweaks

parent da29d88d
...@@ -74,7 +74,7 @@ class ContentStoreTestCase(TestCase): ...@@ -74,7 +74,7 @@ class ContentStoreTestCase(TestCase):
return resp return resp
def _activate_user(self, email): def _activate_user(self, email):
'''look up the user's activation key in the db, then hit the activate view. '''Look up the activation key for the user, then hit the activate view.
No error checking''' No error checking'''
activation_key = registration(email).activation_key activation_key = registration(email).activation_key
......
...@@ -12,8 +12,10 @@ class HtmlModule(XModule): ...@@ -12,8 +12,10 @@ class HtmlModule(XModule):
def get_html(self): def get_html(self):
return self.html return self.html
def __init__(self, system, location, definition, instance_state=None, shared_state=None, **kwargs): def __init__(self, system, location, definition,
XModule.__init__(self, system, location, definition, instance_state, shared_state, **kwargs) instance_state=None, shared_state=None, **kwargs):
XModule.__init__(self, system, location, definition,
instance_state, shared_state, **kwargs)
self.html = self.definition['data'] self.html = self.definition['data']
......
...@@ -450,8 +450,8 @@ class XModuleDescriptor(Plugin, HTMLSnippet): ...@@ -450,8 +450,8 @@ class XModuleDescriptor(Plugin, HTMLSnippet):
default_class default_class
) )
# leave next line, commented out - useful for low-level debugging # leave next line, commented out - useful for low-level debugging
log.debug('[XModuleDescriptor.load_from_xml] tag=%s, class_=%s' % ( # log.debug('[XModuleDescriptor.load_from_xml] tag=%s, class_=%s' % (
etree.fromstring(xml_data).tag,class_)) # etree.fromstring(xml_data).tag,class_))
return class_.from_xml(xml_data, system, org, course) return class_.from_xml(xml_data, system, org, course)
@classmethod @classmethod
......
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