Commit bfc00252 by netz.coop

small fixes

1 parent 02293d69
2018-01-19 v0.1.8 small fixes
2018-01-17 v0.1.7 Posttools Monitoring
2018-01-16 v0.1.6 Posttools Fix
2018-01-16 v0.1.5 Posttools
......
......@@ -112,7 +112,7 @@ class mailcnf_domain(ncauth_base):
def update_virtual_domains(self, id,name,active,group_id):
query = "UPDATE virtual_domains SET name='"+str(name)+"' ,active='"+str(active)+"' ,group_id='"+str(group_id)+"' WHERE id="+str(id)+" "
try:
self.write(query)
# self.write(query)
db_config = read_db_config()
conn = MySQLConnection(**db_config)
cursor = conn.cursor()
......@@ -129,7 +129,7 @@ class mailcnf_domain(ncauth_base):
def insert_virtual_domain(self,name,active,group_id=0):
query = "INSERT INTO virtual_domains(name,active,group_id) VALUE('"+name+"','"+str(active)+"','"+str(group_id)+"');"
self.write(query)
# self.write(query)
# args = (domain_id,password,email,sent_mail,active)
insert_id = ''
try:
......@@ -167,7 +167,7 @@ class mailcnf_domain(ncauth_base):
else:
query = " SELECT id,name,description,transport,modified,active,deleted,group_id FROM `virtual_domains`"
try:
print(query)
#print(query)
db_config = read_db_config()
conn = MySQLConnection(**db_config)
cursor = conn.cursor()
......@@ -193,7 +193,7 @@ class mailcnf_domain(ncauth_base):
def edit_virtual_domains_by_id(self, id,uid):
query = " SELECT * FROM `virtual_domains` WHERE `id`='"+str(id)+"'"
query = " SELECT id,name,description,transport,modified,active,deleted,group_id FROM `virtual_domains` WHERE `id`='"+str(id)+"'"
dictdata =[]
# self.write(query)
counter=0
......
......@@ -184,7 +184,7 @@ class mailcnf_user(ncauth_base):
password=crypt.crypt(pw1,'$1$1x87mPvWg')
query = "INSERT INTO virtual_users(domain_id,password,email,sent_mail,active,quota,group_id) VALUES('"+domain_id+"','"+password+"','"+email+"','"+sent_mail+"','"+active+"','"+quota+"','"+group_id+"')"
self.write(query)
#self.write(query)
# args = (domain_id,password,email,sent_mail,active)
insert_id = ''
try:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!