Skip to content

Instantly share code, notes, and snippets.

View marconi's full-sized avatar

Marconi Moreto Jr marconi

View GitHub Profile
@marconi
marconi / post-receive
Created August 27, 2011 05:13
Found this nice script for adding git commits to trac.
#! /usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2010 Grzegorz Sobański
#
# Git post receive script developed for mlabs
# - adds the commits to trac
# based on post-receive-email from git-contrib
#
@marconi
marconi / model_api.py
Created August 25, 2011 00:00
Cleaner model API
import copy
class Field(object):
def __init__(self, value=None):
self.name = None
self.value = value
def set_field_name(self, name):
"""