Lines Matching refs:attrs
78 if attr in action.attrs:
234 a.attrs.get("mediator"):
236 a.attrs[a.key_attr],
237 a.attrs.get("mediator-version"),
238 a.attrs.get("mediator-implementation")
241 akey = (a.name, hashify(a.attrs.get(
307 a.attrs.get("mediator"):
312 a.attrs.get(v))])
314 "{0}={1}".format(v, a.attrs[v])
406 "mediator" in a.attrs:
407 yield (a.attrs.get("mediator"),
408 a.attrs.get("mediator-priority"),
409 a.attrs.get("mediator-version"),
410 a.attrs.get("mediator-implementation"))
465 attrs = a.attrs
467 if attrs["name"][:12] == "pkg.variant":
469 elif attrs["name"][:9] == "pkg.facet":
474 for attr, val in six.iteritems(attrs):
498 afacets = avariants = attrs = varcetkeys = None
640 attrs = act.attrs
643 attrs[v[0]] = v[1]
682 attrs = act.attrs
684 attrs[v[0]] = v[1]
703 variants = dict((name, a.attrs[name]) for name in v + f)
738 a.attrs["path"]
774 if a.attrs["name"][:10] == "pkg.facet.":
834 aname = a.attrs["name"]
878 for attrs in (
879 act.attrs
882 med_ver = attrs.get("mediator-version")
892 ret[attrs["value"]].add((
893 attrs.get("mediator-priority"),
895 attrs.get("mediator-implementation"),
960 a.attrs.get(a.key_attr)
971 return a.name, a.attrs.get(a.key_attr, id(a))
1121 attrs = action.attrs
1127 if "opensolaris.zone" in attrs and \
1128 "variant.opensolaris.zone" not in attrs:
1129 attrs["variant.opensolaris.zone"] = \
1130 attrs["opensolaris.zone"]
1132 if aname == "set" and attrs["name"] == "authority":
1134 attrs["name"] = "publisher"
1152 keyvalue = action.attrs["name"]
1211 self.attributes[keyvalue] = action.attrs["value"]
1286 if "path" in action.attrs:
1287 np = action.attrs["path"].lstrip(os.path.sep)
1288 action.attrs["path"] = \
1436 attrs = self.attributes
1437 if ("pkg.size" in attrs and "pkg.csize" in attrs) and \
1443 return (attrs["pkg.size"], attrs["pkg.csize"])
1451 attrs["pkg.size"] = size
1452 attrs["pkg.csize"] = csize
1487 attrs = action.attrs
1495 d[v].add(attrs[v])
1506 d[v].add(attrs[v])
1523 if a.name == "set" and a.attrs["name"] == key:
1524 a.attrs["value"] = value