Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
221d41c0
Commit
221d41c0
authored
Feb 17, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PEP8 fixes
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
8e87ad58
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
weblate/accounts/models.py
weblate/accounts/models.py
+2
-2
weblate/accounts/pipeline.py
weblate/accounts/pipeline.py
+2
-2
weblate/accounts/strategy.py
weblate/accounts/strategy.py
+2
-2
weblate/trans/views/edit.py
weblate/trans/views/edit.py
+1
-1
No files found.
weblate/accounts/models.py
View file @
221d41c0
...
...
@@ -747,8 +747,8 @@ def sync_create_groups(sender, app, **kwargs):
'''
Create groups on syncdb.
'''
if
(
app
==
'accounts'
or
getattr
(
app
,
'__name__'
,
''
)
==
'weblate.accounts.models'
):
if
(
app
==
'accounts'
or
getattr
(
app
,
'__name__'
,
''
)
==
'weblate.accounts.models'
):
create_groups
(
False
)
if
'south'
in
settings
.
INSTALLED_APPS
:
...
...
weblate/accounts/pipeline.py
View file @
221d41c0
...
...
@@ -108,8 +108,8 @@ def user_full_name(strategy, details, user=None, **kwargs):
if
user
:
full_name
=
details
.
get
(
'fullname'
,
''
).
strip
()
if
(
not
full_name
and
(
'first_name'
in
details
or
'last_name'
in
details
)):
if
(
not
full_name
and
(
'first_name'
in
details
or
'last_name'
in
details
)):
first_name
=
details
.
get
(
'first_name'
,
''
)
last_name
=
details
.
get
(
'last_name'
,
''
)
...
...
weblate/accounts/strategy.py
View file @
221d41c0
...
...
@@ -30,7 +30,7 @@ class WeblateStrategy(DjangoStrategy):
"""
super
(
WeblateStrategy
,
self
).
__init__
(
storage
,
request
,
tpl
)
if
(
request
and
self
.
session
.
session_key
is
None
and
'id'
in
request
.
GET
):
self
.
session
.
session_key
is
None
and
'id'
in
request
.
GET
):
engine
=
import_module
(
settings
.
SESSION_ENGINE
)
self
.
session
=
engine
.
SessionStore
(
request
.
GET
[
'id'
])
weblate/trans/views/edit.py
View file @
221d41c0
...
...
@@ -305,7 +305,7 @@ def handle_translate(translation, request, user_locked,
elif
not
user_locked
:
# Custom commit message
message
=
requst
.
POST
.
get
(
'commit_message'
)
if
message
and
message
!=
unit
.
translation
.
commit_message
)
:
if
message
and
message
!=
unit
.
translation
.
commit_message
:
# Commit pending changes so that they don't get new message
unit
.
translation
.
commit_pending
(
request
,
request
.
user
)
# Store new commit message
...
...
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