Instead of:
- xblock_pdf/
- xblocks_contrib/
We should move to:
- src/
- xblock_pdf/
- xblock_html/
- xblock_problem/
- etc.
And the import roots will change:
- Before:
from xblock_contrib.problem import ProblemBlock
- After:
from xblock_problem import ProblemBlock
Why?
- It matches the structure of xblocks-extra
- It allows us to move xblocks into and out of xblocks-extra, xblocks-core, and other repositories without changing their import paths. It decouples their public API from our specific way of structuring the blocks, allowing us to keep the API stable as maintenance needs change and architectural decisions are made.
Instead of:
We should move to:
And the import roots will change:
from xblock_contrib.problem import ProblemBlockfrom xblock_problem import ProblemBlockWhy?