Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions firefly/_version.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#coding:utf8
'''
Created on 2013-10-21

@author: lan (www.9miao.com)
'''

from twisted.python import versions
version = versions.Version('firefly', 1, 3, 3)
#coding:utf8
'''
Created on 2013-10-21
@author: lan (www.9miao.com)
'''
from twisted.python import versions
version = versions.Version('firefly', 1, 3, 4)
Empty file modified firefly/dbentrust/__init__.py
100644 → 100755
Empty file.
52 changes: 26 additions & 26 deletions firefly/dbentrust/dbpool.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
#coding:utf8
'''
Created on 2013-5-8

@author: lan (www.9miao.com)
'''
from DBUtils.PooledDB import PooledDB
import MySQLdb

DBCS = {'mysql':MySQLdb,}

class DBPool(object):
'''
'''
def initPool(self,**kw):
'''
'''
self.config = kw
creator = DBCS.get(kw.get('engine','mysql'),MySQLdb)
self.pool = PooledDB(creator,5,**kw)

def connection(self):
return self.pool.connection()

dbpool = DBPool()

#coding:utf8
'''
Created on 2013-5-8
@author: lan (www.9miao.com)
'''
from DBUtils.PooledDB import PooledDB
import MySQLdb
DBCS = {'mysql':MySQLdb,}
class DBPool(object):
'''
'''
def initPool(self,**kw):
'''
'''
self.config = kw
creator = DBCS.get(kw.get('engine','mysql'),MySQLdb)
self.pool = PooledDB(creator,5,**kw)
def connection(self):
return self.pool.connection()
dbpool = DBPool()
Loading