示例#1
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.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
 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