| 
									
										
										
										
											2021-04-23 10:57:54 -05:00
										 |  |  | # -*- coding: utf-8 -*- | 
					
						
							|  |  |  | import logging | 
					
						
							| 
									
										
										
										
											2021-04-23 12:26:35 -05:00
										 |  |  | from wxUI.tabs import communityDocuments | 
					
						
							| 
									
										
										
										
											2021-04-23 10:57:54 -05:00
										 |  |  | from .documents import documentsBuffer | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | log = logging.getLogger("controller.buffers.communityDocuments") | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class communityDocumentsBuffer(documentsBuffer): | 
					
						
							| 
									
										
										
										
											2021-09-22 09:17:12 -05:00
										 |  |  |     can_get_items = True | 
					
						
							| 
									
										
										
										
											2021-04-23 10:57:54 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-09-22 09:17:12 -05:00
										 |  |  |     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) |