Skip to content

Instantly share code, notes, and snippets.

View bbangert's full-sized avatar
🦊
Numb Numb

Ben Bangert bbangert

🦊
Numb Numb
View GitHub Profile
@bbangert
bbangert / gist:2200435
Created March 25, 2012 22:32
multiple view_configs
@view_config(context=Page, name="edit", route_name="pages", permission="admin")
@view_config(context=Page, name="edit", route_name="pages_by_url", permission="admin")
def view_page_edit(context, request):
return Response("edit '%s'" % context.title)
# would be nice if...
@view_config(context=Page, name="edit", route_name="*", permission="admin")
def view_page_edit(context, request):
return Response("edit '%s'" % context.title)
@bbangert
bbangert / fiddle.css
Created October 10, 2011 04:53 — forked from paulrouget/fiddle.css
Firefox HTML Tree Panel
html {
background-color: -moz-dialog;
}
body {
margin: 0;
overflow: auto;
font-family: Lucida Grande, sans-serif;
font-size: 11px;
border-top: 1px solid #BBB9BA;