@@ -90,7 +90,7 @@ class osdbError(Exception):
9090
9191class osdbConnectError (osdbError ):
9292 """
93- OSDB: connecton error handler
93+ OSDB: connection error handler
9494 """
9595 pass
9696
@@ -215,7 +215,7 @@ def __init__(self, db_url, db_name):
215215 execution_options (autocommit = True )
216216 # connect the Session object to our engine
217217 self .Session .configure (bind = self .__engine )
218- # instanciate the Session object
218+ # instantiate the Session object
219219 self .__session = self .Session ()
220220 except sqlalchemy .exc .OperationalError as se :
221221 if self .dialect == "mysql" :
@@ -268,7 +268,7 @@ def alter_role(self, role_name, role_options=None, role_password=None):
268268 try :
269269 result = self .__conn .execute (sqlcmd )
270270 if result :
271- logger .info ( "{} was successfull " .format (msg ))
271+ logger .info ( "{} was successful " .format (msg ))
272272 except :
273273 logger .error ("%s failed" , msg )
274274 return False
@@ -292,7 +292,7 @@ def connect(self, db_name=None):
292292 self .__conn = engine .connect ()
293293 # connect the Session object to our engine
294294 self .Session .configure (bind = self .__engine )
295- # instanciate the Session object
295+ # instantiate the Session object
296296 self .session = self .Session ()
297297 logger .debug ("connected to database URL '%s'" , self .db_url )
298298 elif self .dialect != "sqlite" :
@@ -440,7 +440,7 @@ def ensure_user(self, db_url):
440440 def create_role (self , role_name , role_password , update = False ,
441441 role_options = "NOCREATEDB NOCREATEROLE LOGIN" ):
442442 """
443- create a role object (PostgreSQL secific )
443+ create a role object (PostgreSQL specific )
444444 """
445445 # TODO: is any other dialect using the "role" concept?
446446 if self .dialect != "postgresql" :
@@ -490,7 +490,7 @@ def delete(self, table, filter_keys=None):
490490
491491 def destroy (self ):
492492 """
493- decontructor of a database object
493+ destructor of a database object
494494 """
495495 # TODO: do this only for SQLAlchemy
496496 if not self .__conn :
@@ -699,7 +699,7 @@ def get_where(self, filter_keys):
699699
700700 def get_role (self , role_name = "opensips" ):
701701 """
702- get attibutes of a role object (PostgreSQL specific)
702+ get attributes of a role object (PostgreSQL specific)
703703 """
704704 # TODO: is any other dialect using the "role" concept?
705705 if self .dialect != "postgresql" :
@@ -724,7 +724,7 @@ def get_role(self, role_name="opensips"):
724724
725725 def grant_db_options (self , role_name , on_statement , privs = "ALL PRIVILEGES" ):
726726 """
727- assign attibutes to a role object (PostgreSQL specific)
727+ assign attributes to a role object (PostgreSQL specific)
728728 """
729729 # TODO: is any other dialect using the "role" concept?
730730 if self .dialect != "postgresql" :
0 commit comments