r1095@denkpolster: jan | 2008-04-05 20:26:09 +0200
bugfix for sqlalchemy >= 0.4.1 * use session.save_or_update() (fixes #6) * update copyright year and add python editor comment git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/trunk@251 a67ec6bc-e5d5-0310-a910-815c51eb3124
This commit is contained in:
parent
7152902ff3
commit
27489ef06f
1 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
# -*- coding: UTF-8 -*-
|
||||
# -*- python -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Copyright (C) 2007 by Jan Dittberner.
|
||||
# Copyright (C) 2007, 2008 by Jan Dittberner.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
@ -230,7 +231,7 @@ class DomainEntity(BackendEntity):
|
|||
name = "www.%s" % (self.delegateto.name), type = 'A',
|
||||
content = self.ipaddr,
|
||||
ttl = config.getint('domain', 'defaultttl')))
|
||||
session.save(self.delegateto)
|
||||
session.save_or_update(self.delegateto)
|
||||
session.flush()
|
||||
self._create_vhost_dir()
|
||||
self._create_log_dir()
|
||||
|
|
Loading…
Reference in a new issue