source: OpenRLabs-Git/web2py/applications/rlabs/models/menu.py

main
Last change on this file was 42bd667, checked in by David Fuertes <dfuertes@…>, 4 years ago

Historial Limpio

  • Property mode set to 100644
File size: 5.1 KB
Line 
1# -*- coding: utf-8 -*-
2# this file is released under public domain and you can use without limitations
3
4# ----------------------------------------------------------------------------------------------------------------------
5# this is the main application menu add/remove items as required
6# ----------------------------------------------------------------------------------------------------------------------
7
8response.menu = [
9    (T('Home'), False, URL('show', 'ous'), []),
10]
11
12# ----------------------------------------------------------------------------------------------------------------------
13# provide shortcuts for development. you can remove everything below in production
14# ----------------------------------------------------------------------------------------------------------------------
15
16"""
17if not configuration.get('app.production'):
18    _app = request.application
19    response.menu += [
20        (T('My Sites'), False, URL('admin', 'default', 'site')),
21        (T('This App'), False, '#', [
22            (T('Design'), False, URL('admin', 'default', 'design/%s' % _app)),
23            (T('Controller'), False,
24             URL(
25                 'admin', 'default', 'edit/%s/controllers/%s.py' % (_app, request.controller))),
26            (T('View'), False,
27             URL(
28                 'admin', 'default', 'edit/%s/views/%s' % (_app, response.view))),
29            (T('DB Model'), False,
30             URL(
31                 'admin', 'default', 'edit/%s/models/db.py' % _app)),
32            (T('Menu Model'), False,
33             URL(
34                 'admin', 'default', 'edit/%s/models/menu.py' % _app)),
35            (T('Config.ini'), False,
36             URL(
37                 'admin', 'default', 'edit/%s/private/appconfig.ini' % _app)),
38            (T('Layout'), False,
39             URL(
40                 'admin', 'default', 'edit/%s/views/layout.html' % _app)),
41            (T('Stylesheet'), False,
42             URL(
43                 'admin', 'default', 'edit/%s/static/css/web2py-bootstrap3.css' % _app)),
44            (T('Database'), False, URL(_app, 'appadmin', 'index')),
45            (T('Errors'), False, URL(
46                'admin', 'default', 'errors/' + _app)),
47            (T('About'), False, URL(
48                'admin', 'default', 'about/' + _app)),
49        ]),
50        ('web2py.com', False, '#', [
51            (T('Download'), False,
52             'http://www.web2py.com/examples/default/download'),
53            (T('Support'), False,
54             'http://www.web2py.com/examples/default/support'),
55            (T('Demo'), False, 'http://web2py.com/demo_admin'),
56            (T('Quick Examples'), False,
57             'http://web2py.com/examples/default/examples'),
58            (T('FAQ'), False, 'http://web2py.com/AlterEgo'),
59            (T('Videos'), False,
60             'http://www.web2py.com/examples/default/videos/'),
61            (T('Free Applications'),
62             False, 'http://web2py.com/appliances'),
63            (T('Plugins'), False, 'http://web2py.com/plugins'),
64            (T('Recipes'), False, 'http://web2pyslices.com/'),
65        ]),
66        (T('Documentation'), False, '#', [
67            (T('Online book'), False, 'http://www.web2py.com/book'),
68            (T('Preface'), False,
69             'http://www.web2py.com/book/default/chapter/00'),
70            (T('Introduction'), False,
71             'http://www.web2py.com/book/default/chapter/01'),
72            (T('Python'), False,
73             'http://www.web2py.com/book/default/chapter/02'),
74            (T('Overview'), False,
75             'http://www.web2py.com/book/default/chapter/03'),
76            (T('The Core'), False,
77             'http://www.web2py.com/book/default/chapter/04'),
78            (T('The Views'), False,
79             'http://www.web2py.com/book/default/chapter/05'),
80            (T('Database'), False,
81             'http://www.web2py.com/book/default/chapter/06'),
82            (T('Forms and Validators'), False,
83             'http://www.web2py.com/book/default/chapter/07'),
84            (T('Email and SMS'), False,
85             'http://www.web2py.com/book/default/chapter/08'),
86            (T('Access Control'), False,
87             'http://www.web2py.com/book/default/chapter/09'),
88            (T('Services'), False,
89             'http://www.web2py.com/book/default/chapter/10'),
90            (T('Ajax Recipes'), False,
91             'http://www.web2py.com/book/default/chapter/11'),
92            (T('Components and Plugins'), False,
93             'http://www.web2py.com/book/default/chapter/12'),
94            (T('Deployment Recipes'), False,
95             'http://www.web2py.com/book/default/chapter/13'),
96            (T('Other Recipes'), False,
97             'http://www.web2py.com/book/default/chapter/14'),
98            (T('Helping web2py'), False,
99             'http://www.web2py.com/book/default/chapter/15'),
100            (T("Buy web2py's book"), False,
101             'http://stores.lulu.com/web2py'),
102        ]),
103        (T('Community'), False, None, [
104            (T('Groups'), False,
105             'http://www.web2py.com/examples/default/usergroups'),
106            (T('Twitter'), False, 'http://twitter.com/web2py'),
107            (T('Live Chat'), False,
108             'http://webchat.freenode.net/?channels=web2py'),
109        ]),
110    ]
111"""
Note: See TracBrowser for help on using the repository browser.