Skip to content

Instantly share code, notes, and snippets.

#!python
import re
import pep8
# This is a very long line - 79 chars --------------------------------123456789
# This is a very [[with-poporg][long line]] - 79 chars --------------------------------123456789
# This is a very [[with-poporg][long line]] - 80 chars --------------------------------1234567890
@florentx
florentx / openerp6_trace.diff
Last active October 5, 2015 15:38
Trace your OpenERP errors
=== modified file 'openerp/osv/osv.py'
--- openerp/osv/osv.py 2012-02-08 16:13:12 +0000
+++ openerp/osv/osv.py 2012-05-08 21:50:42 +0000
@@ -23,6 +23,8 @@
from functools import wraps
import logging
+import sys
+import traceback
from psycopg2 import IntegrityError, errorcodes
# -*- coding: utf-8 -*-
"""String formatting for Python 2.5.
This is an implementation of the new string formatting (PEP 3101).
Most PEP 3101 features are implemented.
TODO:
- alignment '='
- thousand separator
"""
@florentx
florentx / bbreport.json
Created August 18, 2010 07:08
bbreport web view
{
"gone": [
{
"rules": [
{
"test": "test_multiprocessing",
"message": "$",
"builder": ".* Ubuntu 3.x"
}
],
@florentx
florentx / roomstairs
Created December 11, 2009 20:46 — forked from NaPs/gist:254376
R OO M S TAIRS