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
Frederic Thoma
erp5
Commits
308be58f
Commit
308be58f
authored
Aug 04, 2020
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
erp5_base: support JS interface in Coordinate_asURL
See merge request
nexedi/erp5!1226
parents
61bc472e
c81766ad
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 @
308be58f
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 @
308be58f
...
...
@@ -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