M. Zulqarnain
41e5403f4e
BOM-2369 (D): pyupgrade on contentstore/views ( #26767 )
...
* pyupgrade on contentstore/views
* Apply suggestions from code review
Co-authored-by: Usama Sadiq <usama.sadiq@arbisoft.com >
Co-authored-by: Usama Sadiq <usama.sadiq@arbisoft.com >
2021-03-05 14:55:14 +05:00
usamasadiq
7bbde8f0f5
Applied pylint-amnesty
2021-02-08 13:00:22 +05:00
Kyle McCormick
151bd13666
Use full names for common.djangoapps imports; warn when using old style ( #25477 )
...
* Generate common/djangoapps import shims for LMS
* Generate common/djangoapps import shims for Studio
* Stop appending project root to sys.path
* Stop appending common/djangoapps to sys.path
* Import from common.djangoapps.course_action_state instead of course_action_state
* Import from common.djangoapps.course_modes instead of course_modes
* Import from common.djangoapps.database_fixups instead of database_fixups
* Import from common.djangoapps.edxmako instead of edxmako
* Import from common.djangoapps.entitlements instead of entitlements
* Import from common.djangoapps.pipline_mako instead of pipeline_mako
* Import from common.djangoapps.static_replace instead of static_replace
* Import from common.djangoapps.student instead of student
* Import from common.djangoapps.terrain instead of terrain
* Import from common.djangoapps.third_party_auth instead of third_party_auth
* Import from common.djangoapps.track instead of track
* Import from common.djangoapps.util instead of util
* Import from common.djangoapps.xblock_django instead of xblock_django
* Add empty common/djangoapps/__init__.py to fix pytest collection
* Fix pylint formatting violations
* Exclude import_shims/ directory tree from linting
2020-11-10 07:02:01 -05:00
Kyle McCormick
a3deb6e317
Sort imports in cms/
...
Command: `isort --recursive cms/`
2020-10-19 09:34:31 -04:00
Kyle McCormick
538dbf696b
Import CMS code using fully qualified module names
...
or, using proper the proper Python 3 relative imports
(e.g., 'from .views import x') which are standard and
unambiguous.
2020-10-19 09:34:31 -04:00
Kyle McCormick
7538691484
Patch CMS app code in tests using fully qualified names
2020-10-19 09:34:31 -04:00
uzairr
fb9ba90efe
PROD-1236: Do not expose user id with certificate URL.
2020-07-17 22:59:34 +05:00
Feanil Patel
2df8b8226b
Merge pull request #22643 from edx/feanil/2to3_asserts
...
Run `2to3 -f asserts . -w` on edx-platform.
2019-12-30 12:13:42 -05:00
Feanil Patel
9cf2f9f298
Run 2to3 -f future . -w
...
This will remove imports from __future__ that are no longer needed.
https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00
Feanil Patel
70294b0ad2
Run 2to3 -f asserts . -w on edx-platform.
...
https://docs.python.org/3.5/library/2to3.html#2to3fixer-asserts
2019-12-30 10:22:19 -05:00
Feanil Patel
ef27928e67
Decode content from django test client.
2019-10-07 13:49:25 -04:00
Nimisha Asthagiri
a6b219a9e9
Python-3: assertIn(..response.content) -> assertContains
2019-09-30 08:50:38 -04:00
Ayub khan
6b884c98b6
BOM-370
...
py3 unittest fix
2019-09-03 16:06:48 +05:00
David Ormsbee
9a1385585f
Convert response bytes to str before JSON parsing. ( #21375 )
...
Convert response bytes to str before JSON parsing.
2019-08-19 11:01:55 -04:00
arbisoft
9c6bb49abf
Fixing python-modernize issues.
2019-07-09 16:21:12 +05:00
Michael Youngstrom
16b5606404
Remove shards from cms
2019-02-12 11:26:39 -05:00
Matthew Piatetsky
7df30938c4
fix unicode strings in cms/
2019-02-04 13:01:51 -05:00
Stuart Young
1fd2167144
rebalance python unittests onto new shards
2018-05-03 11:16:05 -04:00
bmedx
9099f0dc23
CMS urls cleanup for Django 1.11
...
- Remove usage of django.urls.patterns
- Change urls tuples to lists
- Make all string view names callables
2017-11-02 14:29:48 -04:00
Andy Armstrong
ebb04ca396
Reorder Studio imports using isort
2017-05-30 17:00:50 -04:00
marcotuts
2f4a4083bb
removed global staff check
2016-12-02 17:40:54 +00:00
Calen Pennington
fd0d69594a
Upgrade to the latest version of opaque-keys
2016-12-01 13:04:31 -05:00
Mushtaq Ali
fb2f9948e1
Fix dynamic load RequireJs issue on Maintenance Dashboard
2016-08-09 13:48:20 +00:00
Mushtaq Ali
abb6af9789
Basic architecture of Maintenance App - SUST-19, SUST-42. Implement Force Publish Course view. SUST-46
2016-08-09 18:16:13 +05:00
Ned Batchelder
8571ceabeb
Fix many wrong-assert-type errors
2016-08-03 12:44:41 -04:00
Ned Batchelder
1905f0c517
Fix simplifiable-range errors
2016-08-03 12:44:41 -04:00
Robert Raposa
b69c6d62bf
Make base.html Mako template safe by default
...
Make base.html Mako template safe by default by:
1. Add page-level default of html escaping
2. Fix escaping of all variables in base.html
3. Fix escaping of all dependent underscore templates
Also includes additional best practices for certificates and
textbooks JavaScript/Underscore in order to complete that work.
TNL-3425
2016-02-16 13:19:24 -05:00
Robert Raposa
f555ffd585
Refactor and improve js_utils helpers
...
- Rename escape_json_dumps to dump_js_escaped_json
- Rename escape_js_string to js_escaped_string
- Update js_escaped_string to output empty string for None
- Introduce dump_html_escaped_json
- Move dump_js_escaped_json after the pipe as new best practice
- Introduce additional uses of helpers
- Introduce new djangolib directory and move js_utils
2016-02-03 17:13:21 -05:00
Bill DeRusha
08d1268c28
Disable cert generation for audit only courses
2015-12-17 13:23:38 -05:00
Zia Fazal
aa529fe0b6
remove audit course mode
...
removed print statement
2015-11-25 17:58:30 +05:00
Ned Batchelder
f5d0f3ff55
Remove useless pylint suppressions
2015-11-22 07:41:19 -05:00
Zia Fazal
dd48bb0f4a
missing is_active attribute fix
2015-09-11 11:46:32 -04:00
asadiqbal
9f34720d56
SOL-1152
2015-08-27 11:27:43 +05:00
Matt Drayer
e1ee5ac6df
mattdrayer/SOL-981: Integrate edx-organizations application
...
* asadiqbal08/SOL-1058: Add edx-organizations to certificate web view
* Support organization logo asset management
* Remove organization fields from Studio certificate configuration model
* SOL-981 pull request feedback fixes
2015-08-10 10:29:45 -04:00
Matt Drayer
3570d08856
Merge pull request #9197 from edx/ziafazal/SOL-1077-fix
...
SOL-1077: certificate config edit/delete is only allowed if user is edX PM or for those certificate configs not active
2015-08-06 11:36:03 -04:00
Zia Fazal
e11c1d120c
certificate edit/delete is only allowed if user is edX PM or certificate is not active
...
removed org helper
2015-08-05 13:45:43 +05:00
Ned Batchelder
f54fe787c6
Remove needless 'disable=no-member' pragmas
2015-08-03 17:47:44 -04:00
Zia Fazal
0793cc8b5c
only ddx PM can activate/deactivate or delete certificate configuration
...
fix for flaky test
fix for broken test
fixed quality violation
2015-07-15 17:09:01 +05:00
Zia Fazal
57f1dc92b3
ziafazal/SOL-1021: Capture additional certificate configuration events
...
* Changed certificate_id to configuration_id
* Fix for acceptance test faiiure
* Add waits to bok choy tests
fix for flaky test
2015-07-14 11:12:09 +05:00
Zia Fazal
9711cd5fc3
certificate add/update/delete operations permission check
...
address quality violation
2015-07-06 09:45:33 +05:00
Matt Drayer
3e52b8fad1
mattdrayer/SOL-947: Refactor Web/HTML certificate URL patterns
2015-06-06 23:15:17 -04:00
Matt Drayer
af7277cdd9
New Feature: Certificates Web View
...
- SOL-465: Initial implementation of certificates web view and signatories (names/titles)
- SOL-718 Close button is working properly
- SOL-801 Backbone Signatories Modeling
- SOL-803 Underscore template: Editor (Add)
- SOL-802 Signatories: Underscore template - Details
- SOL-804 Signatories: Underscore template: Editor (Edit)
- Add signatory delete Django view
- SOL-805 Signatory editor (Delete)
- Add Coffeescript router
- SOL-716 Jasmine Tests
- Added missing minified JS library
- client side validation of signatory fields
- SOL-390 signatories names
- Remove obsolete extends Sass files
- input maxlength limiting for signatory information
- SOL-389: Course title override
- SOL-466: Add capability to upload digitized signatures in Studio
- ziafazal: fixed css for upload signature image
- ziafazal: completed deletion of signature images
- UX-1741: Add initial static rendering/styling for Open edX web certs
* creating new global static dir
* adding static version of edX UX pattern library assets
* adding web certificates static assets
* adding static (+abstracted) web certificates rendering
* creating two tiers of rendering (base + distinguished)
* providing sample assets for certificate rendering
* supporting RTL layouts
* adding certifcates assests to edX static asset pipeline
* temporarily hiding the mozilla open badges share action
* wiring print button to print view/page
* fixup! addressing conflict artifact in valid cert template
* fixup! adding missing %hd-subsection sass extend + components comment clean up
* fixup! correcting pattern library .hd-4 font-weight value
- SOL-468 Linked Student View for Web View Credential
- SOL-467: Add capability to upload organization logos for certificates
- SOL-391 / SOL-387: Signatory related info (assets) in certificates web view
- kelketek: Fixes for static asset collection in certificate HTML view.
- SOL-398 Web View: Public Access
- mattdrayer: Post-merge branch stabilization
- catong: Initial changes to Studio template and Help config file
- ziafazal: Branch stabilizations
- SOL-387: Display organization logo on LMS web view
- talbs/mattdrayer: Branch Stabilizations
- talbs: converting backpack action to use a button HTML element
- talbs: revising placeholder assets + their rendering in cert view
- mattdrayer: Username web view wireup
- SOL-386 Certificate Mode Previews
- SOL-905: Make organization logo and signatory signature uneditable
- SOL-922: Improve test coverage
- SOL-765: Add LinkedIn sharing
- [marco] temporary styling adjustment to account for smaller linkedin share image / fake button
- SOL-921: Address hardcoded template items
- SOL-927: Deleting certificate should delete org logo image also
* updated invalid template
* removed hr
* fix invalid certificate error
- clrux: Add i18n to certificate templates and partials
- mattdrayer: Pylint violations
- SOL-920 Certificate Activation/Deactivation
- mattdrayer: Added LMS support
- SOL-932: Fix preview mode support in certificate view
- SOL-934: Fixed bug reported and broken tests
- SOL-935 removed the 'valid' word from web view title
- talbs: RTL support updates/fixes
* revising certificate type icon/name vertical alignment
* removing unused older certificate template
* revising styling for message/banner actions
* abstracting accomplishment type to use course mode + adding in honor/verified-specific placeholders
- mattdrayer: JSHint violations
2015-06-01 19:48:04 -04:00