Logo Search packages:      
Sourcecode: zope-docfindereverywhere version File versions  Download package

def DocFinderEverywhere::DocFinder::analyse::AttributeDoc::Permission (   self  ) 

return the permission protecting the attribute, 'None' if not directly protected.

Definition at line 347 of file analyse.py.

00347                       :
    '''return the permission protecting the attribute, 'None' if not directly protected.'''
    if self._knownPermission: return self._permission
    p= None
    if self._obj:
      name= self._name
      if name[:3] == '-- ': name= ''
      p= _lookup(self._obj, name+'__roles__')
      if p is not None:
        try:
          p= replace(p[1]._p[1:-11],'_',' ')
        except: p= '-- explicit --'
    self._permission= p; self._knownPermission= 1
    return p



AttributeDoc._secInfo.apply(AttributeDoc)


def _isPrivat(role):


Generated by  Doxygen 1.6.0   Back to index