This repository was archived by the owner on Oct 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Shared Mixins to enable effortless Studio-editable XBlocks (OC-513) #5
Merged
bradenmacdonald
merged 15 commits into
openedx-unsupported:master
from
open-craft:studio-editable-xblock
Mar 23, 2015
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
b5ece68
Basic mixin to make XBlocks editable
bradenmacdonald 93364b4
New mixin to support Studio editing of XBlocks with children
bradenmacdonald c0b0b14
Support for HTML fields using Studio's TinyMCE
bradenmacdonald 5c2eb22
Fixed fallback editor used for any unsupported but JSON-compatible fi…
bradenmacdonald 9aae369
Added child_isinstance() helper method
bradenmacdonald f29d02b
Catch validation errors raised during studio editing
bradenmacdonald cb627e8
Integration Tests for StudioEditableMixin + cleanups to Selenium test…
bradenmacdonald 039fc74
Updated README
bradenmacdonald 630f413
Studio editing support for some types of List fields
bradenmacdonald e23fe0e
Fix static data missing if not installed in dev mode
bradenmacdonald 6c25b58
Don't degrade editor UI for "Set" types just because list_values_prov…
bradenmacdonald 1522c08
Support for values_provider
bradenmacdonald 7ec76da
Address Sarina's review comments
bradenmacdonald c21aa4c
Improve test coverage, fix bug
bradenmacdonald ca86d73
Translate XBlock field display_name and help strings
bradenmacdonald File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| *.log | ||
| *.pyc | ||
| .coverage | ||
| cover | ||
| xblock_utils.egg-info | ||
| tests.integration.*.png |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this sufficiently generic? do all xblocks apply this decorator?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs("i18n")is a very common, useful decorator, since it's basically the only way for an XBlock to localize its translatable strings. It's not strictly required, but it's in this example code as a reminder of good practices.