[ckan-dev] new extra-field

Crossbreed Crossbreed at sms.at
Sun Oct 7 18:23:06 UTC 2012


<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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20121007/f87a9252/attachment-0001.html>


More information about the ckan-dev mailing list