コード例 #1
0
#coding:utf-8
from django.conf.urls import patterns, include, url
from devoops.views import checkGp, writLogs, updateVer

from ymyj.views import *

#@method_decorator(checkGp(['ops','ymyj']))
#@method_decorator(writLogs)
#def dispatch(self, request,*args, **kwargs):
#    return super(UpdateView, self).dispatch(request,*args, **kwargs)

urlpatterns = patterns(
    '',
    url(r'^$',
        checkGp(['ops', 'gamer'])(writLogs(updateVer)), {
            'appname': 'gamer',
            'apptitle': 'Gamer(天津怪糖)-更新',
            'referesh_website': ''
        }),
    url(r'update/$',
        checkGp(['ops', 'gamer'])(writLogs(updateVer)), {
            'appname': 'gamer',
            'apptitle': 'Gamer(天津怪糖)-更新',
            'referesh_website': ''
        }),
    url(r'services/$',
        checkGp(['ops', 'gamer'])(writLogs(updateVer)), {
            'appname': 'game',
            'apptitle': 'Gamer(天津怪糖)-更新',
            'referesh_website': ''
        }))
コード例 #2
0
ファイル: urls.py プロジェクト: Leoboy/devoops
#coding:utf-8
from django.conf.urls import patterns, include, url
from devoops.views import updateVer, checkGp, writLogs

urlpatterns = patterns(
    '',
    url(
        r'^$',
        checkGp(['ops', 'ddz'])(writLogs(updateVer)), {
            'appname': 'ddz',
            'apptitle': 'DDZ(棋乐斗地主)-更新',
            'referesh_website': 'http://cdn.platform.qile.club/'
        }),
    url(
        r'^update/$',
        checkGp(['ops', 'ddz'])(writLogs(updateVer)), {
            'appname': 'ddz',
            'apptitle': 'DDZ(棋乐斗地主)-更新',
            'referesh_website': 'http://cdn.platform.qile.club/'
        }),
)
コード例 #3
0
#coding:utf-8
from django.conf.urls import patterns, include, url
from devoops.views import updateVer, checkGp, writLogs

urlpatterns = patterns(
    '',
    url(r'^$',
        checkGp(['ops', 'tstd'])(writLogs(updateVer)), {
            'appname': 'tstd',
            'apptitle': 'TSTD(三国)-更新',
            'referesh_website': ''
        }),
    url(r'^update/$',
        checkGp(['ops', 'tstd'])(writLogs(updateVer)), {
            'appname': 'tstd',
            'apptitle': 'TSTD(三国)-更新',
            'referesh_website': ''
        }),
)
コード例 #4
0
from django.conf.urls import patterns, include, url
from devoops.views import checkGp, writLogs, method_splitter, ShowUser, ShowHost, ShowGp, ShowSp, ShowSecurity, ShowIp
from ops import views

urlpatterns = patterns(
    '',
    url(
        r'^user/$', method_splitter, {
            'GET': checkGp(['ops'])(writLogs(ShowUser.as_view())),
            'POST': views.user_post
        }),
    url(r'^showhost/$',
        checkGp(['ops'])(writLogs(ShowHost.as_view()))),
    url(r'^showhost/(?P<page>\d+)/$',
        checkGp(['ops'])(writLogs(ShowHost.as_view()))),
    url(r'^sethost/add/$', views.addhost),
    url(r'^sethost/del/(\d+)/$', views.delhost),
    url(r'^sethost/mod/(\d+)/$', views.modhost),
    url(r'^sethost/mod/$', views.modhost),
    url(
        r'^sethost/gameplat/$', method_splitter, {
            'GET': checkGp(['ops'])(writLogs(ShowGp.as_view())),
            'POST': views.gameplat_post
        }),
    url(
        r'^sethost/serverplat/$', method_splitter, {
            'GET': checkGp(['ops'])(writLogs(ShowSp.as_view())),
            'POST': views.serverplat_post
        }),
    url(
        r'^security/$', method_splitter, {
コード例 #5
0
ファイル: urls.py プロジェクト: Leoboy/devoops
#coding:utf-8
from django.conf.urls import patterns, include, url
from devoops.views import updateVer, checkGp, writLogs

urlpatterns = patterns(
    '',
    url(
        r'^$',
        checkGp(['ops', 'superstar'])(writLogs(updateVer)), {
            'appname': 'superstar',
            'apptitle': 'superstar(篮球)-更新',
            'referesh_website': ''
        }),
    url(
        r'^update/$',
        checkGp(['ops', 'superstar'])(writLogs(updateVer)), {
            'appname': 'superstar',
            'apptitle': 'superstar(篮球)-更新',
            'referesh_website': ''
        }),
)
コード例 #6
0
#coding:utf-8
from django.conf.urls import patterns, include, url
from devoops.views import checkGp, writLogs, updateVer

from ymyj.views import *

#@method_decorator(checkGp(['ops','ymyj']))
#@method_decorator(writLogs)
#def dispatch(self, request,*args, **kwargs):
#    return super(UpdateView, self).dispatch(request,*args, **kwargs)

urlpatterns = patterns(
    '',
    url(
        r'^$',
        checkGp(['ops', 'ymyj'])(writLogs(updateVer)), {
            'appname': 'ymyj',
            'apptitle': 'YMYJ(三个奶爸)-更新',
            'referesh_website': 'http://y.osg.so/'
        }),
    url(
        r'update/$',
        checkGp(['ops', 'ymyj'])(writLogs(updateVer)), {
            'appname': 'ymyj',
            'apptitle': 'YMYJ(三个奶爸)-更新',
            'referesh_website': 'http://y.osg.so/'
        }),
    url(
        r'services/$',
        checkGp(['ops', 'ymyj'])(writLogs(updateVer)), {
            'appname': 'ymyj',