This was fixed in rev 628973. You're probably porting against a much older
revision.
On Thu, Feb 28, 2008 at 4:05 AM, Chris Chabot <[EMAIL PROTECTED]> wrote:
> While going over the code in JsonRPCRequest.java, i found this bit,
> now it might be my Java reading abilities failing me, but I'm under
> the distinct impression that all this code does is add an empty
> "prefs" json object to the response, and the actual userperfs (which
> are put in up) are never used or included .... meaning their not in
> the json response at all.
>
> Should i duplicate this behavior (because their being excluded is
> intentional), is it a bug, or am i missing something obvious?
>
> JsonRPCRequest.java line 84:
>
> JSONObject prefs = new JSONObject();
>
> // User pref specs
> for (GadgetSpec.UserPref pref : outGadget.getUserPrefs()) {
> JSONObject up = new JSONObject()
> .put("displayName", pref.getDisplayName())
> .put("type", pref.getDataType().toString().toLowerCase())
> .put("default", pref.getDefaultValue())
> .put("enumValues", pref.getEnumValues());
> }
> gadgetJson.put("userPrefs", prefs);
>
>
--
~Kevin
If you received this email by mistake, please delete it, cancel your mail
account, destroy your hard drive, silence any witnesses, and burn down the
building that you're in.