Esempio n. 1
0
    def _xxxGetLinkedFeatureWorkaround(self, cid1):
        '''Workaround to handle supplementary links
        @param etft: Feed/Feature identifier
        @type etft: FeedRef
        @param cid: ChangeId
        @type cid: Integer
        @return: Dict of JSON response
        '''
        etft1 = FeedRef(FeatureType.ADDRESS, FeedType.FEATURES)
        cef, jcf = self.getOneFeature(etft1, cid1)

        cid2 = SupplementalHack.extractlink(jcf)

        etft2 = FeedRef(FeatureType.ADDRESS, FeedType.RESOLUTIONFEED)
        cer, jcr = self.getOneFeature(etft2, cid2)

        return cer, jcr
Esempio n. 2
0
 def _xxxGetLinkedFeatureWorkaround(self,cid1):
     '''Workaround to handle supplementary links
     @param etft: Feed/Feature identifier
     @type etft: FeedRef
     @param cid: ChangeId
     @type cid: Integer
     @return: Dict of JSON response
     '''
     etft1 = FeedRef(FeatureType.ADDRESS,FeedType.FEATURES)
     cef,jcf = self.getOneFeature(etft1, cid1)
     
     cid2 = SupplementalHack.extractlink(jcf)
     
     etft2 = FeedRef(FeatureType.ADDRESS,FeedType.RESOLUTIONFEED)
     cer,jcr = self.getOneFeature(etft2, cid2)
     
     return cer,jcr