Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roque
erp5
Commits
1a6716c6
Commit
1a6716c6
authored
Jul 22, 2014
by
Romain Courteaud
Committed by
Sebastien Robin
Aug 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add page template info.
+ datetime fix + editorfield support
parent
35e8e4a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.xml
...tal_skins/erp5_hal_json_style/ERP5Document_getHateoas.xml
+11
-1
bt5/erp5_hal_json_style/bt/revision
bt5/erp5_hal_json_style/bt/revision
+1
-1
No files found.
bt5/erp5_hal_json_style/SkinTemplateItem/portal_skins/erp5_hal_json_style/ERP5Document_getHateoas.xml
View file @
1a6716c6
...
...
@@ -111,7 +111,7 @@ def renderField(field, meta_type=None):\n
elif meta_type in ("StringField", "FloatField", "RelationStringField",\n
"MultiRelationStringField", "EmailField", "TextAreaField",\n
"LinesField", "ImageField", "FileField", "IntegerField",\n
"PasswordField"):\n
"PasswordField"
, "EditorField"
):\n
result = {\n
"type": meta_type,\n
"key": field.generate_field_key(),\n
...
...
@@ -324,6 +324,13 @@ def renderFormDefinition(form, response_dict):\n
\n
group_list.append((group[\'gid\'], field_list))\n
response_dict["group_list"] = group_list\n
response_dict["title"] = form.getTitle()\n
response_dict["pt"] = form.pt\n
response_dict["action"] = form.action\n
\n
\n
\n
\n
\n
\n
context.Base_prepareCorsResponse(RESPONSE=response)\n
...
...
@@ -649,6 +656,9 @@ elif mode == \'search\':\n
for select in select_list:\n
property_value = document.getProperty(select, d=None)\n
if property_value is not None:\n
if same_type(property_value, DateTime()):\n
# Serialize DateTime\n
property_value = property_value.rfc822()\n
document_result[select] = property_value\n
result_list.append(document_result)\n
result_dict[\'_embedded\'] = {"contents": result_list}\n
...
...
bt5/erp5_hal_json_style/bt/revision
View file @
1a6716c6
18
\ No newline at end of file
19
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment