WIP: Expand the developer documentation #27
2 changed files with 7 additions and 0 deletions
|
@ -129,6 +129,8 @@ class Annotator(Walk):
|
||||||
family.dynamic.variable,
|
family.dynamic.variable,
|
||||||
family.path,
|
family.path,
|
||||||
)
|
)
|
||||||
|
if family.version == '1.0' and "{{ suffix }}" in path:
|
||||||
|
path = path.replace("{{ suffix }}", "{{ identifier }}")
|
||||||
self.objectspace.informations.add(family.path, "dynamic_variable", path)
|
self.objectspace.informations.add(family.path, "dynamic_variable", path)
|
||||||
|
|
||||||
def change_modes(self):
|
def change_modes(self):
|
||||||
|
|
|
@ -26,12 +26,16 @@ You should have received a copy of the GNU Lesser General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
from sys import version_info
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from tiramisu import Config
|
from tiramisu import Config
|
||||||
from ruamel.yaml import YAML
|
from ruamel.yaml import YAML
|
||||||
from .utils import _, load_modules, normalize_family
|
from .utils import _, load_modules, normalize_family
|
||||||
from .convert import RougailConvert
|
from .convert import RougailConvert
|
||||||
|
|
||||||
|
if version_info.major == 3 and version_info.minor:
|
||||||
|
import rougail.structural_commandline.object_model
|
||||||
|
|
||||||
RENAMED = {
|
RENAMED = {
|
||||||
"dictionaries_dir": "main_dictionaries",
|
"dictionaries_dir": "main_dictionaries",
|
||||||
|
@ -184,6 +188,7 @@ class FakeRougailConvert(RougailConvert):
|
||||||
self.internal_functions = []
|
self.internal_functions = []
|
||||||
self.force_optional = False
|
self.force_optional = False
|
||||||
self.plugins = ["structural_commandline"]
|
self.plugins = ["structural_commandline"]
|
||||||
|
self.user_datas = []
|
||||||
self.add_extra_options = self.add_extra_options
|
self.add_extra_options = self.add_extra_options
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue