| Client Tools for web2py |
mr.freeze |
This is a helper module that I wrote for web2py that lets you do some interesting and useful things with client side script. You can manage resources (scripts and css), events and other behavior from the server. |
Javascript |
2009-09-19
|
events
jQuery
module
ajax
|
5
|
| Paypal integration in Web2py |
benigno |
This document is meant to be an introduction to Paypal integration in web2py, it does, by no means, cover all the possible integrations with Paypal, and is mostly centered on what Paypal names \emph{Standard Integration}. The examples given are proven at the time of writing this article, but they should be taken only as a lead and starting point rather than reference. For that, please use both paypal's and web2py's documentation. |
Development |
2009-10-09
|
paypal
integration
|
5
|
| Upload Progress in web2py |
andcycle |
base on Django snippets
<http://www.djangosnippets.org/snippets/678/>
<http://www.djangosnippets.org/snippets/679/> |
Other |
2009-10-16
|
AJAX
|
5
|
| OPTIONS_WITH_ADD_LINK |
renatocaliari |
This widget adds a link next to the <SELECT> object created by IS_IN_DB that allows create a new record (option) without leaving the screen. |
Widget |
2009-10-17
|
add-link
is_in_db
|
5
|
| Class-based plugin for web2py : A case study with cairo piechart |
suiato |
This application shows an experimental example of a class-based plugin scheme on web2py. The 'cairo piechart' application (slice12) by ont.rif is restructured to demonstrate part of the scheme. |
Development |
2009-10-26
|
class-based
plugin
class
module
application
controller
|
5
|
| Deploying on slicehost mod_wsgi postgresql |
thadeusb |
Notes on how to deploy web2py on ubuntu using apache mod_wsgi and postgresql inside of VirtualHost |
Deployment |
2009-10-26
|
deploying-web2py,
slicehost,
mod_wsgi,
postgresql
|
5
|
| OR, LIKE, BELONGS, and more on Google App Engine (new in 1.69.1) |
mdipierro |
corrected some typos |
Other |
2009-10-28
|
dal
|
5
|
| Using CKEditor for text fields |
jonromero |
Although web2py comes with an integrated editor, I really like ckeditor and using it for a text field is trivial using widgets! |
Representation |
2009-10-30
|
ckeditor
widget
|
5
|
| jQueryUI slider widget |
mr.freeze |
This is a widget for using the jQueryUI slider for integer input |
Widget |
2009-11-02
|
jQueryUI
slider
widget
|
5
|
| jQueryUI datepicker widget |
mr.freeze |
This is a simple widget for using the jQuery datepicker on a text input. |
Widget |
2009-11-02
|
jQueryUI
datepicker
widget
|
5
|
| In-place Edit Widget |
mr.freeze |
Here is a widget that presents your text as a label until you double click it at which point it turns into a text input. |
Widget |
2009-11-02
|
In-place
edit
widget
|
5
|
| Autocomplete widget using a jQuery plugin |
mr.freeze |
This is a (overly)simple autocomplete widget using the pengoworks jQuery plugin. I used it because it works and I am too lazy to download the files and can include them using response.files |
Widget |
2009-11-03
|
jQuery
autocomplete
widget
|
5
|
| Hierarchical Category Tree |
thadeusb |
Sample category plug-in class. |
Model |
2009-11-09
|
categories,
blog,
tree,
tree-traversal
|
5
|
| RPX and web2py Auth module |
mr.freeze |
This is an RPX Auth module I wrote that allows local and RPX authentication at the same time. |
Module |
2009-11-11
|
RPX
Auth
|
5
|
| High Availability Cluster with Pound |
mdipierro |
session sticky by IP |
Application |
2009-11-16
|
pound,
scalability,
cluster
|
5
|
| ajax function eyecandy |
select |
make the ajax function display a loading icon |
Application |
2009-12-01
|
ajax
loading
|
5
|
| WebGrid for web2py |
mr.freeze |
This is a module that lets you build a table on the server that supports paging, sorting, editing and totals easily. It requires no javascript or sessions to work. |
Module |
2009-12-04
|
grid
table
sorting
paging
|
5
|
| Web2py Environment for debugging |
thadeusb |
Place a div on your page, and a little jquery magic, you have access to request, response, and session. Remember, this is to help in the development process |
Development |
2009-12-08
|
debugging
|
5
|
| Modify form elements and attributes |
mr.freeze |
Here are a few tricks for modifying individual form elements |
Controller |
2009-12-15
|
form
element
attribute
|
5
|
| Easy Breadcrumbs |
alexandreandrade |
Easily makes and personalize breadcrumbs. This one is for applications don't use nested functions |
Development |
2009-12-28
|
script
breadcrumb
|
5
|
| Full Breadcrumbs |
alexandreandrade |
This is for applications that use nested functions, where you want the user pass by a function first to go to another, so you can set the parent functions, getting the history of navigation or hide the own function |
Development |
2009-12-29
|
script
breadcrumb
|
5
|
| Ajax Live Search (auto-complete) |
mandriluy |
This is a very easy way to make an ajax live search using JQuery , xHTML , CSS and Web2Py on the server side ;-) |
Javascript |
2010-01-20
|
ajax
web2py
live
search
autocomplete
jquery
|
5
|
| Ajax Live User Validation |
mandriluy |
Very easy to use and implement ajax user validation, it checks if the user exists on the DB table or not.. if it exists it avoids form submission. |
Javascript |
2010-01-21
|
ajax
web2py
user
validation
|
5
|
| WYSIWYG Markdown in Your Plugin/LOAD ajax=True |
select |
How to get a WYSIWYG editor for form textareas that saves markdown (lightweight markup language supported by web2py) even in an ajax frame and how to dispay the markdown text again |
Application |
2010-01-25
|
ajax
markdown
WYSIWYG
plug-in
editor
|
5
|
| Low memory fooprint using Lighttpd |
johnmheenan |
Issues concerned with low memory footprint using web2py are discussed. Specific steps for configuring Lighttpd for static file use, URL remapping and a FastCGI UNIX socket are documented as well as a complete minimalist file. Corresponding sample 'routes_out' entries are shown. |
Deployment |
2010-02-12
|
Lighttpd
memory
FastCGI
WSGI
|
5
|
| google app engine blobstore API support |
what_ho |
Describes how to use the Google blobstore API, allowing files up to 50MB to be used when a web2py project is hosted on Google App Engine |
Model |
2010-02-23
|
gae
google-app-engine
blobstore
large-file
|
5
|
| JQuery Autocomplete Widget |
mr.freeze |
This is another autocomplete widget |
Widget |
2010-02-28
|
autocomplete
widget
jQuery
|
5
|
| Unit testing |
jonromero |
A unit testing solution |
Development |
2010-03-02
|
UnitTesting
|
5
|
| web2py sub-url with fastcgi |
rppowell |
This is how I setup web2py on a hosting service with FastCGI in a subdirectory. |
Deployment |
2010-03-02
|
FastCGI
sub-url
|
5
|
| jQuery Multi-Select Widget |
mr.freeze |
This is a widget that handles multi-select fields |
Widget |
2010-03-07
|
multiple
select
multiselect
|
5
|
| jqGrid and web2py |
mr.freeze |
This is a simple example of how to get started with jqGrid on web2py |
Javascript |
2010-03-16
|
jqGrid
jQuery
grid
|
5
|
| Planet web2py |
reingart |
RSS/Atom simple aggregator using feedparser and rss2 |
Application |
2010-05-25
|
planet
rss2
feedparse
web2py
|
5
|
| Fast downloads |
reingart |
A "faster" (smarter) alternative for download dynamic content from web2py |
Controller |
2010-05-27
|
download
performance
caching
headers
|
5
|
| Cascading Drop Down Lists |
mr.freeze |
This is a widget I wrote to ease the implementation of displaying interdependent values. |
Widget |
2010-06-03
|
cascading
dropdown
dependent
|
5
|
| Widgets, widgets, widgets |
mr.freeze |
This is a collection of widgets I have made together in a sample application. |
Widget |
2010-06-10
|
widget
represent
|
5
|
| Auto Tooltip in Forms |
yamandu |
Shows tooltips in forms created via CRUD or SQLFORM with the field“s comment attribute. |
View |
2010-07-27
|
tooltip
jquery
comment
widget
automatic
|
5
|
| List:string Validator and Widget |
yamandu |
list:string types do not come yet with pratical dynamic validator and widget so I wrote one.
It handles list:string like text tags separated by comma by in a transparent way. |
Widget |
2010-08-30
|
list:string
tags
validator
jquery
|
5
|
| Color picker widget |
pbertera |
This is a widget that create a colorpicker |
Widget |
2010-09-03
|
colorpicker
|
5
|
| Deploying on Dreamhost with Passenger WSGI |
mr.freeze |
This post explains how I got this site working on Dreamhost using Passenger WSGI. It's a consolidation of several other wiki posts. Even though Passenger is designed for Rails it has built in support for WSGI apps. According to an email I received from Phusion, WSGI support in Passenger is stable and they haven't received a single crash report. That's good enough for me. |
Deployment |
2009-08-22
|
Dreamhost
WSGI
Phusion
Passenger
|
4
|
| Debugging with Eclipse and PyDev |
mr.freeze |
These are the steps I used to setup Eclipse and PyDev to debug web2py apps. Sure you can edit code through the admin interface (which is extremely handy for quick changes) but there's nothing quite like setting a break point and inspecting variables. |
Development |
2009-08-25
|
PyDev
debugging
Eclipse
|
4
|
| Star Rating Widget |
mr.freeze |
This is how I got a star rating widget implemented on this site. |
Widget |
2009-09-05
|
star
rating
widget
|
4
|
| Cairo piechart |
ont.rif |
This is example of how to output cairo generation from controller's function. |
Controller |
2009-10-21
|
cairo
module
pie-plot
pie-chart
chart
vector
svg
png
|
4
|
| Google Wave bot |
hcvst |
The Google "Hello, Robot" tutorial on w2p |
Controller |
2009-10-29
|
google
wave
robot
wsgi
|
4
|
| Update web2py: shell script |
jlundell |
Tested under OS X, but should work on other Unix-like systems. See script for documentation. Now in scripts/. |
Deployment |
2009-10-31
|
update
script
|
4
|
| Setup web2py+apache+ssl+mod_wsgi+postgresql in few seconds |
mdipierro |
Fast web2py deployment script |
Application |
2009-11-12
|
script
|
4
|
| matplotlib howto |
mdipierro |
first draft |
Application |
2009-11-12
|
plotting,
matplotlib
|
4
|
| Audit trail |
mdipierro |
draft |
Application |
2009-11-30
|
audit,
dal
|
4
|
| Cleaner html output |
kbochert |
Remove the excess blank lines that the web2py rendering engine puts in its output. |
Application |
2009-12-16
|
filter
|
4
|
| web2py with Cherokee via uWSGI: a simple, easy guide |
graymattercomputing |
(written specifically for Ubuntu, but applicable to all systems)
By: Evan Gray - GrayMatterComputing |
Deployment |
2010-02-24
|
web2py
cherokee
uwsgi
easy
guide
ubuntu
|
4
|
| Two related forms on the same page |
kunkurus |
It allows multiple forms (2) on the same page using JQuery Tools and iframe. |
Representation |
2010-02-27
|
multiple
forms,
iframe,
jquery
tools
|
4
|
| modular application design |
select |
this is an example of how to create a modular application with web2py |
Application |
2010-03-13
|
mudular,
design,
signal,
slot,
ajax,
plugin
|
4
|
| Live sparkline graphs with JQuery and JSON |
mike ellis |
Minimal but complete example that shows one way to display and update live graphics with JQuery and JSON. |
Application |
2010-05-16
|
sparkline
jquery
json
|
4
|
| Upload Image and make a Thumbnail |
villas |
This is a method I found to upload an image (into the uploads folder) and then create the thumbnail in the same directory. One good point is that Web2py allocates the filenames so everything can have authorization etc. It requires the Python Image Library installed. |
Controller |
2010-02-21
|
Image
Thumbnails
Upload
|
3
|
| Dynamic Menu |
mr.freeze |
I use this function to build a dynamic menu from the contents of my controllers. I mainly use it during development. I should also mention that this won't work if you byte-code compile your app and distribute it without source code. |
Development |
2009-09-05
|
dynamic
menu
|
0
|
| A better random password |
mr.freeze |
If you use the IS_STRONG validator on your passwords then you may encounter a situation where the password generated when resetting your password does not meet the complexity requirements of IS_STRONG. Here's the fix. |
Tools |
2009-09-05
|
random
password
reset
auth
|
0
|
| Recaptcha Options |
mr.freeze |
Recaptcha has a nice client API that includes many options. |
Javascript |
2009-09-06
|
Recaptcha
options
|
0
|
| Consuming a web2py JSON service with jQuery |
mr.freeze |
This is a simple example of how to retrieve JSON data from the server and consume it with jQuery. |
Javascript |
2009-09-17
|
JSON
jQuery
service
|
0
|
| Blackberry Mileage Tracker |
mr.freeze |
This is a simple app to help your users track mileage on their Blackberry mobile device. No fancy GPS, just define your trips and email a report. |
Application |
2009-10-26
|
Blackberry
mileage
|
0
|
| Version Control Development Vs. Production |
thadeusb |
A strategy for keeping your application under version control, while allowing easy updating on your production app. |
Development |
2009-11-02
|
mercurial,
version-control,
deployment
|
0
|
| Three Dropdown Date Selector |
mr.freeze |
Here is another widget that uses three selects to allow the user to pick a date. |
Widget |
2009-11-05
|
select
date
widget
|
0
|
| Store Auth, Crud and Mail settings in database |
mr.freeze |
This is a way to externalize your auth, crud and mail settings so that they can be stored in the database and managed through appadmin . |
Model |
2009-11-07
|
auth
crud
mail
settings
|
0
|
| A Simple Page Statistics Model |
amueckl |
Create a new file models/pageStatistics.py and copy this slice into it.
If you want to get the results displayed to the visitor, also add a line to the views/layout.html. |
Model |
2009-11-14
|
visits
statistics
model
|
0
|
| Syntax highlighting for a blog / etc |
thadeusb |
Simple solution to find all <pre> tags and replace them with syntax highlighted content. Uses BeautifulSoup and pygments. |
Representation |
2009-11-15
|
pygments,
beautifulsoup,
syntax-highlighting,
highlighting
|
0
|
| Add confirmation to form submit |
mr.freeze |
This is an easy way to add a confirmation dialog during a form submit |
Javascript |
2009-11-23
|
form
submit
confirm
|
0
|
| web2py with mod_proxy on ubuntu |
select |
i have a apache server running which i wanted to show my web2py apps that are running on the provided server under port 8000 so that i can call http://localhost/myapp/ <- thats the apache server instead of http://127.0.0.1:8000/myapp/ <- thats the web2py server |
Application |
2009-12-01
|
ubuntu
apache
mod_proxy
|
0
|
| rounded corners: no images, no javascript, simple css - for Opera, WebKit (Safari, Chrome) and Gecko (Firefox) |
select |
for WebKit (Safari, Chrome) and Gecko (Firefox) the experimental css3
property is used to create the rounded corners and for Opera an SVG
image with rounded corners is generated and used as background |
Application |
2009-12-01
|
rounded
corners
css
div
|
0
|
| Cleaner urls with routes.py |
kbochert |
This adds new URLs without invalidating any 'normal' URLs
routes.out is as yet untested! Its just the inverse -- I couldn't possibly have messed up, right? |
Other |
2009-12-08
|
routes.py
url_mapping
|
0
|
| Quick List/Update/Create table snippet |
benigno |
I do not particularly like having a function for each of the standard operations (select, update, create) on a single table. Moreso when I am prototyping or just want quick cruds. Not only do they clutter the controller a lot but they also end up being nasty URIs.
So here is a little piece of very basic code, that I find myself reusing again and again. I hope it is useful for you too. |
Controller |
2009-12-09
|
snippet
|
0
|
| Scaffolding |
jonromero |
Similar to Rails scaffolding. Creates admin panel with just one line! |
Tools |
2009-12-26
|
scaffolding
admin
|
0
|
| JSON-RPC From Javascript |
mrgrieves |
Enables your javascript to call web2py controller actions directly using JSON-RPC as a transport |
Other |
2010-01-15
|
json-rpc
ajax
javascript
|
0
|
| GET requests in plugins/LOAD ajax=True |
select |
Web2py plugins are nice but you cannot use A href hyperlinks to refresh just the plugin div, here is a trick how to make GET requests from plugins |
View |
2010-01-17
|
LOAD
ajax
GET
plugin
href
link
|
0
|
| Serializing Python DateTime Objects into JSON |
tfarrell |
This is a method to convert Python Date and DateTime objects into a Javascript date or datetime declaration that most browser can parse as JSON. |
Javascript |
2010-01-19
|
JSON
datetime
python
|
0
|
| remove form labels |
select |
to remove all labels from a form, Massimo showed me this trick |
View |
2010-01-21
|
form
labels
remove
|
0
|
| on accept update default value of form var |
select |
this slice was stupid since I did not read the manual |
View |
2010-02-04
|
form_factory
"default
value"
"not
updated"
|
0
|
| make web2py sub-url mountable with apache+mod_wsgi |
gansevle |
This is (obviously) a hack, so test it extensively before deploying it in your environment.
Tested with web2py-1.74.6 and web2py-1.74.11. |
Deployment |
2010-02-07
|
wsgi
sub-url
|
0
|
| BEAUTIFY enhanced |
johnmheenan |
How to break the alphabetic ordering dependence of BEAUTIFY and use multiple word keys with the dict method. The normal behaviour of BEAUTIFY is not changed. |
View |
2010-02-15
|
Layout
|
0
|
| eye candy ajax file upload in LOAD/plug-in component with component refresh |
select |
Forms that are in a LOAD div (e.g. a plug-in) do not upload files. To get around this I used a jQuery plugin. I combined this with the ability of web2py to update components selectively. |
Plugin |
2010-02-19
|
"file
upload"
upload
ajax
"eye
candy"
plug-in
|
0
|
| Send HTML mail |
ndegroot |
A quick and dirty way to send HTML mail. Adapting the mail module in tools.py would be the next step... I just put it here to be able to refer to it in an answer on the Web2py group |
Model |
2010-03-06
|
HTML-mail
|
0
|
| ssh tunnel to admin |
kuba |
PORT FORWARDING VIA SSH (ADMiN DISABLED PROBLEM) |
Development |
2010-03-08
|
ssh
admin
|
0
|
| minimalistic example code for making amf3 rpc calls from Flex to web2py using pyamf |
iggass |
Unlike the example in "The Official web2py Book", this is mostly mxml Flex code.
Note that this slice assumes working with Windows distribution of web2py server. It is quite likely that alterations will be required for other distributions or in case of running under Apache. |
Application |
2010-03-09
|
rpc
amf
amfrpc3
Flex
pyamf
|
0
|
| ram cache quota |
kuba |
This recipe is about web2py using RAM MEMORY for "disk caching" on linux(with TMPFS). |
Deployment |
2010-03-11
|
cache
caching
memory
ram
tmpfs
|
0
|
| web2py on shared hosting (Hostmonster) with FastCGI |
iggass |
This is how I set up web2py running with FastCGI on Hostmonster shared hosting. |
Deployment |
2010-04-19
|
web2py
fcgi
fastcgi
hostmonster
shared
hosting
|
0
|
| Facebook, Twitter, and Google Authentication |
cfhowes |
Authenticating with Facebook Connect, Twitter API, and/or Google accounts. Working on and off of Google App Engine (GAE) |
Module |
2010-04-21
|
authentication
facebook
twitter
google
google-app-engine
|
0
|
| Dynamic search |
mr.freeze |
This creates a form that allows the user to dynamically search and select fields in a table |
Tools |
2010-04-26
|
dynamic
search
form
|
0
|
| Django-like blocks in templates |
szabba |
Django has a different template inheritance pattern (http://docs.djangoproject.com/en/1.2/topics/templates/#template-inheritance) which encourages the use of multiple blocks that can be overriden by a child template... |
View |
2010-05-23
|
blocks
|
0
|
| model creation wrappers |
richard |
Handy shortcuts for creating an updating database records |
Model |
2010-05-24
|
model
|
0
|
| An Hibernate like ORM for Web2py built above the DAL |
kunkurus |
An Hibernate like ORM for Web2py built above the DAL |
Module |
2010-05-29
|
hibernate
|
0
|
| Master/Detail Records Example |
asmancom |
I'm learning from the examples, but there isn't anything that actually returns master and detail records from the controller then renders them in the view.
How is this best done?
I have a bunch of resources, and capabilities, and be able to view the resources with a list of their capabilities as detail records.
In Microsoft Access, this is accomplished with sub-reports, or sub-forms... what is the PROPER way to do it in Web2PY.
I'm going to be doing a lot of this kind of stuff and I don't want to be doing it in an inefficient manner. |
Development |
2010-06-11
|
Jquery
|
0
|
| Configure options class |
richard |
This is a modified version of the Configure class. |
Other |
2010-06-18
|
configure
model
|
0
|
| Cascading Select based on python lists (as opposed to a database) |
pythonista |
This slice is a shameless hack on Mr.Freeze's CascadingSelect. I needed similar behaviour, but without the complexity of databases. To use this, you'll need to download his version and then hack this into it. Sorry. |
Widget |
2010-06-26
|
Cascading
Select
List
|
0
|
| Post preview like you have in blogs. |
rockiger |
If you have very long articles/blog posts you probably want to show a shorter version in der index page of your blog.
This slice cuts the preview at 1000 characters;
searches the index of next closing </p>-Tag;
ads the four chars of </p>
and finally overides the initial blog post with the shortened blog post. |
Controller |
2010-07-11
|
blog
controller
|
0
|
| Logging |
ykessler |
Logging best practices in web2py |
Other |
2010-07-22
|
logging
|
0
|
| plugin_wiki widgets - category / sidebar / search |
rochacbruno |
Includes the functionality of category management, search, categoryList through widgets. |
Widget |
2010-07-26
|
GAE
plugin_wiki
blog
|
0
|
mr.freeze
mr.freeze
jumi
paulgerrard