prefix private attribute with a _

This commit is contained in:
Romain Bignon 2012-04-29 22:07:48 +02:00
commit e787a71ea8
2 changed files with 2 additions and 2 deletions

View file

@ -77,7 +77,7 @@ class AntiSpam(object):
if contact.id == 1:
return True
if not self.check_profile(contact.aum_profile):
if not self.check_profile(contact._aum_profile):
return False
return True

View file

@ -253,7 +253,7 @@ class Contact(_Contact):
self.profile[section] = s
self.aum_profile = profile
self._aum_profile = profile
def get_text(self):
def print_node(node, level=1):