Example #1
0
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))
Example #3
0
def groupMenu():
    usr = getUser()

    if usr and usr.inRole("lector"):
        addMenu("/templates", "Šablony", 90)
Example #4
0
def lectureMenu():
    usr = getUser()

    if usr and usr.inRole("lector"):
        addMenu("/lectures", "Cvičení", 25)
Example #5
0
def lectureMenu():
    usr = getUser() 

    if usr and usr.inRole("lector"):
        addMenu("/lectures","Cvičení",25)