# Path: nive_cms/i18n.py

# 
# Path: nive_cms/cmsview/sort.py
# class Sort:
# class SortView:
#     def GetSort(self):
#     def GetSortElements(self, selection=None):
#     def GetMaxSort(self):
#     def UpdateSort(self, objs, user):
#     def InsertAtPosition(self, id, position, user, selection=None):
#     def InsertBefore(self, id, position, user, selection=None):
#     def InsertAfter(self, id, position, user, selection=None):
#     def MoveUp(self, id, user, selection=None):
#     def MoveDown(self, id, user, selection=None):
#     def MoveStart(self, id, user, selection=None):
#     def MoveEnd(self, id, user, selection=None):
#     def sortpages(self):
#     def sortelements(self):
#     def moveup(self):
#     def movedown(self):
#     def movetop(self):
#     def movebottom(self):


import string
from nive_cms.i18n import _
from nive.utils.utils import ConvertListToStr, ConvertToNumberList
from nive.definitions import StagPage, StagPageElement
from nive.definitions import IContainer, ViewConf, IRoot
from nive_cms.cmsview.sort import ISort
        moved = []
        msgs = []
        result = True
        for id in ids:
            id = int(id)
            if self.GetID() == id:
                continue
            obj = root.LookupObj(id, preload="skip")
            if not obj:
                msgs.append(_(u"Object not found"))
                result = False
                continue

            type=obj.GetTypeID()
            # allow subobject
            if not self.IsTypeAllowed(type, user):
                raise TypeError, "Object cannot be added here"

            self.Signal("beforeAdd", data=obj.meta, type=type)
            if not oldParent or oldParent.id != obj.parent.id:
                oldParent = obj.parent
            obj.__parent__ = self
            obj.meta["pool_unitref"] = self.GetID()
            oldParent.Signal("afterDelete", id=obj.id)
            obj.Signal("moved")
            #obj.Close()
            moved.append(obj)

        for o in moved:
            o.Commit(user)

# Path: nive_cms/i18n.py

# 
# Path: nive_cms/cmsview/sort.py
# class Sort:
# class SortView:
#     def GetSort(self):
#     def GetSortElements(self, selection=None):
#     def GetMaxSort(self):
#     def UpdateSort(self, objs, user):
#     def InsertAtPosition(self, id, position, user, selection=None):
#     def InsertBefore(self, id, position, user, selection=None):
#     def InsertAfter(self, id, position, user, selection=None):
#     def MoveUp(self, id, user, selection=None):
#     def MoveDown(self, id, user, selection=None):
#     def MoveStart(self, id, user, selection=None):
#     def MoveEnd(self, id, user, selection=None):
#     def sortpages(self):
#     def sortelements(self):
#     def moveup(self):
#     def movedown(self):
#     def movetop(self):
#     def movebottom(self):


# Path: nive_cms/cmsview/cutcopy.py
import string
from nive_cms.i18n import _
from nive.utils.utils import ConvertListToStr, ConvertToNumberList
from nive.definitions import StagPage, StagPageElement
from nive.definitions import IContainer, ViewConf, IRoot
from nive_cms.cmsview.sort import ISort

        moved = []
        msgs = []
        result = True
        for id in ids:
            id = int(id)
            if self.GetID() == id:
                continue
            obj = root.LookupObj(id, preload="skip")
            if not obj:
                msgs.append(_(u"Object not found"))
                result = False
                continue

            type=obj.GetTypeID()
            # allow subobject
            if not self.IsTypeAllowed(type, user):
                raise TypeError, "Object cannot be added here"

            self.Signal("beforeAdd", data=obj.meta, type=type)
            if not oldParent or oldParent.id != obj.parent.id:
                oldParent = obj.parent
            obj.__parent__ = self
            obj.meta["pool_unitref"] = self.GetID()
            oldParent.Signal("afterDelete", id=obj.id)
            obj.Signal("moved")
            #obj.Close()
            moved.append(obj)

        for o in moved:
            o.Commit(user)

            if ISort.providedBy(self):