Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
osp
tools.ethertoff
Commits
849ce458
Commit
849ce458
authored
Oct 10, 2019
by
alexandre
Browse files
Removed unused import for ethertoff app
parent
49060ef8
Changes
6
Hide whitespace changes
Inline
Side-by-side
ethertoff/context_processors.py
View file @
849ce458
import
re
import
os
import
sys
from
datetime
import
datetime
from
etherpadlite.models
import
Pad
,
PadAuthor
,
PadServer
from
django.contrib.auth.models
import
AnonymousUser
from
django.contrib.sites.shortcuts
import
get_current_site
...
...
ethertoff/management/commands/backup.py
View file @
849ce458
...
...
@@ -3,21 +3,19 @@
# Python imports
import
os
import
codecs
import
urllib
# PyPi imports
import
markdown
from
py_etherpad
import
EtherpadLiteClient
# Django imports
from
django.core.management.base
import
BaseCommand
,
CommandError
from
django.core.management.base
import
BaseCommand
# Django Apps import
from
etherpadlite.models
import
Pad
,
PadAuthor
from
etherpadlite.models
import
Pad
from
django.conf
import
settings
class
Command
(
BaseCommand
):
...
...
ethertoff/management/commands/index.py
View file @
849ce458
...
...
@@ -3,9 +3,6 @@
# Python imports
import
os
import
re
import
sys
import
codecs
import
json
from
urllib
import
error
from
time
import
clock
...
...
@@ -16,13 +13,12 @@ import rdflib
# Django imports
from
django.core.management.base
import
BaseCommand
,
CommandError
from
django.template.loader
import
render_to_string
from
django.core.management.base
import
BaseCommand
# Django Apps import
from
django.contrib.sites.models
import
Site
from
etherpadlite.models
import
Pad
,
PadAuthor
from
etherpadlite.models
import
Pad
from
django.conf
import
settings
"""
...
...
ethertoff/middleware.py
View file @
849ce458
from
django.http
import
HttpResponseServerError
from
django.template
import
Context
,
Template
,
loader
from
django.template
import
Context
,
loader
from
urllib2
import
URLError
from
ethertoff.context_processors
import
EthertoffError
from
etherpadlite.models
import
Pad
,
PadAuthor
,
PadServer
from
html5lib
import
HTMLParser
,
serializer
,
treebuilders
,
treewalkers
...
...
ethertoff/urls.py
View file @
849ce458
from
django.contrib.auth
import
views
as
auth_views
# from etherpadlite.views import padDelete
from
django.urls
import
path
,
re_path
from
.
import
views
#from django.conf.urls import *
from
django.views.generic
import
TemplateView
from
django.http
import
HttpResponse
from
django.conf
import
settings
from
django.conf.urls
import
include
from
django.conf.urls.static
import
static
# Uncomment the next two lines to enable the admin:
from
django.contrib
import
admin
...
...
ethertoff/views.py
View file @
849ce458
...
...
@@ -27,17 +27,15 @@ from django.template import RequestContext
from
django.template.defaultfilters
import
slugify
from
django.urls
import
reverse
from
django.template.context_processors
import
csrf
from
django.core.exceptions
import
PermissionDenied
from
django.contrib.auth.decorators
import
login_required
from
django.utils.translation
import
ugettext_lazy
as
_
from
django.db
import
IntegrityError
from
django.core.paginator
import
Paginator
from
django.conf
import
settings
from
django.contrib.staticfiles
import
finders
# Django Apps import
from
etherpadlite.models
import
*
from
etherpadlite.models
import
Pad
,
PadAuthor
from
etherpadlite
import
forms
from
etherpadlite
import
config
from
django.contrib.sites.shortcuts
import
get_current_site
...
...
@@ -496,8 +494,8 @@ def pad_read(request, mode="r", slug=None):
except
IOError
:
articles
=
[]
SITE
=
get_current_site
(
request
)
# FIXME: construct url based on settings?
# SITE = get_current_site(request)
#href = "http://%s" % SITE.domain + request.path
href
=
request
.
path
...
...
Write
Preview
Supports
Markdown
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