簡體   English   中英

一些粘貼程序命令在ckan 2.7.3中不起作用

[英]Some paster command not working in ckan 2.7.3

嘗試在以下位置使用信息:

http://docs.ckan.org/en/ckan-1.4.3/authorization.html

創建用戶並將角色分配給特定程序包,並且命令權限不起作用。

例如:

paster --plugin=ckan rights -c /etc/ckan/default/development.ini list

我得到錯誤:

Command 'rights' not known (you may need to run setup.py egg_info)
Known commands:
  celeryd           Celery daemon [DEPRECATED]
  check-po-files    Check po files for common mistakes
  color             Create or remove a color scheme.
  config-tool       Tool for editing options in a CKAN config file
  create            Create the file layout for a Python distribution
  create-test-data  Create test data in the database.
  datapusher        Perform commands in the datapusher
  dataset           Manage datasets
  datastore         Perform commands to set up the datastore
  db                Perform various tasks on the database.
  exe               Run #! executable files
  front-end-build   Creates and minifies css and JavaScript files
  help              Display help
  jobs              Manage background jobs
  less              Compile all root less documents into their CSS counterparts
  make-config       Install a package and create a fresh config file/directory
  minify            Create minified versions of the given Javascript and CSS files.
  notify            Send out modification notifications.
  plugin-info       Provide info on installed plugins.
  points            Show information about entry points
  post              Run a request for the described application
  profile           Code speed profiler
  ratings           Manage the ratings stored in the db
  rdf-export        Export active datasets as RDF
  request           Run a request for the described application
  search-index      Creates a search index for all datasets
  serve             Serve the described application
  setup-app         Setup an application, given a config file
  sysadmin          Gives sysadmin rights to a named user
  tracking          Update tracking statistics
  trans             Translation helper functions
  user              Manage users
  views             Manage resource views.

但是如果我創建這樣的用戶:

paster sysadmin add seanh -c /etc/ckan/default/development.ini

工作正常,所以我認為問題出在我的環境中。

注意:

Centos 7.4
ckan 2.7.3

謝謝

在遷移到CKAN 2.X時不贊成使用“權限”,並且刪除了paster命令。

在CKAN 2.0中,權限是按組織和組進行組織的。 這是一種簡化,可以滿足最常見的用例。

但是,如果您需要控制單個數據集(而不是組織/組中的所有數據集)的用戶權限,則該數據集需要在組織或組中獨立存在。 或者,您可以使用IAuthFunctions自定義身份驗證系統。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM