Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
erp5 erp5
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 141
    • Merge requests 141
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • erp5erp5
  • Merge requests
  • !120

Open
Created Jun 01, 2016 by Julien Muchembled@jmOwner
  • Report abuse
Report abuse

ERP5Form: new gadget boolean option to serialize value to JSON

  • Overview 1
  • Commits 1
  • 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
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: gadget-json-value
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7