79a4693f344e1f2d3cedb9f8c9ca0851887f6c20
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())
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
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.
Languages
Python
87.3%
HTML
5.5%
JavaScript
4.1%
Shell
1.5%
CSS
0.7%
Other
0.7%
