Example #1
0
class ZInfoTagDetailsPanel(ZAbstractDetailsPanel):

    def __init__(self, parent):
        self.model = ZBlogPostsListByTagQueryModel()
        self.blogPostListView = None

        ZAbstractDetailsPanel.__init__(self, parent)
    # end __init__()

    def _createWidgets(self):
        self.blogPostListView = ZWhereFoundBlogPostListView(self, self.model)
    # end _createWidgets()

    def _bindWidgetEvents(self):
        pass
    # end _bindWidgetEvents()

    def _layoutWidgets(self):
        vBox = wx.BoxSizer(wx.VERTICAL)
        vBox.Add(self.blogPostListView, 1, wx.EXPAND | wx.ALL, 5)
        self.SetAutoLayout(True)
        self.SetSizer(vBox)
    # end _layoutWidgets()

    def onSelectionChanged(self, data):
        (blog, tagIDO) = data

        # first set the tag
        self.model.setTagIDO(tagIDO)
        if blog is not None:
            self.model.setBlogIdCriteria(blog.getId())
        else:
            self.model.setBlogIdCriteria(IZTagSearchFilter.UNPUBLISHED_BLOG_ID)
        # Refresh the list of blog posts
        self.blogPostListView.refresh()
Example #2
0
class ZInfoTagDetailsPanel(ZAbstractDetailsPanel):
    def __init__(self, parent):
        self.model = ZBlogPostsListByTagQueryModel()
        self.blogPostListView = None

        ZAbstractDetailsPanel.__init__(self, parent)

    # end __init__()

    def _createWidgets(self):
        self.blogPostListView = ZWhereFoundBlogPostListView(self, self.model)

    # end _createWidgets()

    def _bindWidgetEvents(self):
        pass

    # end _bindWidgetEvents()

    def _layoutWidgets(self):
        vBox = wx.BoxSizer(wx.VERTICAL)
        vBox.Add(self.blogPostListView, 1, wx.EXPAND | wx.ALL, 5)
        self.SetAutoLayout(True)
        self.SetSizer(vBox)

    # end _layoutWidgets()

    def onSelectionChanged(self, data):
        (blog, tagIDO) = data

        # first set the tag
        self.model.setTagIDO(tagIDO)
        if blog is not None:
            self.model.setBlogIdCriteria(blog.getId())
        else:
            self.model.setBlogIdCriteria(IZTagSearchFilter.UNPUBLISHED_BLOG_ID)
        # Refresh the list of blog posts
        self.blogPostListView.refresh()
Example #3
0
    def __init__(self, parent):
        self.model = ZBlogPostsListByTagQueryModel()
        self.blogPostListView = None

        ZAbstractDetailsPanel.__init__(self, parent)
Example #4
0
    def __init__(self, parent):
        self.model = ZBlogPostsListByTagQueryModel()
        self.blogPostListView = None

        ZAbstractDetailsPanel.__init__(self, parent)