git://git.onelab.eu
/
unfold.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup between plugin.name and plugin.uuid
[unfold.git]
/
engine
/
composite.py
diff --git
a/engine/composite.py
b/engine/composite.py
index
2560d99
..
6d6ceec
100644
(file)
--- a/
engine/composite.py
+++ b/
engine/composite.py
@@
-15,8
+15,8
@@
class Composite (Plugin):
# this is designed so as to support a template like
# {% for son in sons %} {{ son.rendered }} ...
def is_active (son):
# this is designed so as to support a template like
# {% for son in sons %} {{ son.rendered }} ...
def is_active (son):
-# print 'comparing >%s< and >%s<'%(son.
name
,self.active)
- return son.
name
==self.active
+# print 'comparing >%s< and >%s<'%(son.
domid
,self.active)
+ return son.
domid
==self.active
ranks=range(len(self.sons))
env = { 'sons':
[ { 'rendered': son.render(request),
ranks=range(len(self.sons))
env = { 'sons':
[ { 'rendered': son.render(request),
@@
-24,8
+24,7
@@
class Composite (Plugin):
'active': is_active(son),
# this should probably come from son._settings..
'title': son.title,
'active': is_active(son),
# this should probably come from son._settings..
'title': son.title,
- 'name': son.name,
- 'uuid': son.uuid,
+ 'domid': son.domid,
'classname': son.classname,
}
for (son,rank) in zip(self.sons,ranks) ]}
'classname': son.classname,
}
for (son,rank) in zip(self.sons,ranks) ]}