def getContent(self):
     an = IAnnotationManager(self.context)
     try:
         content = an.read()
     except:
         content = {'qaherit': 'False', 'qatext': '', 'qalinks': ''}
     return content
 def getContent(self):
     an = IAnnotationManager(self.context)
     try:
         content = an.read()
     except:
         content={'qaherit':'False','qatext':'','qalinks':''}
     return content
    def readQA(self, object2read):
        annotable = True
        try:
            an = IAnnotationManager(object2read)
        except:
            annotable = False
        if annotable:
            isAnnotation = True
            try:
                content = an.read()
            except:
                isAnnotation = False

            if isAnnotation:
                # CAS d'arrive au repertoire racine
                if object2read.id == 'Plone' and content['qalinks'] != '':
                    return content
                if content['qaherit'] == True:
                    return self.readQA(aq_inner(object2read).aq_parent)
                else:
                    return content
            else:
                if object2read.id == 'Plone':
                    content = {'qaherit': False, 'qatext': '', 'qalinks': ''}
                    return content
                return self.readQA(aq_inner(object2read).aq_parent)
        else:
            content = {'qaherit': False, 'qatext': '', 'qalinks': ''}
            return content
 def readQA(self, object2read):
         annotable = True
         try:
             an = IAnnotationManager(object2read)
         except:
             annotable = False
         if annotable:
             isAnnotation=True
             try:
                 content = an.read()
             except:
                 isAnnotation=False
                 
             if isAnnotation:
                 # CAS d'arrive au repertoire racine
                 if object2read.id =='Plone' and content['qalinks'] != '':
                     return content
                 if content['qaherit'] == True:
                     return self.readQA(aq_inner(object2read).aq_parent)
                 else:
                     return content
             else:
                 if object2read.id =='Plone':
                     content={'qaherit':False,'qatext':'','qalinks':''}
                     return content
                 return self.readQA(aq_inner(object2read).aq_parent)
         else:
             content={'qaherit':False,'qatext':'','qalinks':''}
             return content