- From https://bugs.launchpad.net/openobject-server/+bug/908069:
ALTER TABLE ir_model_fields ADD column serialization_field_id int references ir_model_fields on delete cascade;
Copy custom modules to addons directory
- account_easy_bank_reconcile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import sys | |
| sys.path.append('/usr/lib/python2.6/site-packages/Jinja2-2.5.5-py2.6.egg') | |
| from jinja2 import Template | |
| import odbAccess | |
| from symbolicConstants import * | |
| from abaqusConstants import * | |
| import csv | |
| import re | |
| import glob |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import sys | |
| import odbAccess | |
| from glob import glob | |
| import re | |
| from collections import defaultdict | |
| import numpy as NP | |
| import subprocess | |
| def open_odb(odbPath): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import os | |
| import odbAccess | |
| import numpy as NP | |
| import math | |
| def open_odb(odbPath): | |
| base, ext = os.path.splitext(odbPath) | |
| odbPath = base + '.odb' | |
| new_odbPath = None |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import sys | |
| FICA_employee_rate = 0.042 | |
| FICA_company_rate = 0.062 | |
| Medicare_rate = 0.0145 | |
| federal_withholding_rate = 0.28 | |
| FUTA_rate = 0.006 | |
| check_amount = float(sys.argv[1]) | |
| pay = check_amount/(1.0- | |
| FICA_employee_rate- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find . -name "*.zip" | while read filename; do unzip -n -d "`dirname "$filename"`" "$filename"; done; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def isclose(x, y, rtol=1.e-5, atol=1.e-8): | |
| return abs(x-y) <= atol + rtol * abs(y) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as NP | |
| import math | |
| def isclose(x, y, rtol=1.e-5, atol=1.e-8): | |
| return abs(x-y) <= atol + rtol * abs(y) | |
| def euler_angles_from_rotation_matrix(R): | |
| ''' | |
| From a paper by Gregory G. Slabaugh (undated), | |
| "Computing Euler angles from a rotation matrix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import shutil | |
| import sys | |
| import argparse | |
| def split_path(path): | |
| folders=[] | |
| while 1: | |
| path,folder=os.path.split(path) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import gevent.monkey | |
| gevent.monkey.patch_all() | |
| import boto | |
| import config | |
| import gevent | |
| import gevent.pool | |
| import os |