()
return dict(rows=rows)
example action using the internationalization operator T and flash
    rendered by views/default/index.html or views/generic.html
example action using the internationalization operator T and flash
    rendered by views/default/index.html or views/generic.html
example action using the internationalization operator T and flash rendered by views / default / index . html or views / generic . html
def index():
    """
    example action using the internationalization operator T and flash
    rendered by views/default/index.html or views/generic.html
    """
    if auth.user_id==1:
        rows = db(db.code).select(orderby=db.code.title)
    else:
        rows = db(db.code.created_by.belongs((auth.user_id,1))).select(orderby=db.code.title)
    return dict(rows=rows)
def index ( ) : if auth . user_id == 1 : rows = db ( db . code ) . select ( orderby = db . code . title ) else : rows = db ( db . code . created_by . belongs ( ( auth . user_id , 1 ) ) ) . select ( orderby = db . code . title ) return dict ( rows = rows )