Nuxeo mailing list archives
[Nuxeo-tickets] Re: [Nuxeo Repository] #1841: CPSTreeViewEditor has
problems with identical node ids
Nuxeo Repository
trac at nuxeo.com
Tue Sep 18 23:07:53 CEST 2007
#1841: CPSTreeViewEditor has problems with identical node ids
-------------------------------+--------------------------------------------
Reporter: mschulz at webgis.de | Owner: jmorliaguet
Type: defect | Status: closed
Priority: P2 | Milestone: CPS 3.4.5
Component: CPSPortlets | Version: TRUNK
Severity: normal | Resolution: worksforme
Keywords: |
-------------------------------+--------------------------------------------
Changes (by mschulz at webgis.de):
* resolution: => worksforme
* status: new => closed
Comment:
I have solved my problems using the following fix. This is against cps
3.4.3:
diff tree_macros.pt tree_macros.pt.orig
6c6
< tal:attributes="id python:'load-caller-%s' % node['safe_url'];
---
> tal:attributes="id python:'load-caller-%s' % node['id'];
15c15
< tal:attributes="id python:'load-caller-%s' % node['safe_url'];
---
> tal:attributes="id python:'load-caller-%s' % node['id'];
33c33
< <div class="load-area" tal:attributes="id python:'load-area-%s' %
node['safe_url']"
---
> <div class="load-area" tal:attributes="id python:'load-area-%s' %
node['id']"
39c39
< <div class="load-area" tal:attributes="id python:'load-area-%s' %
node['safe_url']">
---
> <div class="load-area" tal:attributes="id python:'load-area-%s' %
node['id']">
By using the safe-url also for the load-area ids Treeview can handle nodes
with identical ids.
--
Ticket URL: <http://svn.nuxeo.org/trac/pub/ticket/1841>
Nuxeo Repository <http://www.cps-project.org/>
Nuxeo Repository
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.