now first update must have a message, so noreset is chosen
This commit is contained in:
parent
113efc1d23
commit
fc35a3079b
|
@ -3,6 +3,7 @@ from model import Model
|
||||||
from view import View
|
from view import View
|
||||||
from update import update
|
from update import update
|
||||||
from export import export_to_xml
|
from export import export_to_xml
|
||||||
|
from message.simple_messages import Reset
|
||||||
|
|
||||||
|
|
||||||
model = Model()
|
model = Model()
|
||||||
|
@ -12,11 +13,11 @@ def plugin_init(div, _entry, editable):
|
||||||
view = View(div)
|
view = View(div)
|
||||||
update.set_model(model)
|
update.set_model(model)
|
||||||
update.set_view(view)
|
update.set_view(view)
|
||||||
|
|
||||||
|
|
||||||
def plugin_render(_div, entry):
|
def plugin_render(_div, entry):
|
||||||
model.import_xml(entry.content)
|
model.import_xml(entry.content)
|
||||||
update.update_model()
|
update.update_model(Reset())
|
||||||
|
|
||||||
|
|
||||||
def plugin_save(_div):
|
def plugin_save(_div):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user