Univention Bugzilla – Attachment 9512 Details for
Bug 46870
umcp auth command not working when using exam mode as saml user
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Propsed patch
patch (text/plain), 1.04 KB, created by
Jürn Brodersen
on 2018-04-24 16:30:13 CEST
(
hide
)
Description:
Propsed patch
Filename:
MIME Type:
Creator:
Jürn Brodersen
Created:
2018-04-24 16:30:13 CEST
Size:
1.04 KB
patch
obsolete
>diff --git a/ucs-school-umc-exam/umc/python/schoolexam/__init__.py b/ucs-school-umc-exam/umc/python/schoolexam/__init__.py >index cc45384f..7a0fdb8d 100644 >--- a/ucs-school-umc-exam/umc/python/schoolexam/__init__.py >+++ b/ucs-school-umc-exam/umc/python/schoolexam/__init__.py >@@ -68,6 +68,7 @@ class Instance(SchoolBaseModule): > SchoolBaseModule.__init__(self) > self._tmpDir = None > self._progress_state = util.Progress() >+ self._last_progress_state = None > self._lessons = SchoolLessons() > > def init(self): >@@ -148,7 +149,16 @@ class Instance(SchoolBaseModule): > > @simple_response > def progress(self): >- return self._progress_state.poll() >+ progress_state = self._progress_state.poll() >+ timeout = 5 >+ seconds_elapsed = 0 >+ while progress_state == self._last_progress_state or timeout > seconds_elapsed: >+ progress_state = self._progress_state.poll() >+ time.sleep(1) >+ seconds_elapsed += 1 >+ if progress_state['finished']: >+ self._progress_state.reset() >+ return progress_state > > @sanitize( > name=StringSanitizer(required=True),
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 46870
:
9512
|
9523
|
9571