(self, dsDatabase)
return ancestorlist
Returns the ancestors
Returns the ancestors
Returns the ancestors
def getAncestors(self, dsDatabase):
        '''
        Returns the ancestors
        '''
        ancestorlist = []
        ancestorvalue = self.Record[ntds.dsfielddictionary.dsAncestorsIndex] 
        if ancestorvalue != "":
            l = len(ancestorvalue) / 8
            for aid in range(0, l):
                (ancestorid,) = unpack('I', unhexlify(ancestorvalue[aid * 8:aid * 8 + 8]))
                ancestor = dsObject(dsDatabase, ancestorid)
                if ancestor == None:
                    continue
                ancestorlist.append(ancestor)
        return ancestorlist
def getAncestors ( self , dsDatabase ) : ancestorlist = [ ] ancestorvalue = self . Record [ ntds . dsfielddictionary . dsAncestorsIndex ] if ancestorvalue != "" : l = len ( ancestorvalue ) / 8 for aid in range ( 0 , l ) : ( ancestorid , ) = unpack ( 'I' , unhexlify ( ancestorvalue [ aid * 8 : aid * 8 + 8 ] ) ) ancestor = dsObject ( dsDatabase , ancestorid ) if ancestor == None : continue ancestorlist . append ( ancestor ) return ancestorlist