WIP: Expand the developer documentation #27

Draft
gremond wants to merge 189 commits from develop into developer_docs
Showing only changes of commit c8d5656094 - Show all commits

View file

@ -37,9 +37,7 @@ class Rougail(UserDatas):
self.converted = RougailConvert(self.rougailconfig) self.converted = RougailConvert(self.rougailconfig)
self.config = None self.config = None
def run(self): def get_root_option(self):
"""Get Tiramisu Config"""
if not self.config:
tiram_obj = self.converted.save() tiram_obj = self.converted.save()
optiondescription = {} optiondescription = {}
custom_types = { custom_types = {
@ -47,8 +45,13 @@ class Rougail(UserDatas):
for custom in self.rougailconfig["custom_types"].values() for custom in self.rougailconfig["custom_types"].values()
} }
exec(tiram_obj, custom_types, optiondescription) # pylint: disable=W0122 exec(tiram_obj, custom_types, optiondescription) # pylint: disable=W0122
return optiondescription["option_0"]
def run(self):
"""Get Tiramisu Config"""
if not self.config:
self.config = Config( self.config = Config(
optiondescription["option_0"], self.get_root_option(),
display_name=tiramisu_display_name, display_name=tiramisu_display_name,
) )
self.config.property.read_write() self.config.property.read_write()