Ticket #275 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Add forms renderer for JsonType fixing bugs in admin interface

Reported by: rgrp Owned by: dread
Priority: major Milestone:
Component: ckan Keywords: cost-low
Cc: Repository:
Theme:

Description

This will solve e.g. issues in formalchemy admin interface (which is due to lack of renderer for Json type)

Cost: 0.5h

from ckan.model.types import JsonType

forms.FieldSet.default_renderers[JsonType] = formalchemy.fields.TextFieldRenderer

Change History

comment:1 Changed 4 years ago by rgrp

  • Keywords cost-low added
  • Priority changed from minor to major
  • Milestone set to v1.1

comment:2 follow-up: ↓ 5 Changed 4 years ago by rgrp

  • Milestone v1.1 deleted

Also, now if you visit ckan.net/admin/Package get 500 error and following in logs:

[Mon Aug 02 08:17:35 2010] [error] [client 86.26.8.30] Error - <type 'exceptions.UnicodeEncodeError?'>: 'ascii' codec can't encode character u'
xf4' in position 988: ordinal not in range(128)

comment:3 follow-up: ↓ 4 Changed 4 years ago by pudo

cset:1396 fixes this

comment:4 in reply to: ↑ 3 Changed 4 years ago by pudo

Replying to pudo:

cset:1396 fixes this

Where "this" is the field renderer.

comment:5 in reply to: ↑ 2 Changed 4 years ago by pudo

Replying to rgrp:

Also, now if you visit ckan.net/admin/Package get 500 error and following in logs:

[Mon Aug 02 08:17:35 2010] [error] [client 86.26.8.30] Error - <type 'exceptions.UnicodeEncodeError?'>: 'ascii' codec can't encode character u'
xf4' in position 988: ordinal not in range(128)

Cannot reproduce this at the moment. Will wait for it to occur again and then create another ticket.

comment:6 Changed 4 years ago by pudo

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.