equal
deleted
inserted
replaced
37 if not self._gid: |
37 if not self._gid: |
38 raise RErr(_(u"The domain %r doesn't exist.") % |
38 raise RErr(_(u"The domain %r doesn't exist.") % |
39 self._addr.domainname, NO_SUCH_DOMAIN) |
39 self._addr.domainname, NO_SUCH_DOMAIN) |
40 self._dest = None |
40 self._dest = None |
41 |
41 |
42 self.__load() |
42 self._load() |
43 |
43 |
44 def __nonzero__(self): |
44 def __nonzero__(self): |
45 """Returns `True` if the Relocated is known, `False` if it's new.""" |
45 """Returns `True` if the Relocated is known, `False` if it's new.""" |
46 return self._dest is not None |
46 return self._dest is not None |
47 |
47 |
48 def __load(self): |
48 def _load(self): |
49 """Loads the destination address from the database into the |
49 """Loads the destination address from the database into the |
50 `_dest` attribute. |
50 `_dest` attribute. |
51 |
51 |
52 """ |
52 """ |
53 dbc = self._dbh.cursor() |
53 dbc = self._dbh.cursor() |