Skip to content

Commit

Permalink
fix merge plus better imports for plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Feb 28, 2012
1 parent 593943a commit aa0129d
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions ckan/config/routing.py
Expand Up @@ -16,7 +16,6 @@ def make_map():
"""Create, configure and return the routes Mapper"""
# import controllers here rather than at root level because
# pylons config is initialised by this point.
<<<<<<< HEAD


# Helpers to reduce code clutter
Expand All @@ -27,12 +26,8 @@ def make_map():
GET_POST = dict(method=['GET', 'POST'])
PUT_POST = dict(method=['PUT','POST'])

from ckan.controllers.package import register_pluggable_behaviour as register_package_behaviour
from ckan.controllers.group import register_pluggable_behaviour as register_group_behaviour
=======
from lib.plugins import register_package_plugins as register_package_behaviour
from lib.plugins import register_group_plugins as register_group_behaviour
>>>>>>> master
from lib.plugins import register_package_plugins
from lib.plugins import register_group_plugins

map = Mapper(directory=config['pylons.paths']['controllers'],
always_scan=config['debug'])
Expand Down Expand Up @@ -206,8 +201,8 @@ def make_map():
)
m.connect('group_read', '/group/{id}', action='read')

register_package_behaviour(map)
register_group_behaviour(map)
register_package_plugins(map)
register_group_plugins(map)


# authz group
Expand Down

0 comments on commit aa0129d

Please sign in to comment.