Skip to content

Commit d421c13

Browse files
committed
initial commit
0 parents  commit d421c13

File tree

580 files changed

+115516
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

580 files changed

+115516
-0
lines changed

ABOUT

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
web2py is an open source full-stack framework for agile development
2+
of secure database-driven web-based applications, written and programmable in
3+
Python.
4+
5+
Created by Massimo Di Pierro <[email protected]>
6+

Introduction

Whitespace-only changes.

LICENSE

+137
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
## Web2py License
2+
3+
Web2py is Licensed under the LGPL license version 3
4+
(http://www.gnu.org/licenses/lgpl.html)
5+
6+
Copyrighted (c) by Massimo Di Pierro (2007-2011)
7+
8+
### On Commercial Redistribution
9+
10+
In accordance with LGPL you may:
11+
- redistribute web2py with your apps (including official web2py binary versions)
12+
- release your applications which use official web2py libraries under any license you wish
13+
But you must:
14+
- make clear in the documentation that your application uses web2py
15+
- release any modification of the web2py libraries under the LGPLv3 license
16+
17+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
18+
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
19+
PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
20+
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
21+
FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
22+
PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
23+
NECESSARY SERVICING, REPAIR OR CORRECTION.
24+
25+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT
26+
HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE,
27+
BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL
28+
DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
29+
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES
30+
OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER
31+
PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
32+
33+
(Earlier versions of web2py, 1.0.*-1.90.*, were released under the GPL2 license plus a
34+
commercial exception which, for practical purposes, was very similar to the current LPGLv3)
35+
36+
### Licenses for third party contributed software
37+
38+
web2py contains third party software under the gluon/contrib/ folder.
39+
Each file/module in contrib is distributed with web2py under its original license.
40+
Here we list some of them.
41+
42+
#### gluon.contrib.simplejson LICENSE
43+
44+
Copyright (c) 2006 Bob Ippolito - Permission is hereby granted, free of charge,
45+
to any person obtaining a copy of this software and associated documentation
46+
files (the "Software"), to deal in the Software without restriction, including
47+
without limitation the rights to use, copy, modify, merge, publish, distribute,
48+
sublicense, and/or sell copies of the Software, and to permit persons to whom
49+
the Software is furnished to do so, subject to the following conditions:
50+
51+
The above copyright notice and this permission notice shall be included in all
52+
copies or substantial portions of the Software.
53+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
54+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
55+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
56+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
57+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
58+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
59+
SOFTWARE.
60+
61+
#### gluon.contrib.rss2.py (originally PyRSS2Gen) LICENSE
62+
63+
This is copyright (c) by Dalke Scientific Software, LLC and released under the
64+
BSD license. See the file LICENSE in the distribution or
65+
<http://www.opensource.org/licenses/bsd-license.php> for details.
66+
67+
#### gluon.contrib.markdown (markdown2) LICENSE
68+
69+
MIT License from from <http://code.google.com/p/python-markdown2/>
70+
71+
#### gluon.contrib.feedparser LICENSE
72+
73+
Copyright (c) 2002-2005, Mark Pilgrim
74+
75+
All rights reserved.
76+
77+
Redistribution and use in source and binary forms, with or without
78+
modification, are permitted provided that the following conditions
79+
are met:
80+
81+
* Redistributions of source code must retain the above copyright notice,
82+
this list of conditions and the following disclaimer.
83+
84+
* Redistributions in binary form must reproduce the above copyright notice,
85+
this list of conditions and the following disclaimer in the documentation
86+
and/or other materials provided with the distribution.
87+
88+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'
89+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
90+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
91+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
92+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
93+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
94+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
95+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
96+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
97+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
98+
POSSIBILITY OF SUCH DAMAGE.
99+
100+
#### gluon.wsgiserver.py LICENSE (borrowed from cherrypy)
101+
102+
Copyright (c) 2004, CherryPy Team ([email protected])
103+
All rights reserved.
104+
105+
Redistribution and use in source and binary forms, with or without modification,
106+
are permitted provided that the following conditions are met:
107+
108+
* Redistributions of source code must retain the above copyright notice,
109+
this list of conditions and the following disclaimer.
110+
* Redistributions in binary form must reproduce the above copyright notice,
111+
this list of conditions and the following disclaimer in the documentation
112+
and/or other materials provided with the distribution.
113+
* Neither the name of the CherryPy Team nor the names of its contributors
114+
may be used to endorse or promote products derived from this software
115+
without specific prior written permission.
116+
117+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
118+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
119+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
120+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
121+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
122+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
123+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
124+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
125+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
126+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
127+
128+
#### gluon.contrib.pam LICENSE
129+
130+
Copyright (C) 2007-2009 Chris AtLee <[email protected]> Licensed under the MIT license
131+
132+
#### gluon.contrib.shell LICENSE
133+
134+
Copyright (C) by Google inc. Apache 2.0 Lincense
135+
136+
#### The javascript licenses are in the code itself
137+

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include VERSION LICENSE

Makefile

+123
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
clean:
2+
rm -f httpserver.log
3+
rm -f parameters*.py
4+
rm -f -r applications/*/compiled
5+
find ./ -name '*~' -exec rm -f {} \;
6+
find ./ -name '*.orig' -exec rm -f {} \;
7+
find ./ -name '*.rej' -exec rm -f {} \;
8+
find ./ -name '#*' -exec rm -f {} \;
9+
find ./ -name 'Thumbs.db' -exec rm -f {} \;
10+
find ./gluon/ -name '.*' -exec rm -f {} \;
11+
find ./gluon/ -name '*class' -exec rm -f {} \;
12+
find ./applications/admin/ -name '.*' -exec rm -f {} \;
13+
find ./applications/examples/ -name '.*' -exec rm -f {} \;
14+
find ./applications/welcome/ -name '.*' -exec rm -f {} \;
15+
find ./ -name '*.pyc' -exec rm -f {} \;
16+
all:
17+
echo "The Makefile is used to build the distribution."
18+
echo "In order to run web2py you do not need to make anything."
19+
echo "just run web2py.py"
20+
epydoc:
21+
### build epydoc
22+
rm -f -r applications/examples/static/epydoc/
23+
epydoc --config epydoc.conf
24+
cp applications/examples/static/title.png applications/examples/static/epydoc
25+
tests:
26+
cd gluon/tests; ./test.sh 1>tests.log 2>&1
27+
update:
28+
wget -O gluon/contrib/feedparser.py http://feedparser.googlecode.com/svn/trunk/feedparser/feedparser.py
29+
wget -O gluon/contrib/simplejsonrpc.py http://rad2py.googlecode.com/hg/ide2py/simplejsonrpc.py
30+
src:
31+
echo 'Version 1.99.3 ('`date +%Y-%m-%d\ %H:%M:%S`') dev' > VERSION
32+
### rm -f all junk files
33+
make clean
34+
### clean up baisc apps
35+
rm -f routes.py
36+
rm -f applications/*/sessions/*
37+
rm -f applications/*/errors/* | echo 'too many files'
38+
rm -f applications/*/cache/*
39+
rm -f applications/admin/databases/*
40+
rm -f applications/welcome/databases/*
41+
rm -f applications/examples/databases/*
42+
rm -f applications/admin/uploads/*
43+
rm -f applications/welcome/uploads/*
44+
rm -f applications/examples/uploads/*
45+
### make admin layout and appadmin the default
46+
cp applications/admin/views/appadmin.html applications/welcome/views
47+
cp applications/admin/views/appadmin.html applications/examples/views
48+
cp applications/admin/controllers/appadmin.py applications/welcome/controllers
49+
cp applications/admin/controllers/appadmin.py applications/examples/controllers
50+
### update the license
51+
cp ABOUT applications/admin/
52+
cp ABOUT applications/examples/
53+
cp LICENSE applications/admin/
54+
cp LICENSE applications/examples/
55+
### build web2py_src.zip
56+
echo '' > NEWINSTALL
57+
mv web2py_src.zip web2py_src_old.zip | echo 'no old'
58+
cd ..; zip -r web2py/web2py_src.zip web2py/gluon/*.py web2py/gluon/contrib/* web2py/splashlogo.gif web2py/*.py web2py/ABOUT web2py/LICENSE web2py/README web2py/NEWINSTALL web2py/VERSION web2py/Makefile web2py/epydoc.css web2py/epydoc.conf web2py/app.example.yaml web2py/logging.example.conf web2py_exe.conf web2py/queue.example.yaml MANIFEST.in w2p_apps w2p_clone w2p_run startweb2py web2py/scripts/*.sh web2py/scripts/*.py web2py/applications/admin web2py/applications/examples/ web2py/applications/welcome web2py/applications/__init__.py web2py/site-packages/__init__.py web2py/gluon/tests/*.sh web2py/gluon/tests/*.py
59+
60+
mdp:
61+
make epydoc
62+
make src
63+
make app
64+
make win
65+
app:
66+
echo 'did you uncomment import_all in gluon/main.py?'
67+
python2.5 -c 'import compileall; compileall.compile_dir("gluon/")'
68+
#python web2py.py -S welcome -R __exit__.py
69+
find gluon -path '*.pyc' -exec cp {} ../web2py_osx/site-packages/{} \;
70+
cd ../web2py_osx/site-packages/; zip -r ../site-packages.zip *
71+
mv ../web2py_osx/site-packages.zip ../web2py_osx/web2py/web2py.app/Contents/Resources/lib/python2.5
72+
cp ABOUT ../web2py_osx/web2py/web2py.app/Contents/Resources
73+
cp NEWINSTALL ../web2py_osx/web2py/web2py.app/Contents/Resources
74+
cp LICENSE ../web2py_osx/web2py/web2py.app/Contents/Resources
75+
cp VERSION ../web2py_osx/web2py/web2py.app/Contents/Resources
76+
cp README ../web2py_osx/web2py/web2py.app/Contents/Resources
77+
cp splashlogo.gif ../web2py_osx/web2py/web2py.app/Contents/Resources
78+
cp options_std.py ../web2py_osx/web2py/web2py.app/Contents/Resources
79+
cp routes.example.py ../web2py_osx/web2py/web2py.app/Contents/Resources
80+
cp router.example.py ../web2py_osx/web2py/web2py.app/Contents/Resources
81+
cp app.example.yaml ../web2py_osx/web2py/web2py.app/Contents/Resources
82+
cp queue.example.yaml ../web2py_osx/web2py/web2py.app/Contents/Resources
83+
cp -r applications/admin ../web2py_osx/web2py/web2py.app/Contents/Resources/applications
84+
cp -r applications/welcome ../web2py_osx/web2py/web2py.app/Contents/Resources/applications
85+
cp -r applications/examples ../web2py_osx/web2py/web2py.app/Contents/Resources/applications
86+
cp applications/__init__.py ../web2py_osx/web2py/web2py.app/Contents/Resources/applications
87+
cd ../web2py_osx; zip -r web2py_osx.zip web2py
88+
mv ../web2py_osx/web2py_osx.zip .
89+
win:
90+
echo 'did you uncomment import_all in gluon/main.py?'
91+
python2.5 -c 'import compileall; compileall.compile_dir("gluon/")'
92+
find gluon -path '*.pyc' -exec cp {} ../web2py_win/library/{} \;
93+
cd ../web2py_win/library/; zip -r ../library.zip *
94+
mv ../web2py_win/library.zip ../web2py_win/web2py
95+
cp ABOUT ../web2py_win/web2py/
96+
cp NEWINSTALL ../web2py_win/web2py/
97+
cp LICENSE ../web2py_win/web2py/
98+
cp VERSION ../web2py_win/web2py/
99+
cp README ../web2py_win/web2py/
100+
cp splashlogo.gif ../web2py_win/web2py/
101+
cp options_std.py ../web2py_win/web2py/
102+
cp routes.example.py ../web2py_win/web2py/
103+
cp router.example.py ../web2py_win/web2py/
104+
cp app.example.yaml ../web2py_win/web2py/
105+
cp queue.example.yaml ../web2py_win/web2py/
106+
cp -r applications/admin ../web2py_win/web2py/applications
107+
cp -r applications/welcome ../web2py_win/web2py/applications
108+
cp -r applications/examples ../web2py_win/web2py/applications
109+
cp applications/__init__.py ../web2py_win/web2py/applications
110+
cd ../web2py_win; zip -r web2py_win.zip web2py
111+
mv ../web2py_win/web2py_win.zip .
112+
pip:
113+
# create Web2py distribution for upload to Pypi
114+
# after upload clean Web2py sources with rm -R ./dist
115+
python setup.py sdist
116+
run:
117+
python2.5 web2py.py -a hello
118+
push:
119+
make src
120+
echo '' > NEWINSTALL
121+
hg push
122+
bzr push bzr+ssh://[email protected]/~mdipierro/web2py/devel --use-existing-dir
123+

NEWINSTALL

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)