socializer/src/controller/buffers/communityDocuments.py

17 lines
562 B
Python
Raw Normal View History

# -*- coding: utf-8 -*-
import logging
from wxUI.tabs import communityDocuments
from .documents import documentsBuffer
log = logging.getLogger("controller.buffers.communityDocuments")
class communityDocumentsBuffer(documentsBuffer):
can_get_items = True
def create_tab(self, parent):
self.tab = communityDocuments.communityDocumentsTab(parent)
self.connect_events()
self.tab.name = self.name
if hasattr(self, "can_post") and self.can_post == False and hasattr(self.tab, "post"):
self.tab.post.Enable(False)