Skip to content
Snippets Groups Projects
Commit 06cf65ad authored by Jupiter Hu's avatar Jupiter Hu
Browse files

add missing module

parent c5c72d06
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python #!/usr/bin/python
import os, sys, traceback import os, sys, re, traceback
import django import django
os.environ['DJANGO_SETTINGS_MODULE'] = "karaage.conf.settings" os.environ['DJANGO_SETTINGS_MODULE'] = "karaage.conf.settings"
...@@ -24,7 +24,7 @@ def get_idps_from_metadata(cache_path): ...@@ -24,7 +24,7 @@ def get_idps_from_metadata(cache_path):
return idps return idps
def get_group_name(groupname): def get_group_name(groupname):
return re.sub('[!@#=$\s+]', "", groupName).lower() return re.sub('[!@#=$\s+]', "", groupname).lower()
def get_or_create_idp(entityID,name): def get_or_create_idp(entityID,name):
from karaage.institutes.forms import InstituteForm from karaage.institutes.forms import InstituteForm
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment