Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • erp5 erp5
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 142
    • Merge requests 142
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • erp5erp5
  • Merge requests
  • !120

ERP5Form: new gadget boolean option to serialize value to JSON

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Julien Muchembled requested to merge gadget-json-value into master Jun 01, 2016
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 3

We have started to use Gadget fields in a project and for most of them, we have to exchange more than 1 text value with the client part. Currently, our TALES expressions are polluted with modules["json"].dumps(...), plus JSON.parse calls on client side.

But the most important change in this commit is that it encourages to use proper serialization when needed (it's a common trap to do quick&dirty serialization, for example by joining/splitting with a particular char).

It's a small change and I doubt there would be a choice than JSON here.

/cc @romain

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: gadget-json-value
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7