source: OpenRLabs-Git/web2py/applications/rlabs/models/m3_services.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: 417 bytes
Line 
1# -*- coding: utf-8 -*-
2
3
4db.define_table('services',
5                Field('name', requires=IS_LOWER(), required=True, unique=True),
6                Field('port', required=True, unique=True),
7                )
8
9
10# Ensure RDP protocol by default exits
11
12if not db(db.services.name == 'rdp').select():
13    db.services.insert(name = 'rdp',
14                       port = '3389')
15   
16   
17db.services.id.readable = False
Note: See TracBrowser for help on using the repository browser.