Lines Matching refs:attrs
47 def __init__(self, data=None, **attrs):
48 generic.Action.__init__(self, data, **attrs)
51 self.attrs["name"]
52 self.attrs["value"]
58 if len(attrs) == 1:
59 self.attrs["name"], self.attrs["value"] = \
60 self.attrs.popitem()
75 (self.name, self.attrs["name"],
85 if isinstance(self.attrs["value"], list):
87 for v in self.attrs["value"]:
93 self.attrs["name"], w,
97 self.attrs["name"], v, None))
99 elif self.attrs["name"] in ("fmri", "pkg.fmri"):
100 fmri_obj = pkg.fmri.PkgFmri(self.attrs["value"])
110 (self.name, self.attrs["name"], w,
115 elif " " in self.attrs["value"]:
116 v = self.attrs["value"]
118 (self.name, self.attrs["name"], w, v)
123 (self.name, self.attrs["name"],
124 self.attrs["value"], None)
128 return self.attrs["name"] == "info.classification"
133 if self.attrs["name"] != "info.classification":
157 name = self.attrs["name"]