diff --git a/gnuviechadmin/backend/domain.py b/gnuviechadmin/backend/domain.py index 2935762..28c9c56 100644 --- a/gnuviechadmin/backend/domain.py +++ b/gnuviechadmin/backend/domain.py @@ -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()