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
48fbe4f1
Commit
48fbe4f1
authored
Apr 03, 2012
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some not needed imports
parent
69129b9f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
11 deletions
+9
-11
accounts/models.py
accounts/models.py
+0
-1
docs/conf.py
docs/conf.py
+1
-1
trans/api.py
trans/api.py
+2
-2
trans/managers.py
trans/managers.py
+2
-2
trans/models.py
trans/models.py
+1
-2
trans/views.py
trans/views.py
+3
-3
No files found.
accounts/models.py
View file @
48fbe4f1
...
...
@@ -6,7 +6,6 @@ from django.contrib.auth.signals import user_logged_in
from
django.db.models.signals
import
post_save
from
django.utils.translation
import
ugettext_lazy
as
_
,
gettext
from
django.contrib
import
messages
from
django.utils.safestring
import
mark_safe
from
django.contrib.auth.models
import
Group
from
lang.models
import
Language
...
...
docs/conf.py
View file @
48fbe4f1
...
...
@@ -11,7 +11,7 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
import
sys
,
os
#
import sys, os
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
...
...
trans/api.py
View file @
48fbe4f1
from
django.conf
import
settings
from
django.views.decorators.csrf
import
csrf_exempt
from
django.http
import
HttpResponse
,
HttpResponse
Redirect
,
HttpResponseNotAllowed
,
HttpResponseNotFoun
d
,
HttpResponseBadRequest
from
trans.models
import
Project
,
SubProject
,
Translation
,
Unit
,
Suggestion
,
Check
from
django.http
import
HttpResponse
,
HttpResponse
NotAllowe
d
,
HttpResponseBadRequest
from
trans.models
import
Project
,
SubProject
from
django.shortcuts
import
get_object_or_404
import
json
...
...
trans/managers.py
View file @
48fbe4f1
from
django.db
import
models
,
connection
from
django.db
import
models
from
django.conf
import
settings
import
itertools
...
...
@@ -6,7 +6,7 @@ from lang.models import Language
from
whoosh
import
qparser
from
util
import
is_plural
,
split_plural
,
join_plural
,
msg_checksum
from
util
import
join_plural
,
msg_checksum
import
trans.search
from
translate.storage
import
factory
...
...
trans/models.py
View file @
48fbe4f1
from
django.db
import
models
from
django.db.models
import
Q
from
django.contrib.auth.models
import
User
from
django.conf
import
settings
from
lang.models
import
Language
from
django.db.models
import
Sum
from
django.utils.translation
import
ugettext
_lazy
,
ugettext
as
_
from
django.utils.translation
import
ugettext
as
_
from
django.utils.safestring
import
mark_safe
from
django.core.mail
import
mail_admins
from
django.core.exceptions
import
ValidationError
...
...
trans/views.py
View file @
48fbe4f1
...
...
@@ -2,9 +2,9 @@ from django.shortcuts import render_to_response, get_object_or_404
from
django.views.decorators.cache
import
cache_page
from
django.conf
import
settings
from
django.core.servers.basehttp
import
FileWrapper
from
django.utils.translation
import
ugettext
_lazy
,
ugettext
as
_
from
django.utils.translation
import
ugettext
as
_
from
django.template
import
RequestContext
,
loader
from
django.http
import
HttpResponse
,
HttpResponseRedirect
,
HttpResponseNot
Allowed
,
HttpResponseNot
Found
,
Http404
from
django.http
import
HttpResponse
,
HttpResponseRedirect
,
HttpResponseNotFound
,
Http404
from
django.contrib
import
messages
from
django.contrib.auth.decorators
import
login_required
,
permission_required
,
user_passes_test
from
django.contrib.auth.models
import
AnonymousUser
...
...
@@ -15,7 +15,7 @@ from django.core.urlresolvers import reverse
from
trans.models
import
Project
,
SubProject
,
Translation
,
Unit
,
Suggestion
,
Check
,
Dictionary
,
Change
from
lang.models
import
Language
from
trans.forms
import
TranslationForm
,
UploadForm
,
SimpleUploadForm
,
ExtraUploadForm
,
SearchForm
,
MergeForm
,
AutoForm
,
WordForm
,
DictUploadForm
,
ReviewForm
from
util
import
is_plural
,
split_plural
,
join_plural
from
util
import
join_plural
from
accounts.models
import
Profile
from
whoosh.analysis
import
StandardAnalyzer
,
StemmingAnalyzer
import
datetime
...
...
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