]> git.llucax.com Git - software/pymin.git/blobdiff - pymin/services/util.py
Fix ConfigWriter class documentation.
[software/pymin.git] / pymin / services / util.py
index c3579c7138b553523307cc1bb95d5c6b97eb7bc6..00f238535416dbb8b14947fc5fae2d26c26c45d4 100644 (file)
@@ -362,7 +362,7 @@ class Restorable(Persistent):
             return False
 
 class ConfigWriter:
             return False
 
 class ConfigWriter:
-    r"""ConfigWriter([initd_name[, initd_dir]]) -> ConfigWriter.
+    r"""ConfigWriter([files[, cfg_dir[, tpl_dir]]]) -> ConfigWriter.
 
     This is a helper class to inherit from to automatically handle
     configuration generation. Mako template system is used for configuration
 
     This is a helper class to inherit from to automatically handle
     configuration generation. Mako template system is used for configuration
@@ -918,7 +918,7 @@ class ContainerSubHandler(SubHandler):
         log.debug(u'ContainerSubHandler.clear()')
         # FIXME broken really, no _delete attribute is setted :S
         if isinstance(self._attr(), dict):
         log.debug(u'ContainerSubHandler.clear()')
         # FIXME broken really, no _delete attribute is setted :S
         if isinstance(self._attr(), dict):
-            self._attr.clear()
+            self._attr().clear()
         else:
             self._attr(list())
 
         else:
             self._attr(list())