Skip to content
This repository
Browse code

added LICENSE

  • Loading branch information...
commit 9eaa481a46f98e4ec10b8bb9394525dc27485938 1 parent 1f0bdb9
mdipierro authored September 01, 2012
5  LICENSE
... ...
@@ -1,4 +1 @@
1  
-The web2py welcome app is licensed under public domain 
2  
-(except for the css and js files that it includes, which have their own third party licenses).
3  
-
4  
-You can modify this license when you add your own code.
  1
+http://creativecommons.org/licenses/by-nc-nd/3.0/legalcode
7  README.md
Source Rendered
... ...
@@ -1,6 +1,7 @@
1 1
 # The official web2py book
2 2
 
3  
-License: [Creative Commons  BY-NC-ND](Non commerciale - Non opere derivate 
4  
-CC BY-NC-ND)
  3
+License: [Creative Commons  BY-NC-ND](http://creativecommons.org/licenses/by-nc-nd/3.0/legalcode)
5 4
 
6  
-[Read it here](http://web2py.com)
  5
+[Read the book online](http://web2py.com/books)
  6
+
  7
+The gitbub repo includes code and sources. The book sources are in the sources folder. You can contribute to the book by submitting patches.
13  progress.log
... ...
@@ -1,13 +0,0 @@
1  
-[2012-06-04 15:48:53] START
2  
-[2012-06-04 15:48:53] EDIT welcome/controllers/default.py: 0
3  
-[2012-06-04 15:48:55] EDIT welcome/controllers/default.py: 0
4  
-[2012-06-04 15:48:56] EDIT welcome/controllers/default.py: 0
5  
-[2012-06-04 15:48:57] EDIT welcome/controllers/default.py: 0
6  
-[2012-06-04 15:48:58] EDIT welcome/controllers/default.py: 0
7  
-[2012-06-04 15:49:01] EDIT welcome/controllers/default.py: 0
8  
-[2012-06-04 15:49:24] EDIT welcome/controllers/default.py: 0
9  
-[2012-06-04 15:52:02] EDIT welcome/controllers/default.py: 0
10  
-[2012-06-04 15:56:25] EDIT welcome/controllers/default.py: 0
11  
-[2012-06-04 16:00:51] EDIT welcome/controllers/default.py: 0
12  
-[2012-06-04 16:01:36] EDIT welcome/controllers/default.py: 0
13  
-[2012-06-04 16:01:55] EDIT welcome/controllers/default.py: 0
40  routes.example.py
... ...
@@ -1,40 +0,0 @@
1  
-#!/usr/bin/python
2  
-# -*- coding: utf-8 -*-
3  
-
4  
-#  This is an app-specific example router
5  
-#
6  
-#  This simple router is used for setting languages from app/languages directory
7  
-#  as a part of the application path:  app/<lang>/controller/function
8  
-#  Language from default.py or 'en' (if the file is not found) is used as
9  
-#  a default_language
10  
-#
11  
-# See <web2py-root-dir>/router.example.py for parameter's detail
12  
-#-------------------------------------------------------------------------------------
13  
-# To enable this route file you must do the steps:
14  
-#
15  
-# 1. rename <web2py-root-dir>/router.example.py to routes.py
16  
-# 2. rename this APP/routes.example.py to APP/routes.py
17  
-#    (where APP - is your application directory)
18  
-# 3. restart web2py (or reload routes in web2py admin interfase)
19  
-#
20  
-# YOU CAN COPY THIS FILE TO ANY APLLICATION'S ROOT DIRECTORY WITHOUT CHANGES!
21  
-
22  
-from fileutils import abspath
23  
-from languages import read_possible_languages
24  
-
25  
-possible_languages = read_possible_languages(abspath('applications', app))
26  
-#NOTE! app - is an application based router's parameter with name of an
27  
-#            application. E.g.'welcome'
28  
-
29  
-routers = {
30  
-    app: dict(
31  
-        default_language = possible_languages['default'][0],
32  
-        languages = [lang for lang in possible_languages
33  
-                           if lang != 'default']
34  
-    )
35  
-}
36  
-
37  
-#NOTE! To change language in your application using these rules add this line
38  
-#in one of your models files:
39  
-#   if request.uri_language: T.force(request.uri_language)
40  
-

0 notes on commit 9eaa481

Please sign in to comment.
Something went wrong with that request. Please try again.