[ckan-dev] db_to_form_package_schema returns incomplete schema

Sean Hammond sean.hammond at okfn.org
Thu Jan 24 09:35:07 UTC 2013


> I'm using the db_to_form_schema to manipulate the schema to display
> custom  fields. The schema comes from method
> db_to_form_package_schema().  It seems that this schema is not
> complete. Because some data fields are missing in the rendered page,
> e.g. information about licenses, meta data of the groups, etc.  It
> just includes the fields defined in the schema.py. So if I want that
> the page is displayed properly I have to add those fields again
> manually: schema.update({ 'license_url': [], })

db_to_form_package_schema() should be complete, if you've found anything
missing from it you've found a bug. It would be really helpful if you
could compile a list of what seems to be missing and open a github issue
for this, as we need to fix this for the CKAN 2.0 release.

Thanks




More information about the ckan-dev mailing list