[ckan-dev] db_to_form_package_schema returns incomplete schema
Kirstein, Fabian
fabian.kirstein at fokus.fraunhofer.de
Thu Jan 24 13:38:01 UTC 2013
Hi Sean,
I'm not pretty sure if it is a bug, because I don't really understand in what ways the schema is used besides in custom
form extensions. For example in the default_schema the image_url of a group is missing but it is part of default_group_schema.
So it seems those two schemas are combined somehow normally, but not when I'm using db_to_form_schema.
-----Ursprüngliche Nachricht-----
Von: ckan-dev-bounces at lists.okfn.org [mailto:ckan-dev-bounces at lists.okfn.org] Im Auftrag von Sean Hammond
Gesendet: Donnerstag, 24. Januar 2013 10:35
An: ckan-dev at lists.okfn.org
Betreff: Re: [ckan-dev] db_to_form_package_schema returns incomplete schema
> 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
_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org
http://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
More information about the ckan-dev
mailing list