Без опису
Ви не можете вибрати більше 25 тем Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516
  1. # -*- coding: utf-8 -*-
  2. from EditorialModel.model import Model
  3. from leapi.lefactory import LeFactory
  4. from EditorialModel.backend.json_backend import EmBackendJson
  5. from leapi.datasources.ledatasourcesql import LeDataSourceSQL
  6. OUTPUT = 'leapi/dyn.py'
  7. em = Model(EmBackendJson('EditorialModel/test/me.json'))
  8. fact = LeFactory('leapi/dyn.py')
  9. fact.create_pyfile(em, LeDataSourceSQL, {})
  10. print(fact.generate_python(em, LeDataSourceSQL, {}))