No subject


Sun Dec 12 18:29:16 UTC 2010


activated via a context option.

So my questions are

1) why are we validating in the logic action gets?

2) why is it not done consistently?

3) what are we going to do with group_show specifically?

Anyone got the answers

Toby

--14dae9341245f932cb04c6a89e3d
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Could someone please clarify the purpose of ckan.lib.navl.dictization_funct=
ions.validate<br><br>My limited understanding was that it is used to valida=
te/clean data used in saving objects via forms/api etc this seems reasonabl=
e even if I don&#39;t like the way that it changes the passed dict - but th=
at&#39;s another story.<br>
<br>It however is also used in some of the show logic actions - related_sho=
w, package_show (only if validate: True is set in the context), most of the=
 follower gets<br><br>It is used in group_show but was being discarded Sean=
&#39;s commit e9b4f65c4014ce4 fixed this but has &#39;broken&#39; the demo =
site as this causes the groups package dict to be stripped from the full pa=
ckage info to just name and title. We were using this to display group pack=
ages on the home page and want the notes.<br>
<br>From my point of view this is a regression and should at minimum be act=
ivated via a context option.<br><br>So my questions are<br><br>1) why are w=
e validating in the logic action gets?<br><br>2) why is it not done consist=
ently?<br>
<br>3) what are we going to do with group_show specifically?<br><br>Anyone =
got the answers<br><br>Toby <br>

--14dae9341245f932cb04c6a89e3d--



More information about the ckan-dev mailing list