def _isEnabled(self, imageContext):
     en = ZBlogPostEditableImageActionBase._isEnabled(self, imageContext)
     if en:
         attrs = imageContext.getImageAttributes()
         return not attrs.has_key(u"align") or attrs[u"align"] != self.align  # $NON-NLS-1$ #$NON-NLS-2$
     else:
         return False
예제 #2
0
 def _isEnabled(self, imageContext):
     en = ZBlogPostEditableImageActionBase._isEnabled(self, imageContext)
     if en:
         attrs = imageContext.getImageAttributes()
         return not attrs.has_key(u"align") or attrs[
             u"align"] != self.align  #$NON-NLS-1$ #$NON-NLS-2$
     else:
         return False
예제 #3
0
 def _isEnabled(self, imageContext):
     en = ZBlogPostEditableImageActionBase._isEnabled(self, imageContext)
     if en:
         attrs = imageContext.getImageAttributes()
         style = None
         if attrs.has_key(u"border"):  #$NON-NLS-1$
             (width, style, zcssColor) = parseCssBorderProperty(
                 getSafeString(
                     attrs[u"border"]))  #$NON-NLS-1$ @UnusedVariable
         return style is None or style != self.borderStyle
     else:
         return False
 def _isEnabled(self, imageContext):
     en = ZBlogPostEditableImageActionBase._isEnabled(self, imageContext)
     if en:
         attrs = imageContext.getImageAttributes()
         style = None
         if attrs.has_key(u"border"):  # $NON-NLS-1$
             (width, style, zcssColor) = parseCssBorderProperty(
                 getSafeString(attrs[u"border"])
             )  # $NON-NLS-1$ @UnusedVariable
         return style is None or style != self.borderStyle
     else:
         return False
예제 #5
0
 def _isEnabled(self, imageContext):
     en = ZBlogPostEditableImageActionBase._isEnabled(self, imageContext)
     if en:
         return imageContext.canCreateThumbnail()
     else:
         return False
 def _isEnabled(self, imageContext):
     en = ZBlogPostEditableImageActionBase._isEnabled(self, imageContext)
     if en:
         return imageContext.canCreateThumbnail()
     else:
         return False