|
23 | 23 |
|
24 | 24 | from cms.djangoapps.models.settings.course_grading import CourseGradingModel
|
25 | 25 | from openedx.core.djangoapps.site_configuration import helpers as configuration_helpers
|
26 |
| -from openedx.core.djangoapps.content_libraries.sync import is_valid_upstream |
27 | 26 | import openedx.core.djangoapps.content_staging.api as content_staging_api
|
28 | 27 | import openedx.core.djangoapps.content_tagging.api as content_tagging_api
|
29 | 28 |
|
@@ -294,6 +293,7 @@ def import_staged_content_from_user_clipboard(parent_key: UsageKey, request) ->
|
294 | 293 | staged_content_id=user_clipboard.content.id,
|
295 | 294 | static_files=static_files,
|
296 | 295 | )
|
| 296 | + |
297 | 297 | return new_xblock, notices
|
298 | 298 |
|
299 | 299 |
|
@@ -375,12 +375,6 @@ def _import_xml_node_to_parent(
|
375 | 375 | if copied_from_block:
|
376 | 376 | # Store a reference to where this block was copied from, in the 'copied_from_block' field (AuthoringMixin)
|
377 | 377 | temp_xblock.copied_from_block = copied_from_block
|
378 |
| - copied_from_key = UsageKey.from_string(copied_from_block) |
379 |
| - if is_valid_upstream(copied_from_key): |
380 |
| - upstream_link_requested = lambda: True # @@TODO ask user |
381 |
| - if upstream_link_requested(): |
382 |
| - temp_xblock.assign_upstream(copied_from_key, user_id) |
383 |
| - |
384 | 378 | # Save the XBlock into modulestore. We need to save the block and its parent for this to work:
|
385 | 379 | new_xblock = store.update_item(temp_xblock, user_id, allow_not_found=True)
|
386 | 380 | parent_xblock.children.append(new_xblock.location)
|
|
0 commit comments