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
6a3b6543
Commit
6a3b6543
authored
Jul 09, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
0b25cfda
3e354430
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
weblate/trans/models.py
weblate/trans/models.py
+4
-5
No files found.
weblate/trans/models.py
View file @
6a3b6543
...
...
@@ -464,20 +464,19 @@ class SubProject(models.Model):
'''
return
SubProject
.
objects
.
filter
(
repo
=
'weblate://%s/%s'
%
(
self
.
project
.
slug
,
self
.
slug
))
def
commit_pending
(
self
):
def
commit_pending
(
self
,
from_link
=
False
):
'''
Checks whether there is any translation which needs commit.
'''
if
self
.
is_repo_link
():
return
self
.
get_linked_repo
().
commit_pending
()
if
not
from_link
and
self
.
is_repo_link
():
return
self
.
get_linked_repo
().
commit_pending
(
True
)
for
translation
in
self
.
translation_set
.
all
():
translation
.
commit_pending
()
# Process linked projects
for
sp
in
self
.
get_linked_childs
():
for
translation
in
sp
.
translation_set
.
all
():
translation
.
commit_pending
()
sp
.
commit_pending
(
True
)
def
update_branch
(
self
,
request
=
None
):
'''
...
...
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