Revisión 436
Añadido por Manu Mora Gordillo hace más de 12 años
controlies/trunk/applications/controlies/views/laptops/index.html | ||
---|---|---|
{{#response.files.append(URL('static','css/helper.css'))}}
|
||
{{#response.files.append(URL('static','css/dropdown.css'))}}
|
||
{{#response.files.append(URL('static','css/default.advanced.css'))}}
|
||
|
||
{{extend 'layout.html'}}
|
||
|
||
{{extend 'layout.html'}}
|
||
|
||
<div id="tabla_clientes" class="centerGrid">
|
||
<table id="list" width="100%"></table>
|
||
<div id="pager" style=""></div>
|
||
... | ... | |
jQuery("#messageLoading").show();
|
||
|
||
jQuery("#dialog-form").html("").css("display","none");
|
||
jQuery("#dialog-form").load("form.html", function() {
|
||
jQuery("#dialog-form").load("form.html", function(data) {
|
||
getAllLaptopTypes();
|
||
|
||
jQuery("#form_data #action").val("add");
|
controlies/trunk/applications/controlies/controllers/usuarios.py | ||
---|---|---|
from applications.controlies.modules.Users import Users
|
||
from applications.controlies.modules.Utils import Utils
|
||
|
||
def index():
|
||
def index():
|
||
if not auth.user: redirect(URL(c='default'))
|
||
return dict()
|
||
|
||
|
controlies/trunk/applications/controlies/controllers/reports.py | ||
---|---|---|
# coding: latin1
|
||
|
||
def laptops():
|
||
def laptops():
|
||
if not auth.user: redirect(URL(c='default'))
|
||
return dict()
|
||
|
||
def users():
|
||
def users():
|
||
if not auth.user: redirect(URL(c='default'))
|
||
return dict()
|
||
|
||
@service.json
|
controlies/trunk/applications/controlies/controllers/grupos.py | ||
---|---|---|
# coding: utf8
|
||
from applications.controlies.modules.Groups import Groups
|
||
|
||
def index():
|
||
def index():
|
||
if not auth.user: redirect(URL(c='default'))
|
||
return dict()
|
||
|
||
@service.json
|
controlies/trunk/applications/controlies/controllers/laptops_trademarks.py | ||
---|---|---|
from applications.controlies.modules.Utils import Utils
|
||
from applications.controlies.modules.Users import Users
|
||
|
||
def index():
|
||
def index():
|
||
if not auth.user: redirect(URL(c='default'))
|
||
return dict()
|
||
|
||
################## LAPTOPS ####################
|
controlies/trunk/applications/controlies/controllers/hosts.py | ||
---|---|---|
from applications.controlies.modules.Hosts import Hosts
|
||
|
||
def index():
|
||
#equivalente a list
|
||
return dict(message="hello from hosts.py")
|
||
if not auth.user:
|
||
session.flash='Debe iniciar sesión'
|
||
redirect(URL(c='default'))
|
||
return dict()
|
||
|
||
@service.json
|
||
def getHostData():
|
||
... | ... | |
|
||
#necesaria estas funciones en el controlador para poder cargar las vistas correspondientes:
|
||
def ltspservers():
|
||
if not auth.user:
|
||
session.flash='Debe iniciar sesión'
|
||
redirect(URL(c='default',f='index'))
|
||
|
||
return dict()
|
||
|
||
def workstations():
|
||
if not auth.user:
|
||
session.flash='Debe iniciar sesión'
|
||
redirect(URL(c='default',f='index'))
|
||
|
||
return dict()
|
||
|
||
def laptops():
|
||
if not auth.user:
|
||
session.flash='Debe iniciar sesión'
|
||
redirect(URL(c='default',f='index'))
|
||
|
||
return dict()
|
||
|
||
def form_ltspserver():
|
controlies/trunk/applications/controlies/controllers/laptops_groups.py | ||
---|---|---|
from applications.controlies.modules.LaptopsHistory import LaptopsHistory
|
||
from applications.controlies.modules.SQLiteConnection import SQLiteConnection
|
||
|
||
def index():
|
||
def index():
|
||
if not auth.user: redirect(URL(c='default'))
|
||
return dict()
|
||
|
||
@service.json
|
controlies/trunk/applications/controlies/controllers/laptops.py | ||
---|---|---|
from applications.controlies.modules.Users import Users
|
||
|
||
|
||
def index():
|
||
def index():
|
||
if not auth.user:
|
||
session.flash='Debe iniciar sesión'
|
||
redirect(URL(c='default'))
|
||
|
||
return dict()
|
||
|
||
################## LAPTOPS ####################
|
||
... | ... | |
return dict()
|
||
|
||
def form():
|
||
if not auth.user:
|
||
return "session_out"
|
||
|
||
return dict()
|
||
|
||
def call():
|
controlies/trunk/applications/controlies/controllers/thinclients.py | ||
---|---|---|
from applications.controlies.modules.Thinclients import Thinclients
|
||
|
||
def index():
|
||
#equivalente a list
|
||
return dict(message="hello from thinclients.py")
|
||
if not auth.user: redirect(URL(c='default'))
|
||
return dict()
|
||
|
||
@service.json
|
||
def getHostData():
|
controlies/trunk/applications/controlies/controllers/gestion.py | ||
---|---|---|
@service.json
|
||
@auth.requires_login()
|
||
def servidores_aula():
|
||
if not auth.user: redirect(URL(c='default',f='index'))
|
||
return dict()
|
||
|
||
@service.json
|
||
... | ... | |
|
||
@auth.requires_login()
|
||
def rayuela():
|
||
if not auth.user: redirect(URL(c='default',f='index'))
|
||
|
||
import StringIO
|
||
|
||
right_version=right_firefox_version(request.env.http_user_agent)
|
controlies/trunk/applications/controlies/modules/Utils/Utils.py | ||
---|---|---|
else:
|
||
homeDirectory = "/home/alumnos/"
|
||
|
||
return homeDirectory
|
||
return homeDirectory
|
Exportar a: Unified diff
Control sesión expirada