1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-10-25 18:29:02 +02:00

Bugfix in utility script

This commit is contained in:
Yann 2016-05-25 10:37:39 +02:00
commit 2628e67982
7 changed files with 41 additions and 24 deletions

View file

@ -1,7 +1,9 @@
#!/usr/bin/python3
#-*- coding: utf-8 -*-
from lodel.settings.settings import Settings as SettingsHandler
SettingsHandler('globconf.d')
from lodel.settings.settings import Settings as settings
settings('globconf.d')
from lodel.settings import Settings
from lodel.editorial_model.components import *
from lodel.editorial_model.exceptions import *
@ -204,14 +206,14 @@ section.new_field( 'childs',
display_name = 'Next section',
group = editorial_group,
data_handler = 'hierarch',
allowed_class = [subsection],
allowed_classes = [subsection],
back_reference = ('subsection', 'parent'))
subsection.new_field( 'parent',
display_name = 'Parent',
group = editorial_group,
data_handler = 'link',
allowed_class = [section])
allowed_classes = [section])
#####################
# Persons & authors #
@ -286,4 +288,5 @@ text.new_field( 'linked_persons',
group = editorial_person_group,
)
#em.save('xmlfile', filename = 'examples/em_test.xml')
em.save('picklefile', filename = 'examples/em_test.pickle')

Binary file not shown.

View file

@ -1,10 +0,0 @@
[lodel2]
plugins_path = plugins
[lodel2.editorialmodel]
emfile = examples/em_test.pickle
emtranslator = picklefile
dyncode = lodel/leapi/dyncode.py
editormode = True
groups =

17
globconf.d/lodel2.ini Normal file
View file

@ -0,0 +1,17 @@
[lodel2]
debug = False
sitename = noname
plugins_path = plugins
plugins = dummy, webui
[lodel2.logging.stderr]
level = DEBUG
filename = -
context = True
[lodel2.editorialmodel]
groups =
emfile = examples/em_test.pickle
dyncode = leapi_dyncode.py
editormode = True

View file

@ -1,10 +0,0 @@
[lodel2.logging.stderr]
level = INFO
context = False
[lodel2.logging.logfile]
level = DEBUG
context = True
filename = /tmp/lodel2.log
maxbytes = 4096
backupcount = 1

Binary file not shown.

View file

@ -0,0 +1,17 @@
[lodel2]
debug = False
sitename = noname
plugins_path = plugins
plugins = dummy, webui
[lodel2.logging.stderr]
level = DEBUG
filename = -
context = True
[lodel2.editorialmodel]
groups =
emfile = editorial_model.pickle
dyncode = leapi_dyncode.py
editormode = True