Welcome To Snipplr


Everyone's Recent Python Snippets



Little utility script I wrote to find subversion working copies and update them. If no arguments are given the script starts from the current directory.
0 1515 posted 17 years ago by claytron
http://lineguides.netsons.org
0 1284 posted 17 years ago by cirio
http://lineguides.netsons.org
0 1292 posted 17 years ago by cirio
going to use twitterlocal to play around a bit with pygooglechart.
0 1411 posted 17 years ago by mandric
A way to post to twitter from Google AppEngine using urlfetch.
4 1896 posted 17 years ago by sgraber
This bit of code allows you to turn code that looks like this: x = {'foo':1, 'bar':2 } x['foo'] = 3 Into this: x = dictclass( {'foo':1, 'bar':2 } ) x.foo = 3
2 1602 posted 17 years ago by kangell
Send an e-mail message to the given addresses.
2 1419 posted 17 years ago by kangell
Run the specified command. If expect is not None then look for the given text in the output. If it is not there we throw an error. expect can also be a list of strings. In that case any match results in success unless matchall=True.
0 1336 posted 17 years ago by kangell
Use this to start of new python applications.
1 1537 posted 17 years ago by kangell
1 1546 posted 17 years ago by kangell
This is the SoftPRO library needed by the GUI Collector main file.
0 1149 posted 18 years ago by stagger
0 1230 posted 18 years ago by stagger
This is the main file. You also need the libraries posted here for the program to work.
0 1122 posted 18 years ago by stagger
0 1379 posted 18 years ago by stagger
0 1443 posted 18 years ago by sgraber
I got halfway making this but switched to another method. Thought I'd save it just in case... options_for_select(): http://pylonshq.com/WebHelpers/module-webhelpers.rails.form_options.html#options_for_select Based on http://snipplr.com/view/169/u...
0 1149 posted 18 years ago by pr1001
1 1708 posted 18 years ago by arcturus
0 1550 posted 18 years ago by arcturus
You can also check other kind of perms changing the constant os.R_OK
0 1529 posted 18 years ago by arcturus
Obviously there's no real crytpo here -- use this for cases like regenerating and emailing a user password.
1 1766 posted 18 years ago by ches
model/form.py is a good place to put schemata in a pylons app: easy to build with inheritance and accessible to controllers via model.form.EmailForm, etc. See the link for further info on the _extra_fields options -- this one is intended for just two...
1 2915 posted 18 years ago by ches