Exemplo n.º 1
0
def get_joinable_meta_list(component):
    """Take meta and get an iterable suitable for feeding to list_merge."""
    for package in component.iter_direct_packages():
        new_key = get_meta_key(package)
        for key, target in package.iteritems():
            domain, predicate = key
            tag = string_domain(domain, predicate)
            if filter_predicate(key):
                yield new_key, tag, target
Exemplo n.º 2
0
 def __str__(self):
     tag = string_domain(self.domain, self.predicate)
     return "[%s] is %s '%s'" % (tag, self.condition.__name__, self.target)
Exemplo n.º 3
0
 def __str__(self):
     tag = string_domain(self.domain, self.predicate)
     return "[%s] is %s '%s'" % (tag, self.condition.__name__,
                                 self.target)