Skip to content

Instantly share code, notes, and snippets.

View whitmo's full-sized avatar
💭
state 26

Whit Morriss whitmo

💭
state 26
View GitHub Profile
[apache]
url = http://apache.osuosl.org/httpd/httpd-2.2.15.tar.bz2
check = bin/apachectl
mpm = worker
options =
--prefix=%(env)s
--exec-prefix=%(env)s
--with-port=%(port)s
--with-mpm=%(mpm)s
--enable-rewrite=shared
this_dir = os.path.dirname(__file__) or "."
options(
download_cache=path('~/.python-cache').expanduser(),
env=path(os.environ.get('VIRTUAL_ENV', '.')),
port=8081,
local_ini=path('build_state.ini'),
build_ini=path('build.ini'),
minilib=Bunch(
extra_files=[]
from UserDict import DictMixin
from decorator import decorator
from formencode import htmlfill
from pylons.decorators import PylonsFormEncodeState, determine_response_charset, encode_formencode_errors
from webob import UnicodeMultiDict, MultiDict
import formencode
import peppercorn
import logging
log = logging.getLogger(__name__)
# use for howler tests
class FakeBaboonCheckout(object):
def __init__(self):
pass
@dec.wsgify
def __call__(self, request):
import pdb;pdb.set_trace()
seg = request.path_info_pop()
assert seg == 'checkout', ValueError('looking for "checkout", not "%s"')
Traceback (most recent call last):
File "/opt/webapp/0.6.2/lib/python2.6/site-packages/gevent/wsgi.py", line 107, in handle
result = self.server.application(env, self.start_response)
File "/opt/webapp/0.6.2/lib/python2.6/site-packages/paste/gzipper.py", line 35, in __call__
return self.application(environ, start_response)
File "/opt/webapp/0.6.2/lib/python2.6/site-packages/paste/cascade.py", line 130, in __call__
return self.apps[-1](environ, start_response)
File "/opt/webapp/0.6.2/lib/python2.6/site-packages/paste/registry.py", line 379, in __call__
app_iter = self.application(environ, start_response)
2010-10-19T15:42:29Z,898 ERROR [baboon.controllers.checkout] Error queueing email action.
Traceback (most recent call last):
File "/opt/webapp/1.0b3-baboon/src/baboon/baboon/controllers/checkout.py", line 589, in POST
transaction['paymentMethodSubtype'] = self.dal.billingpaymentmethodsubtypes.get_subtype_from_id(int(transaction['paymentMethodSubtypeID']))
ValueError: invalid literal for int() with base 10: ''
[distutils]
index-servers =
pypi
sm
[sm]
username:whit
password:secret
repository:http://yorick:9003/simple
@whitmo
whitmo / gist:920052
Created April 14, 2011 17:50
meetup description
Pylons Project technologies power many important and varied web sites
that call the bay area their birth place.
This group exist to help the folks who build these sites share their
experiences, knowledge, and love of beer as well as to help other
learn how they can benefit from the only python web framework unafraid
of admitting it's love of Egyptology and Iron Maiden.
If you live in the greater bay area, do python, and care about speed
and code quality, build web sites that have to scale and last or
Starting all nodes...
Starting node rabbit@pa-lintools...
{error_logger,{{2011,6,20},{15,35,23}},"Protocol: ~p: register error: ~p~n",["inet_tcp",{{badmatch,{error,duplicate_name}},[{inet_tcp_dist,listen,1},{net_kernel,start_protos,4},{net_kernel,start_protos,3},{net_kernel,init_node,2},{net_kernel,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}]}
{error_logger,{{2011,6,20},{15,35,23}},crash_report,[[{initial_call,{net_kernel,init,['Argument__1']}},{pid,<0.22.0>},{registered_name,[]},{error_info,{exit,{error,badarg},[{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},{ancestors,[net_sup,kernel_sup,<0.10.0>]},{messages,[]},{links,[#Port<0.119>,<0.19.0>]},{dictionary,[{longnames,false}]},{trap_exit,true},{status,running},{heap_size,610},{stack_size,24},{reductions,484}],[]]}
{error_logger,{{2011,6,20},{15,35,23}},supervisor_report,[{supervisor,{local,net_sup}},{errorContext,start_error},{reason,{'EXIT',nodistribution}},{offender,[{pid,undefined},{name,net_kernel},{mfa,{net_kernel,start_link,[[
@whitmo
whitmo / gist:1039181
Created June 21, 2011 23:02
knife client list -VV
whit:~$ knife client list -VV
DEBUG: Using configuration from /Users/whit/.chef/knife.rb
DEBUG: Signing the request as whit
/opt/local/lib/ruby/gems/1.8/gems/mixlib-authentication-1.1.4/lib/mixlib/authentication/signedheaderauth.rb:82:in `canonical_path': private method `gsub' called for nil:NilClass (NoMethodError)
from /opt/local/lib/ruby/gems/1.8/gems/mixlib-authentication-1.1.4/lib/mixlib/authentication/signedheaderauth.rb:102:in `canonicalize_request'
from /opt/local/lib/ruby/gems/1.8/gems/mixlib-authentication-1.1.4/lib/mixlib/authentication/signedheaderauth.rb:55:in `sign'
from /opt/local/lib/ruby/gems/1.8/gems/chef-0.10.0/lib/chef/rest/auth_credentials.rb:51:in `signature_headers'
from /opt/local/lib/ruby/gems/1.8/gems/chef-0.10.0/lib/chef/rest.rb:321:in `authentication_headers'
from /opt/local/lib/ruby/gems/1.8/gems/chef-0.10.0/lib/chef/rest.rb:366:in `build_headers'