AutocompleteInputWidget - more powerful configuration for typeahead.js#413
AutocompleteInputWidget - more powerful configuration for typeahead.js#413dairiki wants to merge 2 commits intoPylons:mainfrom
Conversation
This parameter provides an alternative, more powerful (though hairy) means of configuring typeahead.js, providing access to the complete feature set of the plugin.
|
Some comments extracted/duplicated from PR #185 Problem: I had been relying on a hack to support JSON-esque serialization of values containing literal javascript using json.JSONEncoder from python’s standard library. It seems that my hack is not feasible in any version of python after 2.6 (). (My hack involved overriding JSONEncoder._iterencode, which does not exist in python >= 2.7.) My hacked up version of I see two ways forward:
@stevepiercy responded:
No, I think this is a different problem. At the root is the fact that we want to be able to serialize python data structures to javascript expressions which are not necessarily valid JSON. E.g. one would like to be able to include javascript function expressions, as well as function and variable names in the serialized result. |
This is a redo of PR #185, rebased onto the current master branch.