Skip to content

Instantly share code, notes, and snippets.

View tarunbhardwaj's full-sized avatar

Tarun Bhardwaj tarunbhardwaj

View GitHub Profile
#!/bin/bash
usage()
{
cat << EOF
usage: $0 options
This script set ownership for all table, sequence and views for a given database
Credit: Based on http://stackoverflow.com/a/2686185/305019 by Alex Soto
@tarunbhardwaj
tarunbhardwaj / tryton_shell.py
Last active December 21, 2015 10:39 — forked from vishesh/tryton_shell
A simple Tryton shell environment that initializes one database and config file for you. I intend to use to interact with models.Customized: You can directly start using tryton ORM
#!/usr/bin/env python
""" tryton_shell: A dirty shell for Tryton to quickly interact with it
usage: tryton_shell.py [-h] --config CONFIG --database DATABASE
arguments:
--config CONFIG Tryton config file.
--database DATABASE Tryton database.