Lines Matching refs:attrs
57 """ return a dictionary containing attrs in attr list
58 from self.attrs; omit if no such attrs in self.attrs"""
59 return dict((a, self.attrs[a])
60 for a in self.attrs
90 if "gid" not in self.attrs:
91 self.attrs["gid"] = cur_attrs["gid"]
92 elif self.attrs["gid"] != cur_attrs["gid"]:
95 template["gid"] = self.attrs["gid"]
105 user_entry["gid"] = self.attrs[
118 # NOTE: needs modification if more attrs are used
137 if "gid" in self.attrs:
138 img._groupsbyname[self.attrs["groupname"]] = \
139 int(self.attrs["gid"])
166 cur_attrs = gr.getvalue(self.attrs)
176 if "gid" not in self.attrs:
180 should_be.update(self.attrs)
208 gr.removevalue(self.attrs)
219 return [("group", "name", self.attrs["groupname"], None)]
241 a = int(self.attrs.get("gid", 1024))
242 b = int(other.attrs.get("gid", 1024))