Compare commits

...

3 Commits

2 changed files with 4 additions and 3 deletions

View File

@ -39,7 +39,8 @@ class PrivateDatasets(p.SingletonPlugin, tk.DefaultDatasetForm, DefaultPermissio
p.implements(p.IAuthFunctions)
p.implements(p.IConfigurer)
p.implements(p.IBlueprint)
p.implements(p.IRoutes, inherit=True)
#p.implements(p.IRoutes, inherit=True)
p.implements(p.IBlueprint)
p.implements(p.IActions)
p.implements(p.IPackageController, inherit=True)
p.implements(p.ITemplateHelpers)
@ -134,7 +135,7 @@ class PrivateDatasets(p.SingletonPlugin, tk.DefaultDatasetForm, DefaultPermissio
tk.add_template_directory(config, 'templates')
# Register this plugin's fanstatic directory with CKAN.
tk.add_resource(b'fanstatic', b'privatedatasets')
tk.add_resource('fanstatic', 'privatedatasets')
######################################################################
############################# IBLUEPRINT #############################

View File

@ -45,7 +45,7 @@ def acquired_datasets():
return base.render('user/dashboard_acquired.html', extra_vars)
class AcquiredDatasetsControllerUI(base.BaseController):
class AcquiredDatasetsControllerUI():
def acquired_datasets(self):
return acquired_datasets()