コード例 #1
0
ファイル: item.py プロジェクト: comlorda/nive_datastore
# 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"")
コード例 #2
0
ファイル: root.py プロジェクト: comlorda/nive_datastore
"""
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"")
コード例 #3
0
ファイル: root.py プロジェクト: comlorda/nive_datastore
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""
)
コード例 #4
0
ファイル: item.py プロジェクト: comlorda/nive_datastore
# 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""
)