Пример #1
0
    def PostContext(self, **kwargs):
        sid=kwargs.get("sid")

        if self.HasPostData('ok'):

            sidebarInfo=Sidebar(id=sid)
            sidebarInfo.name=self.GetPostData("name")
            sidebarInfo.description=self.GetPostData("description")

            sidebarInfo.save()
        self.redirectUrl="/admin/sidebarlist/"
        return locals()
Пример #2
0
    def PostContext(self, **kwargs):

        if self.HasPostData('ok'):
            sidebarInfo = Sidebar()

            sidebarInfo.id = self.GetPostData("id")
            sidebarInfo.name = self.GetPostData("name")
            sidebarInfo.description = self.GetPostData("description",
                                                       sidebarInfo.name)

            sidebarInfo.save()

        return locals()
Пример #3
0
    def PostContext(self, **kwargs):

        if self.HasPostData('ok'):
            sidebarInfo=Sidebar()

            sidebarInfo.id=self.GetPostData("id")
            sidebarInfo.name=self.GetPostData("name")
            sidebarInfo.description=self.GetPostData("description",sidebarInfo.name)

            sidebarInfo.save()

        return locals()
Пример #4
0
    def PostContext(self, **kwargs):
        sid = kwargs.get("sid")

        if self.HasPostData('ok'):

            sidebarInfo = Sidebar(id=sid)
            sidebarInfo.name = self.GetPostData("name")
            sidebarInfo.description = self.GetPostData("description")

            sidebarInfo.save()
        self.redirectUrl = "/admin/sidebarlist/"
        return locals()