Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
MJU-POPS
ckanext-archiver
Commits
7b649300
Commit
7b649300
authored
Apr 19, 2016
by
David Read
Browse files
OrderedDict has been moved in core ckan, so just import it explicitly.
parent
edbb0d04
Changes
2
Hide whitespace changes
Inline
Side-by-side
ckanext/archiver/commands.py
View file @
7b649300
...
...
@@ -8,9 +8,12 @@ import itertools
import
ckan.plugins
as
p
from
pylons
import
config
try
:
from
collections
import
OrderedDict
# from python 2.7
except
ImportError
:
from
sqlalchemy.util
import
OrderedDict
from
ckan.lib.cli
import
CkanCommand
from
ckan.lib.helpers
import
OrderedDict
REQUESTS_HEADER
=
{
'content-type'
:
'application/json'
}
...
...
ckanext/archiver/reports.py
View file @
7b649300
import
copy
try
:
from
collections
import
OrderedDict
# from python 2.7
except
ImportError
:
from
sqlalchemy.util
import
OrderedDict
import
ckan.model
as
model
import
ckan.plugins
as
p
from
ckan.lib.helpers
import
OrderedDict
from
ckanext.report
import
lib
def
broken_links
(
organization
,
include_sub_organizations
=
False
):
...
...
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