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
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
5176fff1
Commit
5176fff1
authored
Jan 09, 2018
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs_support_request, erp5_post: Do not use catalog API to resolve paths.
parent
ba9a1418
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
bt5/erp5_officejs_support_request_ui/SkinTemplateItem/portal_skins/erp5_officejs_support_request/PostModule_createHTMLPostForSupportRequest.py
...ort_request/PostModule_createHTMLPostForSupportRequest.py
+2
-2
bt5/erp5_post/SkinTemplateItem/portal_skins/erp5_post/PostModule_createHTMLPost.py
...eItem/portal_skins/erp5_post/PostModule_createHTMLPost.py
+1
-5
No files found.
bt5/erp5_officejs_support_request_ui/SkinTemplateItem/portal_skins/erp5_officejs_support_request/PostModule_createHTMLPostForSupportRequest.py
View file @
5176fff1
follow_up_object
,
=
context
.
getPortalObject
().
portal_catalog
(
relative_url
=
follow_up
,
limit
=
1
)
context
.
getPortalObject
().
restrictedTraverse
(
follow_up
).
edit
()
# update modification date
follow_up_object
.
edit
()
# update modification date
post
=
context
.
PostModule_createHTMLPostFromText
(
post
=
context
.
PostModule_createHTMLPostFromText
(
follow_up
=
follow_up
,
follow_up
=
follow_up
,
data
=
data
,
data
=
data
,
...
...
bt5/erp5_post/SkinTemplateItem/portal_skins/erp5_post/PostModule_createHTMLPost.py
View file @
5176fff1
...
@@ -3,14 +3,10 @@ portal = context.getPortalObject()
...
@@ -3,14 +3,10 @@ portal = context.getPortalObject()
# create an HTML Post
# create an HTML Post
post_module
=
portal
.
post_module
post_module
=
portal
.
post_module
# get the related object
follow_up_object
,
=
portal
.
portal_catalog
(
relative_url
=
follow_up
,
limit
=
2
)
follow_up_object
=
follow_up_object
.
getObject
()
now
=
DateTime
()
now
=
DateTime
()
post_edit_kw
=
{
post_edit_kw
=
{
"start_date"
:
now
,
"start_date"
:
now
,
"follow_up_value"
:
follow_up_object
,
"follow_up_value"
:
context
.
getPortalObject
().
restrictedTraverse
(
follow_up
)
,
"text_content"
:
data
,
"text_content"
:
data
,
}
}
if
predecessor
is
not
None
:
if
predecessor
is
not
None
:
...
...
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