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
bbf2011e
Commit
bbf2011e
authored
Feb 23, 2013
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
bd938b1a
65761f64
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
trans/management/commands/__init__.py
trans/management/commands/__init__.py
+10
-4
trans/tests/js_views.py
trans/tests/js_views.py
+4
-1
No files found.
trans/management/commands/__init__.py
View file @
bbf2011e
...
...
@@ -17,6 +17,12 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
'''
Helper classes for management commands.
'''
# Abstract class is only referenced 1 times
# pylint: disable=R0921,R0922
from
django.core.management.base
import
BaseCommand
,
CommandError
from
optparse
import
make_option
...
...
@@ -24,8 +30,6 @@ from trans.models import Unit, SubProject
class
WeblateCommand
(
BaseCommand
):
# Abstract class is only referenced 1 times
# pylint: disable=R0922
'''
Command which accepts project/subproject/--all params to process.
'''
...
...
@@ -94,8 +98,10 @@ class WeblateCommand(BaseCommand):
class
WeblateLangCommand
(
WeblateCommand
):
# Abstract class not referenced
# pylint: disable=R0921,R0922
'''
Command accepting additional language parameter to filter
list of languages to process.
'''
option_list
=
WeblateCommand
.
option_list
+
(
make_option
(
'--lang'
,
...
...
trans/tests/js_views.py
View file @
bbf2011e
...
...
@@ -58,4 +58,7 @@ class JSViewsTest(ViewTestCase):
response
=
self
.
client
.
get
(
reverse
(
'js-dictionary'
,
kwargs
=
{
'unit_id'
:
unit
.
id
}),
)
self
.
assertContains
(
response
,
'No related strings found in dictionary.'
)
self
.
assertContains
(
response
,
'No related strings found in dictionary.'
)
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