Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ckanext-odsh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open-Data
ckanext-odsh
Commits
70d7cefe
Commit
70d7cefe
authored
2 years ago
by
Thorge Petersen
Browse files
Options
Downloads
Patches
Plain Diff
Removed legacy route interferring with resource crud routes
parent
8e6ef16b
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!41
Version 2.0.0
,
!38
Merge py3 into dev
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ckanext/odsh/plugin.py
+8
-8
8 additions, 8 deletions
ckanext/odsh/plugin.py
with
8 additions
and
8 deletions
ckanext/odsh/plugin.py
+
8
−
8
View file @
70d7cefe
...
@@ -20,12 +20,12 @@ import ckanext.odsh.validation as validation
...
@@ -20,12 +20,12 @@ import ckanext.odsh.validation as validation
import
ckanext.odsh.search
as
search
import
ckanext.odsh.search
as
search
import
ckanext.odsh.tools
as
tools
import
ckanext.odsh.tools
as
tools
from
ckanext.odsh.views
import
default
from
ckanext.odsh.views
import
default
from
ckanext.odsh.views
import
package
#
from ckanext.odsh.views import package
from
ckanext.odsh.views
import
user
from
ckanext.odsh.views
import
user
from
ckanext.odsh.views
import
dashboard
from
ckanext.odsh.views
import
dashboard
from
ckanext.odsh.views
import
harvest
from
ckanext.odsh.views
import
harvest
from
ckanext.odsh.views
import
feed
from
ckanext.odsh.views
import
feed
from
ckanext.dcat
import
blueprints
as
dcat_view
#
from ckanext.dcat import blueprints as dcat_view
log
=
logging
.
getLogger
(
__name__
)
log
=
logging
.
getLogger
(
__name__
)
...
@@ -63,11 +63,11 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
...
@@ -63,11 +63,11 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
# bp_default.add_url_rule('/catalog.<any("xml", "rdf", "n3", "ttl", "jsonld"):_format>', view_func=dcat_view.read_catalog, defaults={'_format': 'xml'}, methods=['GET'])
# bp_default.add_url_rule('/catalog.<any("xml", "rdf", "n3", "ttl", "jsonld"):_format>', view_func=dcat_view.read_catalog, defaults={'_format': 'xml'}, methods=['GET'])
# Package
# Package
bp_package
=
package
.
blueprint
#
bp_package = package.blueprint
rules
=
[
#
rules = [
(
'
/dataset/<id>/resource/<resource_id>
'
,
'
redirect_dataset_resource
'
,
package
.
redirect_dataset_resource
),
]
#
('/dataset/<id>/resource/<resource_id>', 'redirect_dataset_resource', package.redirect_dataset_resource), ]
for
rule
in
rules
:
#
for rule in rules:
bp_package
.
add_url_rule
(
*
rule
)
#
bp_package.add_url_rule(*rule)
# User
# User
bp_user
=
user
.
blueprint
bp_user
=
user
.
blueprint
...
@@ -99,7 +99,7 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
...
@@ -99,7 +99,7 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm
bp_feed
=
feed
.
blueprint
bp_feed
=
feed
.
blueprint
bp_feed
.
add_url_rule
(
u
'
/feeds/custom.atom
'
,
methods
=
[
u
'
GET
'
],
view_func
=
feed
.
custom
)
bp_feed
.
add_url_rule
(
u
'
/feeds/custom.atom
'
,
methods
=
[
u
'
GET
'
],
view_func
=
feed
.
custom
)
return
[
bp_default
,
bp_package
,
bp_user
,
bp_dashboard
,
bp_harvest
,
bp_feed
]
return
[
bp_default
,
bp_user
,
bp_dashboard
,
bp_harvest
,
bp_feed
]
#bp_package
# IActions
# IActions
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment