catalogApp.py
def showCategories():
    '''
    Shows all the categories in database by alphabetical order.
    '''
    categories = session.query(Category).order_by(asc(Category.name))
    if 'username' not in login_session:
        return render_template('guestcategories.html', categories=categories,
                               login_session=login_session)
    else:
        return render_template('categories.html', categories=categories,
                               login_session=login_session)

    Shows all the categories in database by alphabetical order.
    
Shows all the categories in database by alphabetical order.
Shows all the categories in database by alphabetical order .
def showCategories():
    categories = session.query(Category).order_by(asc(Category.name))
    if 'username' not in login_session:
        return render_template('guestcategories.html', categories=categories,
                               login_session=login_session)
    else:
        return render_template('categories.html', categories=categories,
                               login_session=login_session)
def showCategories ( ) : categories = session . query ( Category ) . order_by ( asc ( Category . name ) ) if 'username' not in login_session : return render_template ( 'guestcategories.html' , categories = categories , login_session = login_session ) else : return render_template ( 'categories.html' , categories = categories , login_session = login_session )
Shows all the categories in database by alphabetical order.
Shows all the categories in database by alphabetical order .
'''
    Shows all the categories in database by alphabetical order.
    '''