back
This commit is contained in:
parent
fbfc6c7927
commit
e42a4bb3e2
|
|
@ -5,8 +5,7 @@
|
||||||
<h4>Agenturimport</h4>
|
<h4>Agenturimport</h4>
|
||||||
<small>Agenturen können hier importiert werden und erhalten einen detallierten Bericht. Bereits importierte Agenturen speichern ihre MainGroupID in Nextcloud</small>
|
<small>Agenturen können hier importiert werden und erhalten einen detallierten Bericht. Bereits importierte Agenturen speichern ihre MainGroupID in Nextcloud</small>
|
||||||
<hr>
|
<hr>
|
||||||
<a href="{% url 'api:apisetuserstatus' %}" class="btn btn-danger btn-sm">Nutzerstatus von Nutzer initialisieren</a>
|
|
||||||
<hr>
|
|
||||||
<table class="table table-hover" id="agdata" >
|
<table class="table table-hover" id="agdata" >
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ urlpatterns = [
|
||||||
path('prepareswitchstandards/', views.NCGetFilesForStandardSwitch, name="apiswitchstandardsprepare"),
|
path('prepareswitchstandards/', views.NCGetFilesForStandardSwitch, name="apiswitchstandardsprepare"),
|
||||||
|
|
||||||
path('setlog/', views.SetUserData, name="apisetlog"),
|
path('setlog/', views.SetUserData, name="apisetlog"),
|
||||||
path('setinituserstat/', views.SetInitUserStat, name="apisetuserstatus"),
|
|
||||||
# EXTERNAL FROM NC
|
# EXTERNAL FROM NC
|
||||||
path('logout/<str:uid>', views.apilogout, name="api-logout"),
|
path('logout/<str:uid>', views.apilogout, name="api-logout"),
|
||||||
path('uschanged/<str:uid>/<str:sid>', views.userChangedInNc, name="api-userchanged"),
|
path('uschanged/<str:uid>/<str:sid>', views.userChangedInNc, name="api-userchanged"),
|
||||||
|
|
|
||||||
|
|
@ -421,14 +421,6 @@ def SetUserData(request):
|
||||||
return JsonResponse({'message' : 'USER NOT FOUND'})
|
return JsonResponse({'message' : 'USER NOT FOUND'})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@api_view(['GET'], )
|
|
||||||
def SetInitUserStat(request):
|
|
||||||
|
|
||||||
r = requests.post(settings.NEXTCLOUD_URL + "ocs/v2.php/apps/da_agency/api/v1/setuserstatusinit?format=json", auth=(settings.NEXTCLOUD_USER_API, settings.NEXTCLOUD_PW_API), data={})
|
|
||||||
|
|
||||||
return JsonResponse({'status' : True, 'message': r.text})
|
|
||||||
|
|
||||||
def getFileIdFromXML(xmlresponse):
|
def getFileIdFromXML(xmlresponse):
|
||||||
try:
|
try:
|
||||||
split_response = xmlresponse.split("<oc:fileid>")
|
split_response = xmlresponse.split("<oc:fileid>")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue