Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e561b9eb
authored
Jun 14, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix flake8 errors part 2
parent
a7b7a9ef
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
5 deletions
+9
-5
circle/acl/management/__init__.py
+4
-4
circle/circle/settings/local.py
+1
-0
circle/circle/settings/production.py
+1
-0
circle/circle/settings/test.py
+2
-0
circle/dashboard/tests/test_views.py
+1
-1
No files found.
circle/acl/management/__init__.py
View file @
e561b9eb
...
...
@@ -31,13 +31,13 @@ def create_levels(app, created_models, verbosity, db=DEFAULT_DB_ALIAS,
for
klass
in
app_models
:
# Force looking up the content types in the current database
# before creating foreign keys to them.
ctype
=
ContentType
.
objects
.
db_manager
(
db
)
.
get_for_model
(
klass
)
ctypes
.
add
(
ctype
)
ctype
1
=
ContentType
.
objects
.
db_manager
(
db
)
.
get_for_model
(
klass
)
ctypes
.
add
(
ctype
1
)
weight
=
0
try
:
for
codename
,
name
in
klass
.
ACL_LEVELS
:
searched_levels
.
append
((
ctype
,
(
codename
,
name
)))
level_weights
.
append
((
ctype
,
codename
,
weight
))
searched_levels
.
append
((
ctype
1
,
(
codename
,
name
)))
level_weights
.
append
((
ctype
1
,
codename
,
weight
))
weight
+=
1
except
AttributeError
:
raise
ImproperlyConfigured
(
...
...
circle/circle/settings/local.py
View file @
e561b9eb
...
...
@@ -16,6 +16,7 @@
# with CIRCLE. If not, see <http://www.gnu.org/licenses/>.
"""Development settings and globals."""
# flake8: noqa
from
base
import
*
# noqa
...
...
circle/circle/settings/production.py
View file @
e561b9eb
...
...
@@ -16,6 +16,7 @@
# with CIRCLE. If not, see <http://www.gnu.org/licenses/>.
"""Production settings and globals."""
# flake8: noqa
from
os
import
environ
...
...
circle/circle/settings/test.py
View file @
e561b9eb
...
...
@@ -17,6 +17,8 @@
from
.base
import
*
# noqa
# flake8: noqa
########## IN-MEMORY TEST DATABASE
DATABASES
=
{
"default"
:
{
...
...
circle/dashboard/tests/test_views.py
View file @
e561b9eb
...
...
@@ -17,7 +17,7 @@
import
json
#from unittest import skip
#
from unittest import skip
from
django.test
import
TestCase
from
django.test.client
import
Client
from
django.contrib.auth.models
import
User
,
Group
...
...
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