2016-03-31 16:03:38 +08:00
|
|
|
from flask import redirect, request
|
|
|
|
from webViews.dockletrequest import dockletRequest
|
|
|
|
from webViews.view import normalView
|
|
|
|
import json
|
|
|
|
|
|
|
|
class grouplistView(normalView):
|
|
|
|
template_path = "user/grouplist.html"
|
|
|
|
|
|
|
|
class groupdetailView(normalView):
|
|
|
|
@classmethod
|
|
|
|
def post(self):
|
|
|
|
return json.dumps(dockletRequest.post('/user/groupList/'))
|
|
|
|
|
|
|
|
class groupqueryView(normalView):
|
|
|
|
@classmethod
|
|
|
|
def post(self):
|
|
|
|
return json.dumps(dockletRequest.post('/user/groupQuery/', request.form))
|
|
|
|
|
|
|
|
class groupmodifyView(normalView):
|
|
|
|
@classmethod
|
|
|
|
def post(self):
|
|
|
|
result = json.dumps(dockletRequest.post('/user/groupModify/', request.form))
|
2017-06-16 16:01:46 +08:00
|
|
|
return redirect('/settings/')
|