From 60ef6cc2b430141a37bd80ab8328b68e7ac4d9e7 Mon Sep 17 00:00:00 2001 From: gwen Date: Tue, 20 Nov 2012 09:15:29 +0100 Subject: [PATCH] doc --- doc/code2html | 2 ++ doc/configapi.txt | 1 - tiramisu/option.py | 12 ------------ 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/doc/code2html b/doc/code2html index 2c3f388..e0d69e2 100755 --- a/doc/code2html +++ b/doc/code2html @@ -48,6 +48,8 @@ def parse_module(module): # classes = [(cls, value) for cls, value in getattr(module, '__dict__').items() if value == types.ClassType] classes = getmembers(module, isclass) for name, obj in classes: + print module.__name__ + print obj write_source(module.__name__ + '.' + name, getsource(obj)) # methods = [(meth, value) for meth, value in getattr(obj, '__dict__').items() if type(value) == types.MethodType] methods = getmembers(obj, ismethod) diff --git a/doc/configapi.txt b/doc/configapi.txt index 4e73061..a6f59d2 100644 --- a/doc/configapi.txt +++ b/doc/configapi.txt @@ -7,7 +7,6 @@ Config API Details :test cases: - :api:`test_config_api.py` - :api:`test_config_big_example.py` - The handling of options is split into two parts: the description of which options are available, what their possible values and defaults are and how they are organized into a tree. A specific choice of options is diff --git a/tiramisu/option.py b/tiramisu/option.py index 259825b..7f7fd32 100644 --- a/tiramisu/option.py +++ b/tiramisu/option.py @@ -373,18 +373,6 @@ class NetmaskOption(Option): # by now the validation is nothing but a string, use IPy instead return isinstance(value, str) -#class ArbitraryOption(Option): -# def __init__(self, name, doc, default=None, defaultfactory=None, -# requires=None, multi=False, mandatory=False): -# super(ArbitraryOption, self).__init__(name, doc, requires=requires, -# multi=multi, mandatory=mandatory) -# self.defaultfactory = defaultfactory -# if defaultfactory is not None: -# assert default is None - -# def _validate(self, value): -# return True - class OptionDescription(HiddenBaseType, DisabledBaseType): "Config's schema (organisation) and container of Options" "the group_type is an attribute useful for iteration on groups in a config"