Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Не може да се задават имена на кирилица при създаване на потребители през commandline #9

Open
antitoxic opened this issue Apr 2, 2015 · 0 comments
Labels

Comments

@antitoxic
Copy link
Contributor

При извикването на:

paster --plugin=ckan user add "ivan_ivanov" email="[email protected]" name="Иван Иванов" password="eiw4Af8loo1Aiwe7" -c /ckan/config/production.ini

Се получава:

Creating user: 'ivan_ivanov'
Traceback (most recent call last):
  File "/var/www/ckan/virtualenv/bin/paster", line 9, in <module>
    load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
  File "/var/www/ckan/virtualenv/local/lib/python2.7/site-packages/paste/script/command.py", line 104, in run
    invoke(command, command_name, options, args[1:])
  File "/var/www/ckan/virtualenv/local/lib/python2.7/site-packages/paste/script/command.py", line 143, in invoke
    exit_code = runner.run(args)
  File "/var/www/ckan/virtualenv/local/lib/python2.7/site-packages/paste/script/command.py", line 238, in run
    result = self.command()
  File "/var/www/ckan/virtualenv/src/ckan/ckan/lib/cli.py", line 779, in command
    self.add()
  File "/var/www/ckan/virtualenv/src/ckan/ckan/lib/cli.py", line 883, in add
    user_dict = logic.get_action('user_create')(context, data_dict)
  File "/var/www/ckan/virtualenv/src/ckan/ckan/logic/__init__.py", line 424, in wrapped
    result = _action(context, data_dict, **kw)
  File "/var/www/ckan/virtualenv/src/ckan/ckan/logic/action/create.py", line 1004, in user_create
    data, errors = _validate(data_dict, schema, context)
  File "/var/www/ckan/virtualenv/src/ckan/ckan/lib/navl/dictization_functions.py", line 238, in validate
    converted_data, errors = _validate(flattened, schema, validators_context)
  File "/var/www/ckan/virtualenv/src/ckan/ckan/lib/navl/dictization_functions.py", line 299, in _validate
    convert(converter, key, converted_data, errors, context)
  File "/var/www/ckan/virtualenv/src/ckan/ckan/lib/navl/dictization_functions.py", line 179, in convert
    value = converter(converted_data.get(key))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant