Table of Contents

Class: ISmartProperty ./src/peak/config/interfaces.py

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.

Base Classes   
Interface
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.


Table of Contents

This document was automatically generated on Mon May 6 01:11:03 2024 by HappyDoc version 2.1