# 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
    def copy(self):
        """
        """
        self.ResetFlashMessages()
        ids = self.GetFormValue(u"ids")
        if not ids:
            ids = [self.context.id]
        cp = self.SetCopyInfo(u"copy", ids, self.context)
        url = self.GetFormValue(u"url")
        if not url:
            url = self.PageUrl(self.context)
        msgs = _(u"OK. Copied.")
        return self.Redirect(url, [msgs], refresh=True)


    def paste(self):
        """
        """
        self.ResetFlashMessages()
        deleteClipboard=1
        url = self.GetFormValue(u"url")
        if not url:
            url = self.PageUrl(self.context)
        action, ids = self.GetCopyInfo()
        if not action or not ids:
            msgs = []
            return self.Redirect(url, msgs, refresh=True)

        pepos = self.GetFormValue(u"pepos",0)
        result = False

# 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

    def copy(self):
        """
        """
        self.ResetFlashMessages()
        ids = self.GetFormValue(u"ids")
        if not ids:
            ids = [self.context.id]
        cp = self.SetCopyInfo(u"copy", ids, self.context)
        url = self.GetFormValue(u"url")
        if not url:
            url = self.PageUrl(self.context)
        msgs = _(u"OK. Copied.")
        return self.Redirect(url, [msgs], refresh=True)


    def paste(self):
        """
        """
        self.ResetFlashMessages()
        deleteClipboard=1
        url = self.GetFormValue(u"url")
        if not url:
            url = self.PageUrl(self.context)
        action, ids = self.GetCopyInfo()
        if not action or not ids:
            msgs = []
            return self.Redirect(url, msgs, refresh=True)

        pepos = self.GetFormValue(u"pepos",0)
        result = False

        msgs = [_(u"Method unknown")]