# Copyright 2012-2014 Arndt Droullier, Nive GmbH. All rights reserved. # Released under GPL3. See license.txt """ Item ---- """ from nive_datastore.i18n import _ from nive.components.baseobjects import ObjectContainerBase from nive.definitions import ObjectConf class item(ObjectContainerBase): def Init(self): self.queryRestraints = {}, {} # Root definition ------------------------------------------------------------------ #@nive_module configuration = ObjectConf( id="item", context="nive_datastore.item.item", extensions=("nive_datastore.pydispatch.Dispatcher", ), name=_(u"Data item"), description=u"")
""" Root ---- The *root* is the entry point of the data storage. All contained items are stored in the database. The root itself does not store anything in the database by default. The system supports multiple roots with unique urls to access items. Also this object provides search functions and sql query wrappers. """ from nive_datastore.i18n import _ from nive.components.objects.base import RootBase from nive.definitions import RootConf from nive.definitions import AllTypesAllowed class root(RootBase): def Init(self): self.queryRestraints = {}, {} # Root definition ------------------------------------------------------------------ #@nive_module configuration = RootConf(id="api", context="nive_datastore.root.root", default=True, subtypes=AllTypesAllowed, extensions=("nive_datastore.pydispatch.Dispatcher", ), name=_(u"Data root"), description=u"")
The system supports multiple roots with unique urls to access items. Also this object provides search functions and sql query wrappers. """ from nive_datastore.i18n import _ from nive.components.objects.base import RootBase from nive.definitions import RootConf from nive.definitions import AllTypesAllowed class root(RootBase): def Init(self): self.queryRestraints = {}, {} # Root definition ------------------------------------------------------------------ #@nive_module configuration = RootConf( id = "api", context = "nive_datastore.root.root", default = True, subtypes = AllTypesAllowed, extensions = ("nive_datastore.pydispatch.Dispatcher",), name = _(u"Data root"), description = u"" )
# Copyright 2012-2014 Arndt Droullier, Nive GmbH. All rights reserved. # Released under GPL3. See license.txt """ Item ---- """ from nive_datastore.i18n import _ from nive.components.baseobjects import ObjectContainerBase from nive.definitions import ObjectConf class item(ObjectContainerBase): def Init(self): self.queryRestraints = {}, {} # Root definition ------------------------------------------------------------------ #@nive_module configuration = ObjectConf( id = "item", context = "nive_datastore.item.item", extensions = ("nive_datastore.pydispatch.Dispatcher",), name = _(u"Data item"), description = u"" )