def get_repository_categories(app, id):
 sa_session = app.model.context.current
 return sa_session.query(app.model.RepositoryCategoryAssociation).filter((app.model.RepositoryCategoryAssociation.table.c.repository_id == app.security.decode_id(id)))

def get_repository_categories ( app , id ) : sa_session = app . model . context . current return sa_session . query ( app . model . RepositoryCategoryAssociation ) . filter ( ( app . model . RepositoryCategoryAssociation . table . c . repository_id == app . security . decode_id ( id ) ) )
get categories of a repository on the tool shed side from the database via id .