def _some_namespaces(self): """set up some namespaces""" n = Namespace(doc='top') n.add_option( 'aaa', '2011-05-04T15:10:00', 'the a', short_form='a', from_string_converter=datetime_from_ISO_string ) n.c = Namespace(doc='c space') n.c.add_option( 'dwight', 'stupid, deadly', 'husband from Flintstones' ) n.c.add_option('wilma', "waspish's", 'wife from Flintstones') n.d = Namespace(doc='d space') n.d.add_option('dwight', "crabby", 'male neighbor from I Love Lucy') n.d.add_option( 'ethel', 'silly', 'female neighbor from I Love Lucy' ) n.x = Namespace(doc='x space') n.x.add_option('size', 100, 'how big in tons', short_form='s') n.x.add_option('password', 'secret "message"', 'the password') return n
def _some_namespaces(self): """set up some namespaces""" n = Namespace(doc='top') n.add_option('aaa', '2011-05-04T15:10:00', 'the a', short_form='a', from_string_converter=datetime_from_ISO_string) n.c = Namespace(doc='c space') n.c.add_option( 'fred', 'stupid', # deliberate whitespace to test that it gets stripped ' husband from Flintstones ') n.c.add_option('wilma', 'waspish', 'wife from Flintstones') n.c.e = Namespace(doc='e space') n.c.e.add_option('dwight', default=97, doc='my uncle') n.c.add_option('dwight', default=98, doc='your uncle') n.d = Namespace(doc='d space') n.d.add_option('fred', 'crabby', 'male neighbor from I Love Lucy') n.d.add_option('ethel', 'silly', 'female neighbor from I Love Lucy') n.x = Namespace(doc='x space') n.x.add_option('size', 100, 'how big in tons', short_form='s') n.x.add_option('password', 'secret', 'the password') return n
def _some_namespaces(self): """set up some namespaces""" n = Namespace(doc='top') n.add_option( 'aaa', '2011-05-04T15:10:00', 'the a', short_form='a', from_string_converter=datetime_from_ISO_string ) n.c = Namespace(doc='c space') n.c.add_option( 'fred', 'stupid', # deliberate whitespace to test that it gets stripped ' husband from Flintstones ' ) n.c.add_option('wilma', 'waspish', 'wife from Flintstones') n.c.e = Namespace(doc='e space') n.c.e.add_option( 'dwight', default=97, doc='my uncle' ) n.c.add_option( 'dwight', default=98, doc='your uncle' ) n.d = Namespace(doc='d space') n.d.add_option('fred', 'crabby', 'male neighbor from I Love Lucy') n.d.add_option( 'ethel', 'silly', 'female neighbor from I Love Lucy' ) n.x = Namespace(doc='x space') n.x.add_option('size', 100, 'how big in tons', short_form='s') n.x.add_option('password', 'secret', 'the password') return n