VirtualMailManager/domain.py
branchv0.6.x
changeset 336 d24c2ea39710
parent 331 270b57af85de
child 352 22d115376e4d
equal deleted inserted replaced
335:7a471cace3ba 336:d24c2ea39710
   228     def get_info(self):
   228     def get_info(self):
   229         """Returns a dictionary with information about the domain."""
   229         """Returns a dictionary with information about the domain."""
   230         self._chk_state()
   230         self._chk_state()
   231         dbc = self._dbh.cursor()
   231         dbc = self._dbh.cursor()
   232         dbc.execute('SELECT gid, domainname, transport, domaindir, '
   232         dbc.execute('SELECT gid, domainname, transport, domaindir, '
   233                     'aliasdomains accounts, aliases, relocated FROM '
   233                     'aliasdomains, accounts, aliases, relocated FROM '
   234                     'vmm_domain_info WHERE gid = %s', self._gid)
   234                     'vmm_domain_info WHERE gid = %s', self._gid)
   235         info = dbc.fetchone()
   235         info = dbc.fetchone()
   236         dbc.close()
   236         dbc.close()
   237         keys = ('gid', 'domainname', 'transport', 'domaindir', 'aliasdomains',
   237         keys = ('gid', 'domainname', 'transport', 'domaindir', 'aliasdomains',
   238                 'accounts', 'aliases', 'relocated')
   238                 'accounts', 'aliases', 'relocated')