[ckan-dev] new extra-field

Sean Hammond sean.hammond at okfn.org
Mon Oct 8 09:03:46 UTC 2012


Hmm. It could be that there's a complication when saving lists. If you
can post a complete example then I can try it out and try to see what's
happening

On Sun, Oct 07, 2012 at 08:23:06PM +0200, Crossbreed wrote:
> <html><body><div>
> <p>sorry - the integrity error was not reported by ckan. so, now i have the following schema:</p>
> <p>db_to_form_schema:</p>
> <p>            schema.update({</p>
> <p>             ...</p>
> <p>            'education': {<br />                'id': [ignore_missing, unicode]<br />            } }</p>
> <p>form_to_db_schema:</p>
> <p>            schema.update({</p>
> <p>             ...</p>
> <p>              'education': {<br />                             'id': [ignore_missing, unicode]<br />                            }}</p>
> <p> </p>
> <p>When I print the data_dict in the _save_edit-method, the field and the value of the field are shown correctly. However, the field and the value of the field are not saved (also no value and field in the rest-api of the package). What could be wrong with my schema? I hope you can help me!</p>
> <p>(I have a lot of other extra-fields which are saved and shown correctly. The problem of this specific field is that I need to save a list (like groups)). </p>
> <p>kind regards!</p>
> <p> </p>
> <p>On Thu, Oct 04, 2012 at 06:30:17AM +0200, Sean Hammond wrote:</p>
> <p>Can you post the full Python traceback?</p>
> <p>I'm not sure if you should have '__extras': [ignore] in your schema, and also your schema should be based on default_package_schema or default_group_schema (see how it's done in the example I linked to)</p>
> </div><br/><br/><hr/>Schau dir gleich die Seite von hsdf an! <a href="http://my.sms.at/crossbreed/" target="profil_sms_at">http://my.sms.at/crossbreed/</a><br/><hr/>Dein Eventkalender auf sms.at! Events anlegen, Freunde einladen & kein Top-Event mehr verpassen! <a href="http://www.sms.at/events/">http://www.sms.at/events/</a><br/></body></html>




More information about the ckan-dev mailing list