Ignore:
Timestamp:
May 1, 2010 11:15:53 PM (14 years ago)
Author:
crchemist
Message:

remove @@seotab-visibility

Location:
quintagroup.seoptimizer/branches/3.0.1-cleanup/quintagroup/seoptimizer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.seoptimizer/branches/3.0.1-cleanup/quintagroup/seoptimizer

    • Property svn:ignore set to
      *.mo
  • quintagroup.seoptimizer/branches/3.0.1-cleanup/quintagroup/seoptimizer/browser/views.py

    r2247 r2251  
    158158        """ 
    159159        return condition and first or second 
     160 
     161    def isAvailable(self): 
     162        """ Checks visibility 'SEO Properties' action for content 
     163        """ 
     164        context = aq_inner(self.context) 
     165        plone = queryMultiAdapter((self, self.request),name="plone_portal_state").portal() 
     166        adapter = ISEOConfigletSchema(plone) 
     167        return self.context.portal_type in adapter.types_seo_enabled 
    160168 
    161169    def validateSEOProperty(self, property, value): 
     
    301309        return self.template() 
    302310 
    303  
    304 class VisibilityCheckerView( BrowserView ): 
    305     """ This class contains methods that visibility checker. 
    306     """ 
    307  
    308     def checkVisibilitySEOAction(self): 
    309         """ Checks visibility 'SEO Properties' action for content 
    310         """ 
    311         context = aq_inner(self.context) 
    312         plone = queryMultiAdapter((self, self.request),name="plone_portal_state").portal() 
    313         adapter = ISEOConfigletSchema(plone) 
    314         return bool(self.context.portal_type in adapter.types_seo_enabled) 
    315  
Note: See TracChangeset for help on using the changeset viewer.