denshoproject / ddr-local

Web UI used for interacting with DDR collections and entities on a local machine.
Other
3 stars 0 forks source link

Problem loading topics/facility vocabs #235

Closed gjost closed 6 years ago

gjost commented 6 years ago
Environment:

Request Method: GET
Request URL: http://192.168.56.101/ui/entity/ddr-densho-1000-200-2/edit/

Django Version: 1.7.11
Python Version: 2.7.13
Installed Applications:
('django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'bootstrap_pagination',
 'djcelery',
 'gunicorn',
 'rest_framework',
 'sorl.thumbnail',
 'ddrlocal',
 'storage',
 'webui')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware')

Traceback:
File "/opt/ddr-local/venv/ddrlocal/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  111.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/opt/ddr-local/ddrlocal/webui/decorators.py" in wrapper
  24.         return f(*args, **kwargs)
File "/opt/ddr-local/ddrlocal/webui/views/decorators.py" in inner
  19.         return func(request, *args, **kwargs)
File "/opt/ddr-local/ddrlocal/storage/decorators.py" in inner
  84.         return func(request, *args, **kwargs)
File "/opt/ddr-local/ddrlocal/webui/views/entities.py" in edit
  502.     topics_terms = tagmanager_terms('topics')
File "/opt/ddr-local/ddrlocal/webui/views/entities.py" in tagmanager_terms
  70.         vocab = vocab_terms(fieldname)
File "/opt/ddr-local/ddrlocal/webui/views/entities.py" in vocab_terms
  57.             path_url = settings.VOCAB_TERMS_URL % fieldname

Exception Type: TypeError at /ui/entity/ddr-densho-1000-200-2/edit/
Exception Value: not all arguments converted during string formatting
gjost commented 6 years ago

Fixed in commit 4e9898d.