equal
deleted
inserted
replaced
73 ALIASDOMAIN_NO_DOMDEST) |
73 ALIASDOMAIN_NO_DOMDEST) |
74 if self._domain.gid < 1: |
74 if self._domain.gid < 1: |
75 raise ADErr(_(u"The target domain '%s' doesn't exist.") % |
75 raise ADErr(_(u"The target domain '%s' doesn't exist.") % |
76 self._domain.name, NO_SUCH_DOMAIN) |
76 self._domain.name, NO_SUCH_DOMAIN) |
77 dbc = self._dbh.cursor() |
77 dbc = self._dbh.cursor() |
78 dbc.execute('INSERT INTO domain_name VALUES (%s, %s, FALSE)', |
78 dbc.execute('INSERT INTO domain_name (domainname, gid, is_primary) ' |
79 (self._name, self._domain.gid)) |
79 'VALUES (%s, %s, FALSE)', (self._name, self._domain.gid)) |
80 self._dbh.commit() |
80 self._dbh.commit() |
81 dbc.close() |
81 dbc.close() |
82 self._gid = self._domain.gid |
82 self._gid = self._domain.gid |
83 |
83 |
84 def info(self): |
84 def info(self): |