An property value that itself should be treated as a rule
Objects that implement this interface will have their computeProperty()
method called when they are used as the return value of an .ini-file
property definition. For example: [myapp.settings]
foo.* = SomeRuleObject()
If SomeRuleObject() implements ISmartProperty , the return value of its
computeProperty() method is returned as the value of any properties
requested from the myapp.settings.foo.* property namespace.
Methods
|
|
computeProperty
|
|
computeProperty
|
computeProperty (
propertyMap,
name,
prefix,
suffix,
targetObject,
)
Retrieve property rulePrefix+propertySuffix from propertyMap
This is basically the same as IRule.__call__ , except that the key
must be a property name (name ), and it is also broken into a prefix
for the name under which the rule was defined, and the suffix ,
if any.
|
|