Commit 27b218b5 authored by Jogi Hofmüller's avatar Jogi Hofmüller

Add function addNewGeruecht to libgg3

parent 1465ea97
......@@ -96,6 +96,17 @@ class GeruechtList(list):
if data['key'] > self.key:
self.key = data['key']
def addNewGeruecht(self, sentence):
# TODO
# add meta data
self.importGeruecht({
'key': self.key + 1,
'sentence': sentence,
'state': itemstate.private,
'properties': [],
'meta': {},
})
def importName(self, data):
self.nl.importName(data)
......@@ -275,12 +286,9 @@ class Gdb:
next = self.buffer.pop(0)
return next
# def printAll(self):
# for g in self.glist:
# g.names = self.glist.nlist.getUniqueNames(g.num_names)
# print(g.key),
# print(g.render())
def addNewGeruecht(self, sentence):
self.glist.addNewGeruecht(sentence)
self.modified = True
class ItemState:
def __init__(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment