def populate():
 print
 print 'Creating roles...'
 create_roles()
 print 'Creating services...'
 create_services()
 print 'Creating permissions...'
 create_permissions()
 print 'Creating custom system roles...'
 create_custom_sys_roles()
 print 'Creating admin panel permissions...'
 create_panel_permissions()
 print 'Creating user permissions...'
 create_user_permissions()
 print 'Creating admin message settings...'
 create_admin_message_settings()
 db.session.commit()

def populate ( ) : print print 'Creating roles...' create_roles ( ) print 'Creating services...' create_services ( ) print 'Creating permissions...' create_permissions ( ) print 'Creating custom system roles...' create_custom_sys_roles ( ) print 'Creating admin panel permissions...' create_panel_permissions ( ) print 'Creating user permissions...' create_user_permissions ( ) print 'Creating admin message settings...' create_admin_message_settings ( ) db . session . commit ( )
populate table with n records .