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') |