Changeset 1f61dd4 in sicp


Ignore:
Timestamp:
May 19, 2015, 10:36:30 AM (9 years ago)
Author:
Ing. Roldan D. Vargas G <rvargas@…>
Branches:
master
Children:
fca2ef7
Parents:
309cb4d
Message:

agregada documentacion al archivo y a la funcion de inicio. se agrega el RequestContext? en la funcion de inicio

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/comun/views.py

    r46b845f r1f61dd4  
     1# coding=utf-8
     2"""
     3Simulador Integral de Cadenas Productivas (SICP)
     4
     5Copyleft (@) 2015 CENDITEL nodo Mérida - https://miv.cenditel.gob.ve/simulacion/
     6"""
     7# # @package comun.views
     8#
     9# Clases y funciones a implementar en las vistas del módulo de uso comun
     10# @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     11# @author Centro Nacional de Desarrollo e Investigación en Tecnologías Libres (CENDITEL) nodo Mérida - Venezuela
     12# @copyright GNU/GPLv2
     13# @date 05-05-2015
     14# @version 3.0.0
     15
     16## Muestra el autor del script cuando es invocado
     17__author__ = "Ing. Roldan Vargas (rvargas at cenditel.gob.ve)"
     18## Muestra documentación breve sobre el script
     19__doc__    = "Clases y funciones a implementar en las vistas del módulo de uso comun"
     20
    121from django.shortcuts import render_to_response
     22from django.template import RequestContext
    223
    3 # Create your views here.
     24
    425def inicio(request):
    5     return render_to_response('base.html')
     26    """!
     27    Función que permite mostrar la pagina inicial del sistema
     28
     29    @author Ing. Roldan Vargas (rvargas at cenditel.gob.ve)
     30    @author Centro Nacional de Desarrollo e Investigación en Tecnologías Libres (CENDITEL) Nodo Mérida - Venezuela
     31    @copyright <a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU Public License versión 2 (GPLv2)</a>
     32    @date 05-05-2015
     33    @param[in] request Objeto que contiene la petición
     34    @return Devuelve el correspondiente response para mostrar la pagina inicial del sistema
     35    """
     36    return render_to_response('base.html', {}, context_instance=RequestContext(request))
Note: See TracChangeset for help on using the changeset viewer.