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
ca838b6c
Commit
ca838b6c
authored
Apr 09, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop some not needed local variables
parent
466cbd6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
18 deletions
+5
-18
trans/views/edit.py
trans/views/edit.py
+5
-18
No files found.
trans/views/edit.py
View file @
ca838b6c
...
...
@@ -25,7 +25,6 @@ from django.http import HttpResponseRedirect, HttpResponse
from
django.contrib
import
messages
from
django.contrib.auth.decorators
import
login_required
,
permission_required
from
django.contrib.auth.models
import
AnonymousUser
from
django.db.models
import
Q
from
django.utils
import
formats
import
uuid
...
...
@@ -42,7 +41,6 @@ from accounts.models import Profile, send_notification_email
import
weblate
def
get_filter_name
(
rqtype
):
'''
Returns name of current filter.
...
...
@@ -98,24 +96,13 @@ def search(translation, request):
)
name
=
_
(
'Review of translations since %s'
)
%
formatted_date
elif
search_form
.
is_valid
():
# Search query
search_query
=
search_form
.
cleaned_data
[
'q'
]
# Search type
search_type
=
search_form
.
cleaned_data
[
'search'
]
# Search options
search_source
=
search_form
.
cleaned_data
[
'src'
]
search_target
=
search_form
.
cleaned_data
[
'tgt'
]
search_context
=
search_form
.
cleaned_data
[
'ctx'
]
# Apply search conditions
allunits
=
translation
.
unit_set
.
search
(
search_
type
,
search_
query
,
search_
source
,
search_
context
,
search_
target
search_
form
.
cleaned_data
[
'search'
]
,
search_
form
.
cleaned_data
[
'q'
]
,
search_
form
.
cleaned_data
[
'src'
]
,
search_
form
.
cleaned_data
[
'ctx'
]
,
search_
form
.
cleaned_data
[
'tgt'
],
)
name
=
_
(
'Search for "%s"'
)
%
search_query
...
...
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