Submit Search
Upload
Web2py
•
7 likes
•
1,609 views
Lucas D
Follow
Slides sobre framework web2py utilizados em um mini curso no unisul techday em Tubarão, SC.
Read less
Read more
Technology
Education
Report
Share
Report
Share
1 of 20
Download now
Download to read offline
Recommended
Using web2py's DAL in other projects or frameworks
Using web2py's DAL in other projects or frameworks
Bruno Rocha
Web2py Code Lab
Web2py Code Lab
Colin Su
Web2py tutorial to create db driven application.
Web2py tutorial to create db driven application.
fRui Apps
Mule esb – connecting to ms sql db
Mule esb – connecting to ms sql db
Gunjan Deshmukh
Advanced Querying with CakePHP 3
Advanced Querying with CakePHP 3
José Lorenzo Rodríguez Urdaneta
New in cakephp3
New in cakephp3
markstory
How te bring common UI patterns to ADF
How te bring common UI patterns to ADF
Getting value from IoT, Integration and Data Analytics
international PHP2011_Bastian Feder_jQuery's Secrets
international PHP2011_Bastian Feder_jQuery's Secrets
smueller_sandsmedia
Recommended
Using web2py's DAL in other projects or frameworks
Using web2py's DAL in other projects or frameworks
Bruno Rocha
Web2py Code Lab
Web2py Code Lab
Colin Su
Web2py tutorial to create db driven application.
Web2py tutorial to create db driven application.
fRui Apps
Mule esb – connecting to ms sql db
Mule esb – connecting to ms sql db
Gunjan Deshmukh
Advanced Querying with CakePHP 3
Advanced Querying with CakePHP 3
José Lorenzo Rodríguez Urdaneta
New in cakephp3
New in cakephp3
markstory
How te bring common UI patterns to ADF
How te bring common UI patterns to ADF
Getting value from IoT, Integration and Data Analytics
international PHP2011_Bastian Feder_jQuery's Secrets
international PHP2011_Bastian Feder_jQuery's Secrets
smueller_sandsmedia
Php unit the-mostunknownparts
Php unit the-mostunknownparts
Bastian Feder
Php 101: PDO
Php 101: PDO
Jeremy Kendall
Quebec pdo
Quebec pdo
Valentine Dianov
Future of HTTP in CakePHP
Future of HTTP in CakePHP
markstory
Lithium: The Framework for People Who Hate Frameworks
Lithium: The Framework for People Who Hate Frameworks
Nate Abele
PHP Data Objects
PHP Data Objects
Wez Furlong
Agile database access with CakePHP 3
Agile database access with CakePHP 3
José Lorenzo Rodríguez Urdaneta
Introduction to the new official C# Driver developed by 10gen
Introduction to the new official C# Driver developed by 10gen
MongoDB
Hidden Treasures of the Python Standard Library
Hidden Treasures of the Python Standard Library
doughellmann
Mysql & Php
Mysql & Php
Inbal Geffen
Dependency Injection
Dependency Injection
Rifat Nabi
Sequelize
Sequelize
Tarek Raihan
jQuery
jQuery
Niladri Karmakar
QTP
QTP
Pavan Chowdary
Stored Procedure
Stored Procedure
NidiaRamirez07
Twitter codeigniter library
Twitter codeigniter library
Navaneeswar Reddy
Asciidoctor New, Noteworthy and Beyond Devoxx-2017
Asciidoctor New, Noteworthy and Beyond Devoxx-2017
Alex Soto
Quebec pdo
Quebec pdo
Rengga Aditya
Add loop shortcode
Add loop shortcode
Peter Baylies
Security Meetup 22 октября. «Реверс-инжиниринг в Enterprise». Алексей Секрето...
Security Meetup 22 октября. «Реверс-инжиниринг в Enterprise». Алексей Секрето...
Mail.ru Group
web2py:Web development like a boss
web2py:Web development like a boss
Francisco Ribeiro
Plantillas para la creación de material docente accesible con herramientas of...
Plantillas para la creación de material docente accesible con herramientas of...
Mireia Alcala
More Related Content
What's hot
Php unit the-mostunknownparts
Php unit the-mostunknownparts
Bastian Feder
Php 101: PDO
Php 101: PDO
Jeremy Kendall
Quebec pdo
Quebec pdo
Valentine Dianov
Future of HTTP in CakePHP
Future of HTTP in CakePHP
markstory
Lithium: The Framework for People Who Hate Frameworks
Lithium: The Framework for People Who Hate Frameworks
Nate Abele
PHP Data Objects
PHP Data Objects
Wez Furlong
Agile database access with CakePHP 3
Agile database access with CakePHP 3
José Lorenzo Rodríguez Urdaneta
Introduction to the new official C# Driver developed by 10gen
Introduction to the new official C# Driver developed by 10gen
MongoDB
Hidden Treasures of the Python Standard Library
Hidden Treasures of the Python Standard Library
doughellmann
Mysql & Php
Mysql & Php
Inbal Geffen
Dependency Injection
Dependency Injection
Rifat Nabi
Sequelize
Sequelize
Tarek Raihan
jQuery
jQuery
Niladri Karmakar
QTP
QTP
Pavan Chowdary
Stored Procedure
Stored Procedure
NidiaRamirez07
Twitter codeigniter library
Twitter codeigniter library
Navaneeswar Reddy
Asciidoctor New, Noteworthy and Beyond Devoxx-2017
Asciidoctor New, Noteworthy and Beyond Devoxx-2017
Alex Soto
Quebec pdo
Quebec pdo
Rengga Aditya
Add loop shortcode
Add loop shortcode
Peter Baylies
Security Meetup 22 октября. «Реверс-инжиниринг в Enterprise». Алексей Секрето...
Security Meetup 22 октября. «Реверс-инжиниринг в Enterprise». Алексей Секрето...
Mail.ru Group
What's hot
(20)
Php unit the-mostunknownparts
Php unit the-mostunknownparts
Php 101: PDO
Php 101: PDO
Quebec pdo
Quebec pdo
Future of HTTP in CakePHP
Future of HTTP in CakePHP
Lithium: The Framework for People Who Hate Frameworks
Lithium: The Framework for People Who Hate Frameworks
PHP Data Objects
PHP Data Objects
Agile database access with CakePHP 3
Agile database access with CakePHP 3
Introduction to the new official C# Driver developed by 10gen
Introduction to the new official C# Driver developed by 10gen
Hidden Treasures of the Python Standard Library
Hidden Treasures of the Python Standard Library
Mysql & Php
Mysql & Php
Dependency Injection
Dependency Injection
Sequelize
Sequelize
jQuery
jQuery
QTP
QTP
Stored Procedure
Stored Procedure
Twitter codeigniter library
Twitter codeigniter library
Asciidoctor New, Noteworthy and Beyond Devoxx-2017
Asciidoctor New, Noteworthy and Beyond Devoxx-2017
Quebec pdo
Quebec pdo
Add loop shortcode
Add loop shortcode
Security Meetup 22 октября. «Реверс-инжиниринг в Enterprise». Алексей Секрето...
Security Meetup 22 октября. «Реверс-инжиниринг в Enterprise». Алексей Секрето...
Viewers also liked
web2py:Web development like a boss
web2py:Web development like a boss
Francisco Ribeiro
Plantillas para la creación de material docente accesible con herramientas of...
Plantillas para la creación de material docente accesible con herramientas of...
Mireia Alcala
LaTeX sin dolor.
LaTeX sin dolor.
Walter Vargas
5-Beamer: Creación de presentaciones con LaTeX
5-Beamer: Creación de presentaciones con LaTeX
Digna González
Gestión de datos de investigación: trabajo cooperativo en las bibliotecas de ...
Gestión de datos de investigación: trabajo cooperativo en las bibliotecas de ...
CSUC - Consorci de Serveis Universitaris de Catalunya
Apresentação
Apresentação
Pedro Bré
Pt precisa saber sobre FI
Pt precisa saber sobre FI
Mário Valente
EFConsulting Empresas Familiares 30 anos Cenfim
EFConsulting Empresas Familiares 30 anos Cenfim
António Nogueira da Costa
Digital Marketing Journey - Lecture INP & ISG
Digital Marketing Journey - Lecture INP & ISG
Inês Tomás Mateus
Talk ja ye-nuno_freitas_1set2012
Talk ja ye-nuno_freitas_1set2012
Nuno Freitas
Evolução modelos de negócio na internet.
Evolução modelos de negócio na internet.
Ricardo Pofis
Novas Regras Domínios .PT 2014 - DNS.PT
Novas Regras Domínios .PT 2014 - DNS.PT
Teotonio Leiras
Barriers to the diffusion of the VSM (Nuno Rosa, 2016)
Barriers to the diffusion of the VSM (Nuno Rosa, 2016)
Nuno Rosa
Agent Eighteen 2010 Mockup
Agent Eighteen 2010 Mockup
Ivo Gomes
Business Model Canvas at Fim de semana de empreendedorismo AEFEUP
Business Model Canvas at Fim de semana de empreendedorismo AEFEUP
Rafael Pires
9 Deadly Sins to Avoid in Decision Making
9 Deadly Sins to Avoid in Decision Making
Filipe Carrera
LawRD(PortuguêS)
LawRD(PortuguêS)
Luís Vaz
TEDxMatosinhos - À Bolina
TEDxMatosinhos - À Bolina
Last2ticket
[Brazil] guia internet_marketing (1)
[Brazil] guia internet_marketing (1)
Ricardo Belchior
Didgeridoo and Education
Didgeridoo and Education
Rodrigo Viterbo
Viewers also liked
(20)
web2py:Web development like a boss
web2py:Web development like a boss
Plantillas para la creación de material docente accesible con herramientas of...
Plantillas para la creación de material docente accesible con herramientas of...
LaTeX sin dolor.
LaTeX sin dolor.
5-Beamer: Creación de presentaciones con LaTeX
5-Beamer: Creación de presentaciones con LaTeX
Gestión de datos de investigación: trabajo cooperativo en las bibliotecas de ...
Gestión de datos de investigación: trabajo cooperativo en las bibliotecas de ...
Apresentação
Apresentação
Pt precisa saber sobre FI
Pt precisa saber sobre FI
EFConsulting Empresas Familiares 30 anos Cenfim
EFConsulting Empresas Familiares 30 anos Cenfim
Digital Marketing Journey - Lecture INP & ISG
Digital Marketing Journey - Lecture INP & ISG
Talk ja ye-nuno_freitas_1set2012
Talk ja ye-nuno_freitas_1set2012
Evolução modelos de negócio na internet.
Evolução modelos de negócio na internet.
Novas Regras Domínios .PT 2014 - DNS.PT
Novas Regras Domínios .PT 2014 - DNS.PT
Barriers to the diffusion of the VSM (Nuno Rosa, 2016)
Barriers to the diffusion of the VSM (Nuno Rosa, 2016)
Agent Eighteen 2010 Mockup
Agent Eighteen 2010 Mockup
Business Model Canvas at Fim de semana de empreendedorismo AEFEUP
Business Model Canvas at Fim de semana de empreendedorismo AEFEUP
9 Deadly Sins to Avoid in Decision Making
9 Deadly Sins to Avoid in Decision Making
LawRD(PortuguêS)
LawRD(PortuguêS)
TEDxMatosinhos - À Bolina
TEDxMatosinhos - À Bolina
[Brazil] guia internet_marketing (1)
[Brazil] guia internet_marketing (1)
Didgeridoo and Education
Didgeridoo and Education
Similar to Web2py
Form demoinplaywithmysql
Form demoinplaywithmysql
Knoldus Inc.
Creating a Simple PHP and MySQL-Based Login System
Creating a Simple PHP and MySQL-Based Login System
Azharul Haque Shohan
Intro to Php Security
Intro to Php Security
Dave Ross
[Coscup 2012] JavascriptMVC
[Coscup 2012] JavascriptMVC
Alive Kuo
Php Security By Mugdha And Anish
Php Security By Mugdha And Anish
OSSCube
Virtual Madness @ Etsy
Virtual Madness @ Etsy
Nishan Subedi
Create a res tful services api in php.
Create a res tful services api in php.
Adeoye Akintola
Scalable web application architecture
Scalable web application architecture
postrational
My app is secure... I think
My app is secure... I think
Wim Godden
Intro to php
Intro to php
Sp Singh
Php (1)
Php (1)
pinalsadiwala
09 - express nodes on the right angle - vitaliy basyuk - it event 2013 (5)
09 - express nodes on the right angle - vitaliy basyuk - it event 2013 (5)
Igor Bronovskyy
Sql injection
Sql injection
Mehul Boghra
My app is secure... I think
My app is secure... I think
Wim Godden
파이썬 플라스크로 배우는 웹프로그래밍 #4 (ABCD)
파이썬 플라스크로 배우는 웹프로그래밍 #4 (ABCD)
성일 한
Ruby on rails security guide
Ruby on rails security guide
Randall Valenciano Fallas
Rails, Postgres, Angular, and Bootstrap: The Power Stack
Rails, Postgres, Angular, and Bootstrap: The Power Stack
David Copeland
Sql Injection V.2
Sql Injection V.2
Tjylen Veselyj
DBIx::Class walkthrough @ bangalore pm
DBIx::Class walkthrough @ bangalore pm
Sheeju Alex
PHPUG Presentation
PHPUG Presentation
Damon Cortesi
Similar to Web2py
(20)
Form demoinplaywithmysql
Form demoinplaywithmysql
Creating a Simple PHP and MySQL-Based Login System
Creating a Simple PHP and MySQL-Based Login System
Intro to Php Security
Intro to Php Security
[Coscup 2012] JavascriptMVC
[Coscup 2012] JavascriptMVC
Php Security By Mugdha And Anish
Php Security By Mugdha And Anish
Virtual Madness @ Etsy
Virtual Madness @ Etsy
Create a res tful services api in php.
Create a res tful services api in php.
Scalable web application architecture
Scalable web application architecture
My app is secure... I think
My app is secure... I think
Intro to php
Intro to php
Php (1)
Php (1)
09 - express nodes on the right angle - vitaliy basyuk - it event 2013 (5)
09 - express nodes on the right angle - vitaliy basyuk - it event 2013 (5)
Sql injection
Sql injection
My app is secure... I think
My app is secure... I think
파이썬 플라스크로 배우는 웹프로그래밍 #4 (ABCD)
파이썬 플라스크로 배우는 웹프로그래밍 #4 (ABCD)
Ruby on rails security guide
Ruby on rails security guide
Rails, Postgres, Angular, and Bootstrap: The Power Stack
Rails, Postgres, Angular, and Bootstrap: The Power Stack
Sql Injection V.2
Sql Injection V.2
DBIx::Class walkthrough @ bangalore pm
DBIx::Class walkthrough @ bangalore pm
PHPUG Presentation
PHPUG Presentation
Recently uploaded
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
Zilliz
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
danishmna97
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
Christopher Logan Kennedy
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
MIND CTI
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
apidays
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
WSO2
presentation ICT roal in 21st century education
presentation ICT roal in 21st century education
jfdjdjcjdnsjd
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
Andrey Devyatkin
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
Khushali Kathiriya
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
Sandro Moreira
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
DianaGray10
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
Zilliz
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
johnbeverley2021
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Edi Saputra
Architecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
apidays
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
Remote DBA Services
Recently uploaded
(20)
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
presentation ICT roal in 21st century education
presentation ICT roal in 21st century education
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Architecting Cloud Native Applications
Architecting Cloud Native Applications
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
Web2py
1.
mini curso web2py @lucadavila
2.
framework web python
3.
# opensource # seguro #
model view controller # windows, mac, unix/linux, GAE # SQLite, PostgreSQL, MySQL, Oracle, GAE... # apache, lighttpd, cherokee, *mod_python ... # compatibilidade reversa # curva aprendizado pequena # interface administrativa web
4.
/models/db.py
5.
#database definition db =
DAL('sqlite://storage.sqlite')
6.
#model definition Person =
db.define_table('persons', Field('name', label='Your name'), Field('email'), ) #validators Person.name.requires = IS_NOT_EMPTY() Person.email.requires = IS_EMPTY_OR(IS_EMAIL())
7.
#insert (without validating) Person.insert(name="Lucas
D'Avila", email="lucassdvl@gmail.com") Person.insert(name="", email="foo") #validate and insert Person.validate_and_insert(name="", email="foo") <Row {'errors': <Row {'name': <lazyT 'enter a value'>, 'email': <lazyT 'enter a valid email address'>}>, 'id': None}>
8.
#save changes db.commit() #undo changes db.rollback()
9.
#count db(Person.id > 0).count() #select persons
= db(Person.id > 0).select() person_by_id = Person(1)
10.
#update set db(Person.id >
0).update(name="Luke") #update record Person(1).update_record(name="Lucas")
11.
#delete set db(Person.id >
0).delete() #delete record Person(1).delete_record() #truncate table (restart id sequence) Person.truncate()
12.
/controllers/persons.py
13.
#action returning a
string def say_hello(): return dict(some_var = "Hello world!") #action returning a set of database records def persons() : persons = db(Person.id > 0).select() return locals()
14.
/views/persons/say_hello.html
15.
#view <h1>web2py views</h1> <p>Controller says:
{{=some_var}}</p>
16.
#url mapping http://hostname /app/controller/action/arg/arg2/...?var=lucas
17.
#dispatching
18.
download web2py.com/examples/default/download
19.
docs web2py.com/examples/default/documentation web2py.com/book
20.
Obrigado!
Download now