Don't return attribute matches if said attribute is in the hidden attribute list.

This commit is contained in:
Greg Taylor 2007-05-24 03:22:11 +00:00
parent 39b640e948
commit f9f24f6616

View file

@ -429,7 +429,7 @@ class Object(models.Model):
# wild-carded search string.
match_exp = re.compile(functions_general.wildcard_to_regexp(searchstr), re.IGNORECASE)
# If the regular expression search returns a match object, add to results.
return [attr for attr in attrs if match_exp.search(attr.name)]
return [attr for attr in attrs if match_exp.search(attr.name) and attr.name not in defines_global.HIDDEN_ATTRIBS]
def has_flag(self, flag):
"""