Browse Source

stopped display of built-ins by the logger

Kade Phillips 1 month ago
parent
commit
4cc47fa144
2 changed files with 1 additions and 3 deletions
  1. 1
    2
      catsoop/auth.py
  2. 0
    1
      requirements.txt

+ 1
- 2
catsoop/auth.py View File

@@ -190,6 +190,7 @@ def _get_user_information(context, into, course, username, do_preload=False):
190 190
         with open(fname) as f:
191 191
             text = f.read()
192 192
         exec(text, into)
193
+        loader.clean_builtins(into)
193 194
         LOGGER.warning("[auth] loaded from %s user=%s" % (fname, into))
194 195
     else:
195 196
         LOGGER.error("[auth] missing user definition file %s" % fname)
@@ -213,8 +214,6 @@ def _get_user_information(context, into, course, username, do_preload=False):
213 214
                     new_p.add(lesser)
214 215
             into["permissions"] = new_p
215 216
 
216
-    loader.clean_builtins(into)
217
-
218 217
     # impersonation
219 218
     if ("as" in context.get("cs_form", {})) and ("real_user" not in into):
220 219
         if "impersonate" not in into["permissions"]:

+ 0
- 1
requirements.txt View File

@@ -9,6 +9,5 @@ ply
9 9
 uwsgi
10 10
 websockets
11 11
 lxml
12
-uuid
13 12
 pylti
14 13
 oauthlib

Loading…
Cancel
Save