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
c81766ad
Commit
c81766ad
authored
Jul 31, 2020
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_base: support JS interface in Coordinate_asURL
parent
b6462ae3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Coordinate_asURL.py
...inTemplateItem/portal_skins/erp5_base/Coordinate_asURL.py
+14
-3
bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Coordinate_asURL.xml
...nTemplateItem/portal_skins/erp5_base/Coordinate_asURL.xml
+1
-1
No files found.
bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Coordinate_asURL.py
View file @
c81766ad
if
hasattr
(
context
,
'asURL'
)
:
if
not
hasattr
(
context
,
'asURL'
):
return
context
.
asURL
()
if
url_dict
:
return
None
# new JS interface needs dict
return
{}
return
None
if
url_dict
:
return
{
'command'
:
'raw'
,
'options'
:
{
'url'
:
context
.
asURL
()
}
}
return
context
.
asURL
()
bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Coordinate_asURL.xml
View file @
c81766ad
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
brain, selection=None, selection_name=None, **kwd
</string>
</value>
<value>
<string>
brain,
url_dict=False,
selection=None, selection_name=None, **kwd
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
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