示例#1
0
# -*- coding: utf-8 -*-
from django.conf.urls import url
from django.contrib.auth.decorators import login_required

from apps.comun.decoradores import group_required
from apps.bitacora.views import BitacoraEmpleado, RegistroBitacoraAPI, BitacoraAPI, BitacoraLista, BitacoraReporte

urlpatterns = [
    url(r'^$',
        group_required("empleado")(login_required(BitacoraEmpleado.as_view())),
        name="bitacora_empleado"),
    # Url para la data table
    url(r'^bitacora_lista',
        group_required("empleado")(login_required(BitacoraLista.as_view())),
        name="bitacora_lista"),
    url(r'^bitacora_reporte',
        group_required("recursos_humanos", "administrador")(login_required(
            BitacoraReporte.as_view())),
        name="bitacora_reporte"),
    # Urls para registrar y consultar registros
    url(r'^registro_api', RegistroBitacoraAPI.as_view(), name="registro_api"),
    url(r'^bitacora_api', BitacoraAPI.as_view(), name="bitacora_api"),
]
示例#2
0
# coding=utf-8
from django.conf.urls import url
from django.contrib.auth.decorators import login_required

from apps.empleado.views import EmpleadoFormView, EmpleadoList, EmpleadoRecycle, DeleteAPI, RestoreAPI, DatosAPI, \
    DatosActivos, DatosInactivos, ImportarExcel, ExportarEmpleados
from apps.comun.decoradores import group_required, staff_super_usuario_logeado
from apps.archivo.views import FotoEmpleadoFormView

urlpatterns = [
    url(r'^$',
        group_required("recursos_humanos", "administrador")(login_required(
            EmpleadoList.as_view())),
        name='empleado_list'),
    url(r'^nuevos$',
        group_required("recursos_humanos", "administrador")(login_required(
            ImportarExcel.as_view())),
        name='importar_excel'),
    url(r'^eliminar$',
        group_required("recursos_humanos",
                       "administrador")(login_required(DeleteAPI.as_view())),
        name='empleado_eliminar'),
    url(r'^nuevo$',
        group_required("recursos_humanos", "administrador")(login_required(
            EmpleadoFormView.as_view())),
        name='empleado_nuevo'),
    url(r'^editar/$',
        group_required("recursos_humanos", "administrador")(login_required(
            EmpleadoFormView.as_view())),
        name='empleado_editar'),
    url(r'^editar/(?P<pk>\d+)$',
示例#3
0
from django.conf.urls import url
from django.contrib.auth.decorators import login_required

from apps.comun.decoradores import group_required, staff_super_usuario_logeado
from apps.punto_control.views import PuntoControlList, PuntoControlAPI, DeletePuntoControlAPI, PuntoControlFormView, \
    PuntoControlRecycle, RestorePuntoControlAPI, PuntosActivos, PuntosInactivos, \
    ReleasePuntoControlAPI, BlockPuntoControlAPI

urlpatterns = [
    url(r'^$', group_required("configurador", "administrador")(login_required(PuntoControlList.as_view())),
        name='punto_control_list'),
    url(r'^eliminar$', group_required("configurador", "administrador")(login_required(DeletePuntoControlAPI.as_view())),
        name='punto_control_eliminar'),
    url(r'^bloquear$', group_required("configurador", "administrador")(login_required(BlockPuntoControlAPI.as_view())),
        name='punto_control_bloquear'),
    url(r'^liberar$', group_required("configurador", "administrador")(login_required(ReleasePuntoControlAPI.as_view())),
        name='punto_control_liberar'),
    url(r'^nuevo$', group_required("configurador", "administrador")(login_required(PuntoControlFormView.as_view())),
        name='punto_control_nuevo'),
    url(r'^agregar/instalacion/$',
        group_required("configurador", "administrador")(login_required(PuntoControlFormView.as_view())),
        name='punto_control_nuevo_instalacion'),
    url(r'^agregar/instalacion/(?P<fk>\d+)$',
        group_required("configurador", "administrador")(login_required(PuntoControlFormView.as_view())),
        name='punto_control_nuevo_instalacion'),
    url(r'^editar/$', group_required("configurador", "administrador")(login_required(PuntoControlFormView.as_view())),
        name='punto_control_editar'),
    # Url para las data tables de empleado list y recycle
    url(r'^punto_control_activos$',
        group_required("configurador", "administrador")(login_required(PuntosActivos.as_view())),
        name='puntos_control_activos'),
示例#4
0
from django.conf.urls import url
from django.contrib.auth.decorators import login_required

from apps.comun.decoradores import group_required, staff_super_usuario_logeado
from apps.punto_control.views import PuntoControlList, PuntoControlAPI, DeletePuntoControlAPI, PuntoControlFormView, \
    PuntoControlRecycle, RestorePuntoControlAPI, PuntosActivos, PuntosInactivos, \
    ReleasePuntoControlAPI, BlockPuntoControlAPI

urlpatterns = [
    url(r'^$',
        group_required("configurador", "administrador")(login_required(
            PuntoControlList.as_view())),
        name='punto_control_list'),
    url(r'^eliminar$',
        group_required("configurador", "administrador")(login_required(
            DeletePuntoControlAPI.as_view())),
        name='punto_control_eliminar'),
    url(r'^bloquear$',
        group_required("configurador", "administrador")(login_required(
            BlockPuntoControlAPI.as_view())),
        name='punto_control_bloquear'),
    url(r'^liberar$',
        group_required("configurador", "administrador")(login_required(
            ReleasePuntoControlAPI.as_view())),
        name='punto_control_liberar'),
    url(r'^nuevo$',
        group_required("configurador", "administrador")(login_required(
            PuntoControlFormView.as_view())),
        name='punto_control_nuevo'),
    url(r'^agregar/instalacion/$',
        group_required("configurador", "administrador")(login_required(
示例#5
0
文件: urls.py 项目: Gerardo93/cda
from django.conf.urls import url
from django.contrib.auth.decorators import login_required

from apps.comun.decoradores import group_required, staff_super_usuario_logeado
from apps.instalacion.views import InstalacionFormView, InstalacionAPI, InstalacionList, DeleteInstalacionAPI,\
    RestoreInstalacionAPI, InstalacionRecycle, InstalacionActivos, InstalacionInactivos

urlpatterns = [
    url(r'^$',
        group_required("configurador", "administrador")(login_required(
            InstalacionList.as_view())),
        name='instalacion_list'),
    url(r'^eliminar$',
        group_required("configurador", "administrador")(login_required(
            DeleteInstalacionAPI.as_view())),
        name='instalacion_eliminar'),
    url(r'^nuevo$',
        group_required("configurador", "administrador")(login_required(
            InstalacionFormView.as_view())),
        name='instalacion_nuevo'),
    url(r'^editar/$',
        group_required("configurador", "administrador")(login_required(
            InstalacionFormView.as_view())),
        name='instalacion_editar'),
    # Url para las data tables de instalacion list y recycle
    url(r'^instalacion_activos$',
        group_required("configurador", "administrador")(login_required(
            InstalacionActivos.as_view())),
        name='instalacion_activos'),
    url(r'^instalacion_inactivos$',
        group_required("configurador", "administrador")(login_required(
示例#6
0
from django.conf.urls import url
from django.contrib.auth.decorators import login_required

from apps.archivo.views import FotoEmpleadoAPI, FotoEmpleadoClienteAPI, SubirFotoEmpleadoClienteApi, \
    RegistroHuellaDigital, BorrarHuellaDigital
from apps.comun.decoradores import group_required

urlpatterns = [
    url(r'^foto_empleado_api$', group_required("empleado")(login_required(FotoEmpleadoAPI.as_view())),
        name='foto_empleado_api'),
    url(r'^foto_empleado_cliente_api$', FotoEmpleadoClienteAPI.as_view(), name='foto_empleado_cliente_api'),
    url(r'^subir_foto_empleado_cliente_api$', SubirFotoEmpleadoClienteApi.as_view(),
        name='subir_foto_empleado_cliente_api'),
    url(r'^registro_huella_digital$', RegistroHuellaDigital.as_view(), name='registro_huella_digital'),
    url(r'^borrar_huella_digital$', group_required("empleado")(login_required(BorrarHuellaDigital.as_view())),
        name='borrar_huella_digital'),
]
示例#7
0
文件: urls.py 项目: Gerardo93/cda
# -*- coding: utf-8 -*-
from django.conf.urls import url
from django.contrib.auth.decorators import login_required
from apps.comun.decoradores import group_required
from apps.reporte.views import Reporte

urlpatterns = [
    url(r'^$',
        group_required("recursos_humanos",
                       "administrador")(login_required(Reporte.as_view())),
        name="reporte_recursos"),
]
示例#8
0
# coding=utf-8
from django.conf.urls import url
from django.contrib.auth.decorators import login_required
from django.contrib.auth.views import password_change_done, password_reset, password_reset_done, \
    password_reset_confirm, password_reset_complete

from apps.archivo.views import FotoEmpleadoFormView
from apps.comun.decoradores import no_logeado, group_required
from apps.usuario.views import UsuarioDireccion, PasswordAPI, RegistroView, RegistroCompletoView, ModificarEmailForm, \
    UsuarioAdminDatosForm, EmailAPI, restaurar_password, cambiar_password, LoginTokenAPI, GrupoAPI, \
    AsignarPuntoControlAPI, ResetearInformar

urlpatterns = [
    url(r'^direccion$',
        group_required('empleado')(login_required(UsuarioDireccion.as_view())),
        name='usuario_direccion'),
    url(r'^password_api$',
        group_required('empleado')(login_required(PasswordAPI.as_view())),
        name='password_api'),
    url(r'^email_api',
        group_required('empleado')(login_required(EmailAPI.as_view())),
        name='email_api'),
    url(r'^registro/$',
        login_required(RegistroView.as_view()),
        name='registro'),
    url(r'^registro/completo/$',
        no_logeado(RegistroCompletoView.as_view()),
        name='registro_completo'),
    url(r'^registro/completo/(?P<ne>\d+)$',
        no_logeado(RegistroCompletoView.as_view()),
        name='registro_completo'),
示例#9
0
文件: urls.py 项目: Gerardo93/cda
# -*- coding: utf-8 -*-
from django.conf.urls import url
from django.contrib.auth.decorators import login_required

from apps.comun.decoradores import group_required
from apps.configuracion.views import ConfiguracionServidorFormView, ConfiguracionAPI, ConfiguracionEmpleadoFormView, \
    ConfiguracionList, DeleteConfiguracionAPI, ConfiguracionEmpleados

urlpatterns = [
    url(r'^servidor$',
        group_required("configurador", "administrador")(login_required(ConfiguracionServidorFormView.as_view())),
        name="configuracion_servidor"),
    url(r'^empleado$',
        group_required("configurador", "administrador", "recursos_humanos")
        (login_required(ConfiguracionEmpleadoFormView.as_view())),
        name="configuracion_empleado"),
    url(r'^listar$',
        group_required("configurador", "administrador", "recursos_humanos")
        (login_required(ConfiguracionList.as_view())),
        name="configuracion_lista"),
    url(r'^eliminar$',
        group_required("configurador", "administrador", "recursos_humanos")
        (login_required(DeleteConfiguracionAPI.as_view())),
        name='configuracion_eliminar'),
    url(r'^editar/$',
        group_required("configurador", "administrador", "recursos_humanos")
        (login_required(ConfiguracionEmpleadoFormView.as_view())),
        name='configuracion_editar'),
    url(r'^editar/(?P<pk>\d+)$',
        group_required("configurador", "administrador", "recursos_humanos")
        (login_required(ConfiguracionEmpleadoFormView.as_view())),
示例#10
0
from django.conf.urls import url
from django.contrib.auth.decorators import login_required

from apps.archivo.views import FotoEmpleadoAPI, FotoEmpleadoClienteAPI, SubirFotoEmpleadoClienteApi, \
    RegistroHuellaDigital, BorrarHuellaDigital
from apps.comun.decoradores import group_required

urlpatterns = [
    url(r'^foto_empleado_api$',
        group_required("empleado")(login_required(FotoEmpleadoAPI.as_view())),
        name='foto_empleado_api'),
    url(r'^foto_empleado_cliente_api$',
        FotoEmpleadoClienteAPI.as_view(),
        name='foto_empleado_cliente_api'),
    url(r'^subir_foto_empleado_cliente_api$',
        SubirFotoEmpleadoClienteApi.as_view(),
        name='subir_foto_empleado_cliente_api'),
    url(r'^registro_huella_digital$',
        RegistroHuellaDigital.as_view(),
        name='registro_huella_digital'),
    url(r'^borrar_huella_digital$',
        group_required("empleado")(login_required(
            BorrarHuellaDigital.as_view())),
        name='borrar_huella_digital'),
]