def _package_search(data_dict):
 context = {'model': model, 'session': model.Session, 'user': c.user, 'auth_user_obj': c.userobj}
 if (('sort' not in data_dict) or (not data_dict['sort'])):
  data_dict['sort'] = 'metadata_modified desc'
 if (('rows' not in data_dict) or (not data_dict['rows'])):
  data_dict['rows'] = ITEMS_LIMIT
 query = logic.get_action('package_search')(context, data_dict.copy())
 return (query['count'], query['results'])

def _package_search ( data_dict ) : context = { 'model' : model , 'session' : model . Session , 'user' : c . user , 'auth_user_obj' : c . userobj } if ( ( 'sort' not in data_dict ) or ( not data_dict [ 'sort' ] ) ) : data_dict [ 'sort' ] = 'metadata_modified desc' if ( ( 'rows' not in data_dict ) or ( not data_dict [ 'rows' ] ) ) : data_dict [ 'rows' ] = ITEMS_LIMIT query = logic . get_action ( 'package_search' ) ( context , data_dict . copy ( ) ) return ( query [ 'count' ] , query [ 'results' ] )
helper method that wraps the package_search action .