def lectureMenu(): usr = getUser() if usr and usr.inRole("student"): addMenu("/assigments","Zadání",25) if usr and usr.inRole("lector"): addMenu("/assigments-lector","Zadání",10, Assigment.getPendingCount(usr.login) )
def lectureMenu(): usr = getUser() if usr and usr.inRole("student"): addMenu("/assigments", "Zadání", 25) if usr and usr.inRole("lector"): addMenu("/assigments-lector", "Zadání", 10, Assigment.getPendingCount(usr.login))
def groupMenu(): usr = getUser() if usr and usr.inRole("lector"): addMenu("/templates", "Šablony", 90)
def lectureMenu(): usr = getUser() if usr and usr.inRole("lector"): addMenu("/lectures", "Cvičení", 25)
def lectureMenu(): usr = getUser() if usr and usr.inRole("lector"): addMenu("/lectures","Cvičení",25)