Commit ddf91c5d by vuj

v0.1.2 BCC select statement

1 parent 558832ac
......@@ -2,3 +2,4 @@ web/ncauth/srvcnf.sqlite3
web/base/config.ini
srvcnf2.e4p
__pycache__
.eric6project/
2018-01-16 v0.1.2 BCC select statement
2018-01-16 v0.1.1 kleine fixes README BCC/ALIAS Dropdown
2018-01-16 v0.1.0 migration von srvcnf =>srvcnf2 einbau des framework tornado
......@@ -163,15 +163,15 @@ class mailcnf_bcc(ncauth_base):
if str(uid) !='0':
delstring = " and deleted='0' "
if id!='' and id != None:
query = " SELECT * FROM `virtual_recipients_bcc` WHERE `id`="+id+" "+delstring
query = " SELECT id,domain_id,source,destination,modified,active,deleted,group_id FROM `virtual_recipients_bcc` WHERE `id`="+id+" "+delstring
elif str(gid) !='':
query = " SELECT * FROM `virtual_recipients_bcc` WHERE `group_id` in ("+gid+") "+delstring
query = " SELECT id,domain_id,source,destination,modified,active,deleted,group_id FROM `virtual_recipients_bcc` WHERE `group_id` in ("+gid+") "+delstring
else:
if str(uid) !='0':
query = " SELECT * FROM `virtual_recipients_bcc` WHERE deleted='0'"
query = " SELECT id,domain_id,source,destination,modified,active,deleted,group_id FROM `virtual_recipients_bcc` WHERE deleted='0'"
else:
query = " SELECT * FROM `virtual_recipients_bcc`"
query = " SELECT id,domain_id,source,destination,modified,active,deleted,group_id FROM `virtual_recipients_bcc`"
try:
print(query)
db_config = read_db_config()
......@@ -199,7 +199,7 @@ class mailcnf_bcc(ncauth_base):
def edit_virtual_bccs_by_id(self, id,uid):
query = " SELECT * FROM `virtual_recipients_bcc` WHERE `id`='"+str(id)+"'"
query = " SELECT id,domain_id,source,destination,modified,active,deleted,group_id FROM `virtual_recipients_bcc` WHERE `id`='"+str(id)+"'"
dictdata =[]
#self.write(query)
counter=0
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!