Beispiel #1
0
 def setBlog(self, blog):
     self.blogId = blog.getId()
     self.categories = []
     self.selectedCategories = []
     self.categories.extend(blog.getCategories() )
     self._sort()
     self.multiselect = isCapabilitySupportedByBlog(IZBlogApiCapabilityConstants.MULTISELECT_CATEGORIES, blog)
     self.usergenerated = isCapabilitySupportedByBlog(IZBlogApiCapabilityConstants.USERGENERATED_CATEGORIES, blog)
Beispiel #2
0
 def setBlog(self, blog):
     self.blogId = blog.getId()
     self.categories = []
     self.selectedCategories = []
     self.categories.extend(blog.getCategories())
     self._sort()
     self.multiselect = isCapabilitySupportedByBlog(
         IZBlogApiCapabilityConstants.MULTISELECT_CATEGORIES, blog)
     self.usergenerated = isCapabilitySupportedByBlog(
         IZBlogApiCapabilityConstants.USERGENERATED_CATEGORIES, blog)
Beispiel #3
0
 def _validateConfiguration(self,validationReporter): #@UnusedVariable
     blogName = self._getContext().getBlog().getName()
     listOfWords = self._getWordList()
     linkFormatterList = linkFormatterList = self._getFormatterList() #@UnusedVariable
     taggingSupported = isCapabilitySupportedByBlog(IZBlogApiCapabilityConstants.TAGGING, self._getContext().getBlog())
     if listOfWords and len(listOfWords) > 0:
         if not taggingSupported and (not linkFormatterList or len(linkFormatterList) == 0):
             s = u"One or more tag sites must be selected to create links to tagspaces for blog %s." % blogName #$NON-NLS-1$
             validationReporter.addWarning(u"Tagging", s) #$NON-NLS-1$ #$NON-NLS-2$
             self._getContext().logWarning(self, s)
Beispiel #4
0
 def _validateConfiguration(self, validationReporter):  #@UnusedVariable
     blogName = self._getContext().getBlog().getName()
     listOfWords = self._getWordList()
     linkFormatterList = linkFormatterList = self._getFormatterList(
     )  #@UnusedVariable
     taggingSupported = isCapabilitySupportedByBlog(
         IZBlogApiCapabilityConstants.TAGGING,
         self._getContext().getBlog())
     if listOfWords and len(listOfWords) > 0:
         if not taggingSupported and (not linkFormatterList
                                      or len(linkFormatterList) == 0):
             s = u"One or more tag sites must be selected to create links to tagspaces for blog %s." % blogName  #$NON-NLS-1$
             validationReporter.addWarning(u"Tagging",
                                           s)  #$NON-NLS-1$ #$NON-NLS-2$
             self._getContext().logWarning(self, s)
Beispiel #5
0
 def _blogSupportsDraft(self, blog):
     return isCapabilitySupportedByBlog(IZBlogApiCapabilityConstants.DRAFT_POSTS, blog)