(self)
Sub-optimal implementation
Sub-optimal implementation
Sub - optimal implementation
def get_subscriptions(self):
        """ Sub-optimal implementation """

        __subscriptions = PubSubSubscriptionCFT().get_list()
        __subs_yaml = []
        for sub in __subscriptions:
            if sub.base_yaml['properties']['topic'] == self.base_yaml['properties']['topic']['name']:
                 __subs_yaml.append(sub.base_yaml['properties']['subscriptions'][0])
        self.base_yaml['properties']['subscriptions'] = __subs_yaml
def get_subscriptions ( self ) : __subscriptions = PubSubSubscriptionCFT ( ) . get_list ( ) __subs_yaml = [ ] for sub in __subscriptions : if sub . base_yaml [ 'properties' ] [ 'topic' ] == self . base_yaml [ 'properties' ] [ 'topic' ] [ 'name' ] : __subs_yaml . append ( sub . base_yaml [ 'properties' ] [ 'subscriptions' ] [ 0 ] ) self . base_yaml [ 'properties' ] [ 'subscriptions' ] = __subs_yaml