Code restyling

This commit is contained in:
stamparm 2013-04-15 14:31:27 +02:00
parent aed738d6e6
commit f936746423
11 changed files with 12 additions and 11 deletions

View File

@ -41,7 +41,7 @@ class SQLAlchemy(GenericConnector):
except Exception, msg: except Exception, msg:
raise SqlmapConnectionException(msg[0]) raise SqlmapConnectionException(msg[0])
self.connected() self.printConnected()
def fetchall(self): def fetchall(self):
try: try:

View File

@ -46,7 +46,7 @@ class Connector(GenericConnector):
raise SqlmapConnectionException(msg[1]) raise SqlmapConnectionException(msg[1])
self.initCursor() self.initCursor()
self.connected() self.printConnected()
def fetchall(self): def fetchall(self):
try: try:

View File

@ -39,7 +39,7 @@ class Connector(GenericConnector):
self.initCursor() self.initCursor()
self.connected() self.printConnected()
def fetchall(self): def fetchall(self):
try: try:

View File

@ -43,8 +43,9 @@ class Connector(GenericConnector):
user=self.user.encode(UNICODE_ENCODING), password=self.password.encode(UNICODE_ENCODING), charset="UTF8") # Reference: http://www.daniweb.com/forums/thread248499.html user=self.user.encode(UNICODE_ENCODING), password=self.password.encode(UNICODE_ENCODING), charset="UTF8") # Reference: http://www.daniweb.com/forums/thread248499.html
except kinterbasdb.OperationalError, msg: except kinterbasdb.OperationalError, msg:
raise SqlmapConnectionException(msg[1]) raise SqlmapConnectionException(msg[1])
self.initCursor() self.initCursor()
self.connected() self.printConnected()
def fetchall(self): def fetchall(self):
try: try:

View File

@ -45,7 +45,7 @@ class Connector(GenericConnector):
raise SqlmapConnectionException(msg) raise SqlmapConnectionException(msg)
self.initCursor() self.initCursor()
self.connected() self.printConnected()
def fetchall(self): def fetchall(self):
try: try:

View File

@ -40,7 +40,7 @@ class Connector(GenericConnector):
raise SqlmapConnectionException(msg[1]) raise SqlmapConnectionException(msg[1])
self.initCursor() self.initCursor()
self.connected() self.printConnected()
def fetchall(self): def fetchall(self):
try: try:

View File

@ -49,7 +49,7 @@ class Connector(GenericConnector):
raise SqlmapConnectionException(msg) raise SqlmapConnectionException(msg)
self.initCursor() self.initCursor()
self.connected() self.printConnected()
def fetchall(self): def fetchall(self):
try: try:

View File

@ -42,7 +42,7 @@ class Connector(GenericConnector):
self.connector.set_client_encoding('UNICODE') self.connector.set_client_encoding('UNICODE')
self.initCursor() self.initCursor()
self.connected() self.printConnected()
def fetchall(self): def fetchall(self):
try: try:

View File

@ -64,7 +64,7 @@ class Connector(GenericConnector):
raise SqlmapConnectionException(msg[0]) raise SqlmapConnectionException(msg[0])
self.initCursor() self.initCursor()
self.connected() self.printConnected()
def fetchall(self): def fetchall(self):
try: try:

View File

@ -45,7 +45,7 @@ class Connector(GenericConnector):
raise SqlmapConnectionException(msg) raise SqlmapConnectionException(msg)
self.initCursor() self.initCursor()
self.connected() self.printConnected()
def fetchall(self): def fetchall(self):
try: try:

View File

@ -29,7 +29,7 @@ class Connector:
self.port = conf.port self.port = conf.port
self.db = conf.dbmsDb self.db = conf.dbmsDb
def connected(self): def printConnected(self):
infoMsg = "connection to %s server %s" % (conf.dbms, self.hostname) infoMsg = "connection to %s server %s" % (conf.dbms, self.hostname)
infoMsg += ":%d established" % self.port infoMsg += ":%d established" % self.port
logger.info(infoMsg) logger.info(infoMsg)