[silva-dev] [issue537] use IRoot.isImplementedBy() instead of meta_type=='Silva Root'
silva at issues.infrae.com
Sat Jul 26 16:09:33 CEST 2003
New submission from Clemens Klein-Robbenhaar <clemens at espresto.com>:
Defining a custom variant of a silva Root does not
work out of the box, as there are a few occurences
of direct comparisions detecting the silva root
by checking the meta type when descending the
acquisition hierarchy, namely in Security.py
and the code_element.
This check fails for a custom silva root having
a different meta type. Having a custom root came just up
as a requirement for me becasue I need some extra meta data
for this my root
This issue is mainly a reminder for myself to fix the changes
in Security.py from "obj.meta_type=='Silva Root'" to
To fix the issue for the code element, too, one needs an "implements_root"
method in the SilvaObject to avoid the meta_data comparision
in TTW code, too.
(Well, if this code is not changed by the "user root" issue
title: use IRoot.isImplementedBy() instead of meta_type=='Silva Root'
Silva issue tracker <silva at issues.infrae.com>
More information about the silva-dev