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
a2af18ff
Commit
a2af18ff
authored
Mar 04, 2016
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log parse errors in changes
Fixes #862 Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
3f045e9f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
weblate/trans/models/changes.py
weblate/trans/models/changes.py
+2
-0
weblate/trans/models/subproject.py
weblate/trans/models/subproject.py
+5
-0
No files found.
weblate/trans/models/changes.py
View file @
a2af18ff
...
@@ -160,6 +160,7 @@ class Change(models.Model):
...
@@ -160,6 +160,7 @@ class Change(models.Model):
ACTION_REBASE
=
21
ACTION_REBASE
=
21
ACTION_FAILED_MERGE
=
22
ACTION_FAILED_MERGE
=
22
ACTION_FAILED_REBASE
=
23
ACTION_FAILED_REBASE
=
23
ACTION_PARSE_ERROR
=
24
ACTION_CHOICES
=
(
ACTION_CHOICES
=
(
(
ACTION_UPDATE
,
ugettext_lazy
(
'Resource update'
)),
(
ACTION_UPDATE
,
ugettext_lazy
(
'Resource update'
)),
...
@@ -186,6 +187,7 @@ class Change(models.Model):
...
@@ -186,6 +187,7 @@ class Change(models.Model):
(
ACTION_REBASE
,
ugettext_lazy
(
'Rebased repository'
)),
(
ACTION_REBASE
,
ugettext_lazy
(
'Rebased repository'
)),
(
ACTION_FAILED_MERGE
,
ugettext_lazy
(
'Failed merge on repository'
)),
(
ACTION_FAILED_MERGE
,
ugettext_lazy
(
'Failed merge on repository'
)),
(
ACTION_FAILED_REBASE
,
ugettext_lazy
(
'Failed rebase on repository'
)),
(
ACTION_FAILED_REBASE
,
ugettext_lazy
(
'Failed rebase on repository'
)),
(
ACTION_PARSE_ERROR
,
ugettext_lazy
(
'Parse error'
)),
)
)
ACTIONS_SUBPROJECT
=
set
((
ACTIONS_SUBPROJECT
=
set
((
...
...
weblate/trans/models/subproject.py
View file @
a2af18ff
...
@@ -854,6 +854,11 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
...
@@ -854,6 +854,11 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
translation
,
translation
,
str
(
error
)
str
(
error
)
)
)
Change
.
objects
.
create
(
subproject
=
self
,
translation
=
translation
,
action
=
Change
.
ACTION_PARSE_ERROR
,
)
raise
ParseError
(
str
(
error
))
raise
ParseError
(
str
(
error
))
def
update_branch
(
self
,
request
=
None
,
method
=
None
):
def
update_branch
(
self
,
request
=
None
,
method
=
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