Project

General

Profile

Actions

Task #5318

closed

avoid calling MySQLdb directly to connect when sinedon.cfg is read as input kwargs

Added by Anchi Cheng over 6 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
11/16/2017
Due date:
% Done:

0%

Estimated time:

Description

Use sinedon.sqldb.connect instead because we add more configuration in sinedon.cfg that should not go into MySQLdb.Connect

dbconfig = sinedon.getConfig('leginondata')
dbconnect = MySQLdb.Connect(**dbconfig)
dbconnect.autocommit(True)

Becomes

dbconfig = sinedon.getConfig('leginondata')
dbconnect = sinedon.sqldb.connect(**dbconfig)


Related issues 1 (1 open0 closed)

Related to Leginon - Task #5223: migrate sinedon to be compatible with InnoDB sql engineAssignedAnchi Cheng09/20/2017

Actions
Actions #1

Updated by Anchi Cheng over 6 years ago

  • Description updated (diff)
Actions #2

Updated by Anchi Cheng over 6 years ago

  • Related to Task #5223: migrate sinedon to be compatible with InnoDB sql engine added
Actions #3

Updated by Anchi Cheng about 5 years ago

  • Status changed from New to Closed
  • Target version set to Appion/Leginon 3.4
Actions #4

Updated by Anchi Cheng about 5 years ago

  • Target version changed from Appion/Leginon 3.4 to Appion/Leginon 3.3
Actions

Also available in: Atom PDF