Member since 07/18/2007

Name: Ches


Location: Cambridge, MA


5 snippets

3321 profile views

5 Comment(s) Posted

View their favorites



first submission:submitting first snipplet

ches's Recent SnippetsTagged python

« Prev 1 Next »
This context manager restores the value of the current working directory (cwd) after the enclosed code block completes or raises an exception. If a directory name is supplied to the context manager then the cwd is changed prior to running the code b...
0 735 posted 12 years ago by ches
Obviously there's no real crytpo here -- use this for cases like regenerating and emailing a user password.
1 880 posted 16 years ago by ches
model/ 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 1016 posted 16 years ago by ches
like PHP's 'jS'
0 1604 posted 16 years ago by ches
« Prev 1 Next »