Update rbmotd for Review Board 4.0
Review Request #11057 — Created June 25, 2020 and submitted
This change updates the message of the day extension for changes in
Review Board 4.0. This includes moving away from the oldpatterns
method for creating urlpatterns, and updating for API changes in Djblets
config forms. This also modernizes the codebase a bit, adding
unicode_literals
and docstrings.
Activated and configured the motd extension. Verified that everything
worked as expected.
Summary | ID |
---|---|
fe683cffc66ac831fdac81fc14312f2c756e8428 |
Description | From | Last Updated |
---|---|---|
These should be in the same import group. While here, can you add the standard unicode_literals import? |
chipx86 | |
Can you add some docs while you're here? Took me a few to figure out what this was doing (with … |
chipx86 | |
"Board" |
chipx86 | |
Probably MotdExtension would be appropriate here. |
chipx86 | |
This would be SafeText. SafeString is bytes on Python 2. |
chipx86 | |
We've only been using * for JavaScript, since there's no base object. For Python, we've been using object. |
chipx86 | |
The module is still safestring, just the class is SafeText. |
chipx86 |
- Description:
-
This change updates the message of the day extension for changes in
Review Board 4.0. This includes moving away from the old patterns
method for creating urlpatterns, and updating for API changes in Djblets ~ config forms. ~ config forms. This also modernizes the codebase a bit, adding + unicode_literals
and docstrings. - Commits:
-
Summary ID b7630a4652041756d7b8e184eff74b2a9348526f 18a1873a9c642345c345f4696b1d5b3dedf7ea61