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
0
Issues
0
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
Titouan Soulard
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
Show 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'
)
:
return
context
.
asURL
()
return
None
if
not
hasattr
(
context
,
'asURL'
):
if
url_dict
:
# 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 @@
</item>
<item>
<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>
<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