mirror of
https://github.com/yweber/lodel2.git
synced 2026-03-22 11:02:02 +01:00
16 lines
442 B
Python
16 lines
442 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from EditorialModel.model import Model
|
|
from leapi.lefactory import LeFactory
|
|
from EditorialModel.backend.json_backend import EmBackendJson
|
|
from leapi.datasources.ledatasourcesql import LeDataSourceSQL
|
|
|
|
OUTPUT = 'leapi/dyn.py'
|
|
|
|
em = Model(EmBackendJson('EditorialModel/test/me.json'))
|
|
|
|
fact = LeFactory('leapi/dyn.py')
|
|
fact.create_pyfile(em, LeDataSourceSQL, {})
|
|
print(fact.generate_python(em, LeDataSourceSQL, {}))
|
|
|
|
|