diff options
Diffstat (limited to 'doc/server/plugins/connectors/properties.txt')
-rw-r--r-- | doc/server/plugins/connectors/properties.txt | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/doc/server/plugins/connectors/properties.txt b/doc/server/plugins/connectors/properties.txt index fa8bfd884..707de0880 100644 --- a/doc/server/plugins/connectors/properties.txt +++ b/doc/server/plugins/connectors/properties.txt @@ -14,8 +14,8 @@ Enabling Properties First, ``mkdir /var/lib/bcfg2/Properties``. Each property XML file goes in this directory. Each will automatically be cached by the server, -and reread/reparsed upon changes. Add **Properties** to your ``plugins`` -line in ``/etc/bcfg2.conf``. +and reread/reparsed upon changes. Add **Properties** to your `plugins` +line in `/etc/bcfg2.conf`. Data Structures =============== @@ -27,9 +27,9 @@ contain parsed XML data as the "data" attribute. Usage ===== -Specific property files can be referred to in -templates as metadata.Properties[<filename>]. The -data attribute is an LXML element object. (Documented +Specific property files can be referred to in templates as +metadata.Properties[<filename>]. The data attribute is an LXML element object. +(Documented `here <http://codespeak.net/lxml/tutorial.html#the-element-class>`_) Currently, no access methods are defined for this data, but as we @@ -39,8 +39,6 @@ as methods. This will simplify templates. Accessing Properties contest from TGenshi ========================================= -Access contents of ``Properties/auth.xml`` - -:: +Access contents of `Properties/auth.xml` :: ${metadata.Properties['auth.xml'].data.find('file').find('bcfg2.key').text} |