mirror of
https://github.com/yweber/lodel2.git
synced 2026-07-29 01:03:28 +02:00
Moving random EM generation methods in a dedicated file
Creating a class RandomEm in EditorialModel/randomem.py
This commit is contained in:
parent
abb700b0c0
commit
ebad5fae54
3 changed files with 179 additions and 165 deletions
|
|
@ -1,6 +1,6 @@
|
|||
from django.core.management.base import BaseCommand, CommandError
|
||||
from optparse import make_option
|
||||
from EditorialModel.model import Model
|
||||
from EditorialModel.randomem import RandomEm
|
||||
from EditorialModel.backend.json_backend import EmBackendJson
|
||||
from EditorialModel.backend.dummy_backend import EmBackendDummy
|
||||
from EditorialModel.backend.graphviz import EmBackendGraphviz
|
||||
|
|
@ -127,7 +127,7 @@ class Command(BaseCommand):
|
|||
|
||||
bj = EmBackendJson(options['output'])
|
||||
|
||||
em = Model.random(EmBackendDummy())
|
||||
em = RandomEm.random_em(EmBackendDummy())
|
||||
bj.save(em)
|
||||
|
||||
if options['dotout']:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue