def addNewSite(self, site, stype, cache, path, enabled=True, ssl=False, fs='ext4', db='mysql', db_name=None, db_user=None, db_password=None, db_host='localhost', hhvm=0, pagespeed=0, php_version='5.5'):
 try:
  newRec = SiteDB(site, stype, cache, path, enabled, ssl, fs, db, db_name, db_user, db_password, db_host, hhvm, pagespeed, php_version)
  db_session.add(newRec)
  db_session.commit()
 except Exception as e:
  Log.debug(self, '{0}'.format(e))
  Log.error(self, 'Unable to add site to database')

def addNewSite ( self , site , stype , cache , path , enabled = True , ssl = False , fs = 'ext4' , db = 'mysql' , db_name = None , db_user = None , db_password = None , db_host = 'localhost' , hhvm = 0 , pagespeed = 0 , php_version = '5.5' ) : try : newRec = SiteDB ( site , stype , cache , path , enabled , ssl , fs , db , db_name , db_user , db_password , db_host , hhvm , pagespeed , php_version ) db_session . add ( newRec ) db_session . commit ( ) except Exception as e : Log . debug ( self , '{0}' . format ( e ) ) Log . error ( self , 'Unable to add site to database' )
add new site record information into ee database .