Kurt Grutzmacher 79a4693f34 Adds IS_IPADDRESS() to gluon/validators.py
IS_IPADDRESS() is mostly a meta function that will call IS_IPV4()
or IS_IPV6 accordingly based upon both dev-configured logic and
library checking of the address given. For instance:

 >>> IS_IPADDRESS()('192.168.1.5')
 ('192.168.1.5', None)

will run through the IS_IPV4() function since the ipaddr.py lib
recognizes it as an IPv4 address. Specific v4 or v6 validation
can be done by setting is_ipv4=True or is_ipv6=True:

 >>> IS_IPADDRESS(is_ipv4=True)('fe80::126c:8ffa:fe22:b3af')
 ('fe80::126c:8ffa:fe22:b3af', 'enter valid IP address')
 >>> IS_IPADDRESS(is_ipv6=True)('192.168.1.1')
 ('192.168.1.1', 'enter valid IP address')

The same arguments for IS_IPV4() and IS_IPV6() are supported and
no changes have been made to either of these two functions. The
goal of this function is to allow IPv4 or IPv6 addresses in a
textfield:

 INPUT(_type='text', _name='name', requires=IS_IPADDRESS())
2013-04-05 09:14:37 -07:00
2011-11-22 23:30:42 -06:00
2011-11-22 23:30:42 -06:00
2013-01-12 23:41:28 -08:00
2012-12-24 13:49:06 -06:00
2012-10-04 21:52:04 -05:00
2012-10-19 12:33:53 -05:00
2013-03-18 17:37:49 -05:00
2011-11-22 23:30:42 -06:00
2011-11-22 23:30:42 -06:00
2012-10-19 12:33:53 -05:00
2012-10-20 10:12:04 -05:00
2012-10-19 12:33:53 -05:00
2013-03-10 22:12:46 -05:00
2013-03-18 17:37:49 -05:00
2011-11-22 23:30:42 -06:00
2012-10-19 12:33:53 -05:00
2011-11-22 23:30:42 -06:00
2012-10-19 12:33:53 -05:00
2012-10-19 12:33:53 -05:00
2011-11-22 23:30:42 -06:00
2012-10-19 12:33:53 -05:00
2012-10-19 12:33:53 -05:00
2011-11-22 23:30:42 -06:00
2012-05-06 17:27:54 -05:00
2013-03-28 14:59:06 -05:00
2011-11-22 23:30:42 -06:00
2013-03-10 22:12:46 -05:00
2011-11-22 23:30:42 -06:00
2013-02-14 17:34:04 -06:00
2011-11-22 23:30:42 -06:00
2011-11-22 23:30:42 -06:00
2012-10-19 12:33:53 -05:00
2012-10-19 12:33:53 -05:00

Readme

web2py is a free open source full-stack framework for rapid development of fast, scalable, secure and portable database-driven web-based applications.

It is written and programmable in Python. LGPLv3 License

Learn more at http://web2py.com

Tests

Build Status

Installation Instructions

To start web2py there is NO NEED to install it. Just unzip and do:

python web2py.py

That's it!!!

web2py directory structure

project/
    README
    LICENSE
    VERSION                    > this web2py version
    web2py.py                  > the startup script
    anyserver.py               > to run with third party servers
    wsgihandler.py             > handler to connect to WSGI
    ...                        > other handlers and example files
    gluon/                     > the core libraries
        contrib/               > third party libraries
        tests/                 > unittests
    applications/              > are the apps
        admin/                 > web based IDE
            ...
        examples/              > examples, docs, links
            ...
        welcome/               > the scaffolding app (they all copy it)
            ABOUT
            LICENSE
            models/
            views/
            controllers/
            sessions/
            errors/
            cache/
            static/
            uploads/
            modules/
            cron/
            tests/
        ...                    > your own apps
    scripts/                   > utility and installation scripts
    site-packages/             > additional optional modules

Issues?

Report issues at http://code.google.com/p/web2py/issues/

Description
Free and open source full-stack enterprise framework for agile development of secure database-driven web-based applications, written and programmable in Python.
Readme Multiple Licenses 43 MiB
Languages
Python 87.3%
HTML 5.5%
JavaScript 4.1%
Shell 1.5%
CSS 0.7%
Other 0.7%