Exemple #1
0
 def _create_block_record_list(self, blocks, user_id=None):
     """
     Creates and returns a BlockRecordList for the given blocks.
     """
     block_record_list = BlockRecordList.from_list(blocks, self.course_key)
     return VisibleBlocks.cached_get_or_create(user_id or self.user_id,
                                               block_record_list)
Exemple #2
0
 def _create_block_record_list(self, blocks, user_id=None):
     """
     Creates and returns a BlockRecordList for the given blocks.
     """
     block_record_list = BlockRecordList.from_list(blocks, self.course_key)
     return VisibleBlocks.cached_get_or_create(user_id or self.user_id, block_record_list)
Exemple #3
0
 def _create_block_record_list(self, blocks):
     """
     Creates and returns a BlockRecordList for the given blocks.
     """
     return VisibleBlocks.cached_get_or_create(
         BlockRecordList.from_list(blocks, self.course_key))
Exemple #4
0
 def _create_block_record_list(self, blocks):
     """
     Creates and returns a BlockRecordList for the given blocks.
     """
     return VisibleBlocks.cached_get_or_create(BlockRecordList.from_list(blocks, self.course_key))