Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
47b99720
Commit
47b99720
authored
Jul 10, 2015
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up old style class definitions
parent
22bbdace
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
common/djangoapps/microsite_configuration/middleware.py
+1
-1
common/test/acceptance/pages/studio/overview.py
+1
-1
common/test/acceptance/tests/studio/test_studio_outline.py
+5
-2
No files found.
common/djangoapps/microsite_configuration/middleware.py
View file @
47b99720
...
@@ -38,7 +38,7 @@ class MicrositeMiddleware(object):
...
@@ -38,7 +38,7 @@ class MicrositeMiddleware(object):
return
response
return
response
class
MicrositeSessionCookieDomainMiddleware
():
class
MicrositeSessionCookieDomainMiddleware
(
object
):
"""
"""
Special case middleware which should be at the very end of the MIDDLEWARE list (so that it runs first
Special case middleware which should be at the very end of the MIDDLEWARE list (so that it runs first
on the process_response chain). This middleware will define a wrapper function for the set_cookie() function
on the process_response chain). This middleware will define a wrapper function for the set_cookie() function
...
...
common/test/acceptance/pages/studio/overview.py
View file @
47b99720
...
@@ -404,7 +404,7 @@ class CourseOutlineSection(CourseOutlineContainer, CourseOutlineChild):
...
@@ -404,7 +404,7 @@ class CourseOutlineSection(CourseOutlineContainer, CourseOutlineChild):
self
.
add_child
()
self
.
add_child
()
class
ExpandCollapseLinkState
:
class
ExpandCollapseLinkState
(
object
)
:
"""
"""
Represents the three states that the expand/collapse link can be in
Represents the three states that the expand/collapse link can be in
"""
"""
...
...
common/test/acceptance/tests/studio/test_studio_outline.py
View file @
47b99720
...
@@ -141,13 +141,16 @@ class WarningMessagesTest(CourseOutlineTest):
...
@@ -141,13 +141,16 @@ class WarningMessagesTest(CourseOutlineTest):
FUTURE_UNPUBLISHED_WARNING
=
'Unpublished changes to content that will release in the future'
FUTURE_UNPUBLISHED_WARNING
=
'Unpublished changes to content that will release in the future'
NEVER_PUBLISHED_WARNING
=
'Unpublished units will not be released'
NEVER_PUBLISHED_WARNING
=
'Unpublished units will not be released'
class
PublishState
:
class
PublishState
(
object
):
"""
Default values for representing the published state of a unit
"""
NEVER_PUBLISHED
=
1
NEVER_PUBLISHED
=
1
UNPUBLISHED_CHANGES
=
2
UNPUBLISHED_CHANGES
=
2
PUBLISHED
=
3
PUBLISHED
=
3
VALUES
=
[
NEVER_PUBLISHED
,
UNPUBLISHED_CHANGES
,
PUBLISHED
]
VALUES
=
[
NEVER_PUBLISHED
,
UNPUBLISHED_CHANGES
,
PUBLISHED
]
class
UnitState
:
class
UnitState
(
object
)
:
""" Represents the state of a unit """
""" Represents the state of a unit """
def
__init__
(
self
,
is_released
,
publish_state
,
is_locked
):
def
__init__
(
self
,
is_released
,
publish_state
,
is_locked
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment