Submit Search
Upload
Web2py
•
7 likes
•
1,608 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
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
Sergiu Bodiu
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
Stephanie Beckett
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
Dubai Multi Commodity Centre
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
Fwdays
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
Rizwan Syed
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Zilliz
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
DianaGray10
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
Slibray Presentation
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
Florian Wilhelm
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
LoriGlavin3
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
2toLead Limited
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
Pixlogix Infotech
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
Miki Katsuragi
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
NavinnSomaal
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
BookNet Canada
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
BookNet Canada
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
Alfredo García Lavilla
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
Alex Barbosa Coqueiro
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
Scott Keck-Warren
Recently uploaded
(20)
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
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