Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions common/lib/xmodule/xmodule/xml_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def export_to_xml(self, resource_fs):

# Get the definition
xml_object = self.definition_to_xml(resource_fs)
self.__class__.clean_metadata_from_xml(xml_object)
self.clean_metadata_from_xml(xml_object)

# Set the tag so we get the file path right
xml_object.tag = self.category
Expand All @@ -401,7 +401,7 @@ def export_to_xml(self, resource_fs):
if self.export_to_file():
# Write the definition to a file
url_path = name_to_pathname(self.url_name)
filepath = self.__class__._format_filepath(self.category, url_path)
filepath = self._format_filepath(self.category, url_path)
resource_fs.makedir(os.path.dirname(filepath), recursive=True, allow_recreate=True)
with resource_fs.open(filepath, 'w') as file:
file.write(etree.tostring(xml_object, pretty_print=True, encoding='utf-8'))
Expand Down
4 changes: 2 additions & 2 deletions lms/lib/comment_client/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def after_save(cls, instance):
pass

def save(self):
self.__class__.before_save(self)
self.before_save(self)
if self.id: # if we have id already, treat this as an update
url = self.url(action='put', params=self.attributes)
response = perform_request('put', url, self.updatable_attributes())
Expand All @@ -100,7 +100,7 @@ def save(self):
response = perform_request('post', url, self.initializable_attributes())
self.retrieved = True
self.update_attributes(**response)
self.__class__.after_save(self)
self.after_save(self)

def delete(self):
url = self.url(action='delete', params=self.attributes)
Expand Down