コード例 #1
0
ファイル: Actor.py プロジェクト: ojashvirautela/citcoms
    def _retrieveComponent(self, instance, componentName):
        actor = instance.retrieveComponent(componentName, factory='actor', vault=['actors'])

        # if we were successful, return
        if actor:
            actor.aliases.append(self.name)
            return actor, actor.getLocator()

        # otherwise, try again
        return Facility._retrieveComponent(self, instance, componentName)
コード例 #2
0
ファイル: Form.py プロジェクト: danse-inelastic/DrChops
    def _retrieveComponent(self, instance, componentName, args):
        form = instance.retrieveComponent(
            componentName, factory='form', args=args, vault=['forms'])

        # if we were successful, return
        if form:
            form.aliases.append(self.name)
            return form, form.getLocator()

        # otherwise, try again
        return Facility._retrieveComponent(self, instance, componentName, args)
コード例 #3
0
    def _retrieveComponent(self, instance, componentName, args):
        dataobject = instance.retrieveComponent(
            componentName, factory='dataobject', args=args, vault=['dataobjects'])

        # if we were successful, return
        if dataobject:
            dataobject.aliases.append(self.name)
            return dataobject, dataobject.getLocator()

        # otherwise, try again
        return Facility._retrieveComponent(self, instance, componentName, args)
コード例 #4
0
ファイル: IWorker.py プロジェクト: danse-inelastic/vnf
    def _retrieveComponent(self, instance, componentName, args):
        worker = instance.retrieveComponent(
            componentName, factory='iworker', args=args, vault=['iworkers'])

        # if we were successful, return
        if worker:
            worker.aliases.append(self.name)
            return worker, worker.getLocator()

        # otherwise, try again
        return Facility._retrieveComponent(self, instance, componentName, args)
コード例 #5
0
ファイル: IWorker.py プロジェクト: nityasagarjena/AbInitio
    def _retrieveComponent(self, instance, componentName, args):
        worker = instance.retrieveComponent(componentName,
                                            factory='iworker',
                                            args=args,
                                            vault=['iworkers'])

        # if we were successful, return
        if worker:
            worker.aliases.append(self.name)
            return worker, worker.getLocator()

        # otherwise, try again
        return Facility._retrieveComponent(self, instance, componentName, args)
コード例 #6
0
ファイル: Form.py プロジェクト: danse-inelastic/inelastic-svn
    def _retrieveComponent(self, instance, componentName, args):
        form = instance.retrieveComponent(componentName,
                                          factory='form',
                                          args=args,
                                          vault=['forms'])

        # if we were successful, return
        if form:
            form.aliases.append(self.name)
            return form, form.getLocator()

        # otherwise, try again
        return Facility._retrieveComponent(self, instance, componentName, args)
コード例 #7
0
    def _retrieveComponent(self, instance, componentName, args):
        dataobject = instance.retrieveComponent(componentName,
                                                factory='dataobject',
                                                args=args,
                                                vault=['dataobjects'])

        # if we were successful, return
        if dataobject:
            dataobject.aliases.append(self.name)
            return dataobject, dataobject.getLocator()

        # otherwise, try again
        return Facility._retrieveComponent(self, instance, componentName, args)