コード例 #1
0
ファイル: __init__.py プロジェクト: PaoloC68/edx-platform
 def process_xml(self, xml):  # pylint: disable=method-hidden
     """Parse `xml` as an XBlock, and add it to `self._descriptors`"""
     descriptor = create_block_from_xml(
         xml,
         self,
         CourseLocationGenerator(self.course_id),
     )
     self._descriptors[descriptor.location.to_deprecated_string()] = descriptor
     return descriptor
コード例 #2
0
 def process_xml(self, xml):  # pylint: disable=method-hidden
     """Parse `xml` as an XBlock, and add it to `self._descriptors`"""
     descriptor = create_block_from_xml(
         xml,
         self,
         CourseLocationGenerator(self.org, self.course),
     )
     self._descriptors[descriptor.location.url()] = descriptor
     return descriptor
コード例 #3
0
ファイル: __init__.py プロジェクト: SnowGeekOrg/edx-platform
 def process_xml(self, xml):  # pylint: disable=method-hidden
     """Parse `xml` as an XBlock, and add it to `self._descriptors`"""
     descriptor = create_block_from_xml(xml, self, self.org, self.course, self.default_class)
     self._descriptors[descriptor.location.url()] = descriptor
     return descriptor