5.2.7. webpages

Last page update: November 10, 2011

../../../_images/webpages5.png

5.2.7.1. introduction

In the webpages folder you can keep all your webpages.

In Genropy, a webpage is written as a Python file; in particular, the class that handles all the stuff you need for a webpage is the GnrCustomWebPage class - in the next page we’ll describe this class.

When you create a project, you (probably) will create the following webpages:

  1. A login page. For more information, check the loginUrl() section

  2. An index page. You can build your own index, or you can use a component that handles it, like the FrameIndex

    Note

    by default, the name of the first page loaded has to be index.py. You can change this default using the homepage attribute of the <wsgi> tag of the siteconfig file

  3. A set of webpages related to some database tables

    Note

    when you create a webpage that is related to a table, please name it following this convention:

    tableName + ``_page.py``
    

    example: if you have a table called staff.py, call the webpage staff_page.py.

    This convention allows to keep order in your project.

  4. A set of webpages not related to database tables used for other services

5.2.7.2. section index

Table Of Contents

Previous topic

1.2.4. TableHandler resource webpages

Next topic

1. webpage

This Page