#NEWLINE# @ classmethod #NEWLINE# def save( cls , instance = None ) : #NEWLINE# #INDENT# 'Save current changes for instance in DB.\n\n        Current transaction will be commited\n        (in case of SQLAlchemy).\n\n        :param instance: object (model) instance\n        :returns: None\n        ' #NEWLINE# if instance : #NEWLINE# #INDENT# db ( ) . add ( instance ) #NEWLINE# #UNINDENT# db ( ) . commit ( )