class CoursePrint
Prints the students of a course
Public Instance Methods
layout()
click to toggle source
# File Views/Course/Print.rb, line 6 def layout @visible = true @order = 100 @update = true gui_vbox do gui_vbox do show_print :print_presence show_print :print_exam_file end gui_window :missing_data do show_html :missing show_button :close end gui_window :printing do show_html :msg_print show_button :close end end end
rpc_list_choice_courses(session, args)
click to toggle source
# File Views/Course/Print.rb, line 32 def rpc_list_choice_courses(session, args) dputs(3) { "rpc_list_choice with #{name} - #{args.inspect}" } if args._courses.length > 0 course_id = args._courses[0] dputs(3) { "replying for course_id #{course_id}" } course = Courses.match_by_course_id(course_id) reply_visible(course.ctype.file_exam.to_s.length > 0, :print_exam_file) end end
rpc_update(session)
click to toggle source
Calls superclass method
# File Views/Course/Print.rb, line 27 def rpc_update(session) super(session) + reply_print(session) end