Skip to content
Browse files

final book 5th edition

  • Loading branch information...
1 parent 077db28 commit a5a674979a2383b6d39345cb858e119c6435fb71 @mdipierro committed Mar 3, 2013
Showing with 11 additions and 6 deletions.
  1. +2 −0 private/convert_book.py
  2. +7 −6 sources/29-web2py-english/00.markmin
  3. +2 −0 sources/29-web2py-english/01.markmin
View
2 private/convert_book.py
@@ -160,6 +160,7 @@ def assemble(path):
path1 = os.path.join(path,'??.markmin')
text = '\n\n'.join(open(f,'r').read() for f in glob.glob(path1))
text = text.replace('@///image',os.path.join(path,'images'))
+
body, title, authors = render(text)
body = body.replace('\\section{','\\chapter{'
).replace('subsection{','section{')
@@ -173,6 +174,7 @@ def assemble(path):
bibliography.append((item,reference['source_url']))
txtitems = '\n'.join('\\bibitem{%s} \\url{%s}' % item for item in bibliography)
body = body.replace('\@/','@/')
+ body = body.replace('{\\textbackslash}@/','@/')
body = body.replace('\\begin{center}','\\goodbreak\\begin{center}')
return HEADER + body + FOOTER.replace('@BIBITEMS',txtitems)
View
13 sources/29-web2py-english/00.markmin
@@ -1,18 +1,19 @@
I believe that the ability to easily build high quality web applications is of critical importance for the growth of a free and open society. This prevents the biggest players from monopolizing the flow of information.
-Hence I started the web2py project in 2007, primarily as a teaching tool with the goal of making web development easier, faster, and more secure. Over time, it has managed to win the affection of thousands of knowledgeable users and hundreds of developers. Our collective effort has created one of the most full-featured Open Source Web Frameworks for enterprise web development.
+Hence I started the ``web2py`` project in 2007, primarily as a teaching tool with the goal of making web development easier, faster, and more secure. Over time, it has managed to win the affection of thousands of knowledgeable users and hundreds of developers. Our collective effort has created one of the most full-featured Open Source Web Frameworks for enterprise web development.
-As a result, in 2011, web2py won the Bossie Award for best Open Source Development Software, and in 2012 it won the Technology of the Year award from InfoWorld.
+As a result, in 2011, ``web2py`` won the Bossie Award for best Open Source Development Software, and in 2012 it won the Technology of the Year award from InfoWorld.
-As you will learn in the following pages, web2py tries to lower the barrier of entry to web development by focusing on three main goals:
+As you will learn in the following pages, ``web2py`` tries to lower the barrier of entry to web development by focusing on three main goals:
''Ease of use''. This means reducing the learning and deployment time as well as development and maintenance costs. This is why ``web2py`` is a full-stack framework without dependencies. It requires no installation and has no configuration files. Everything works ''out of the box'', including a web server, database and a web-based IDE that gives access to all the main features. The API includes just 12 core objects, which are easy to work with and memorize. It can interoperate with most web servers, databases and all Python libraries.
''Rapid development''. Every function of ``web2py`` has a default behavior (which can be overridden). For example, as soon as you have specified your data models, you will have access to a web-based database administration panel. Also, ``web2py`` automatically generates forms for your data and it allows you to easily expose the data in HTML, XML, JSON, RSS, etc. ``web2py`` provides some high level widgets such as the wiki and the grid to rapidly build complex applications.
-''Security''. The ``web2py`` Database Abstraction Layer (DAL) eliminates SQL Injections. The template language prevents Cross Site Scripting vulnerabilities. The forms generated by ``web2py`` provide field validation and block Cross Site Request Forgeries. Passwords are always stored hashed. Sessions are stored server-side by default to prevent Cookie Tampering and session cookies are UUID to prevent Session
-Hijacking.
+''Security''. The ``web2py`` Database Abstraction Layer (DAL) eliminates SQL Injections. The template language prevents Cross Site Scripting vulnerabilities. The forms generated by ``web2py`` provide field validation and block Cross Site Request Forgeries. Passwords are always stored hashed. Sessions are stored server-side by default to prevent Cookie Tampering. Session cookies are UUID to prevent Session Hijacking.
``web2py`` is built from the user perspective and is constantly being optimized internally to become faster and leaner, whilst always maintaining ''backwards compatibility''.
-``web2py`` is free for you to use. If you benefit from it, we hope you will feel encouraged to ''pay it forward'' by contributing back to society in whatever form you choose.
+``web2py`` is free for you to use. If you benefit from it, I hope you will feel encouraged to ''pay it forward'' by contributing back to society in whatever form you choose.
+
+
View
2 sources/29-web2py-english/01.markmin
@@ -75,6 +75,8 @@ prevents visitors from accessing the function ``f`` unless the visitor is a memb
web2py also supports components, i.e. actions which can be loaded in a view and interact with the visitor via Ajax without re-loading the entire page. This is done via a ``LOAD`` helper which allows very modular design of applications; it is discussed in chapter 3 in the context of the wiki and, in some detail, in the last chapter of this book.
+This 5th edition of the book describes ``web2py`` 2.4.1 and later versions.
+
### Principles
Python programming typically follows these basic principles:

0 comments on commit a5a6749

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