예제 #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()