Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
+(/usr/local/bin/pyenv:23): enable -f /usr/local/bin/../libexec/pyenv-realpath.dylib realpath
+(/usr/local/bin/pyenv:30): '[' -z '' ']'
++(/usr/local/bin/pyenv:32): type -P greadlink readlink
++(/usr/local/bin/pyenv:32): head -1
+(/usr/local/bin/pyenv:32): READLINK=/usr/local/bin/greadlink
+(/usr/local/bin/pyenv:33): '[' -n /usr/local/bin/greadlink ']'
+(/usr/local/bin/pyenv:58): '[' -z '' ']'
+(/usr/local/bin/pyenv:59): PYENV_ROOT=/Users/brondsem/.pyenv
+(/usr/local/bin/pyenv:63): export PYENV_ROOT
+(/usr/local/bin/pyenv:65): '[' -z '' ']'
--- a/ForgeGit/forgegit/model/git_repo.py
+++ b/ForgeGit/forgegit/model/git_repo.py
@@ -656,8 +656,8 @@ def paged_diffs(self, commit_id, start=0, end=None):
'--name-status',
'--no-abbrev',
'--root',
- # show tree entry itself as well as subtrees (Commit.added_paths relies on this)
- '-t',
+ # show only the files that are changed in the repository.)
+ '-r',
@brondsem
brondsem / bash_prompt.sh
Last active August 29, 2015 14:18 — forked from aconrad/bash_prompt.sh
git virtualenv timestamp bash prompt
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch/status of the current git repository (updated for git 2.2.1+)
# * the return value of the previous command
# * the current timestamp
# * colors optimized for light background
$ curl -i -H Accept:application/vnd.github.preview 'https://api.github.com/search/code?q=size%3A%3E1500+path%3Arequirements+extension%3Atxt' | head -n 100
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0HTTP/1.1 200 OK
Server: GitHub.com
Date: Fri, 06 Sep 2013 06:03:21 GMT
@brondsem
brondsem / gist:3278423
Created August 6, 2012 21:01
Both a Decorator and a Context Manager
class skip_if_exception(object):
'''
Given an exception type, returns a decorator & context manager
that will raise SkipTest if that exception type is raised
'''
def __init__(self, ExcType):
self.ExcType = ExcType
def __call__(self, func):
return decorator(self.try_func, func)
commit e6cd88a4adefd899039d124cd5d89276aeb0e666
Author: Dave Brondsema <dbrondsema@geek.net>
Date: Tue May 3 18:43:57 2011 +0000
[#1761] check for anon read access before showing an artifact in irc
Signed-off-by: Dave Brondsema <dbrondsema@geek.net>
diff --git a/ForgeChat/forgechat/command.py b/ForgeChat/forgechat/command.py
index 66fedc3..13b00fc 100644
diff --git a/scripts/update-acls.py b/scripts/update-acls.py
index 5893bee..ff0a3de 100644
--- a/scripts/update-acls.py
+++ b/scripts/update-acls.py
@@ -84,6 +84,10 @@ def update_project_acl(project_doc):
def update_neighborhood_acl(neighborhood_doc, init_doc):
'''Convert nbhd admins users to --init-- project admins'''
+ if 'acl' not in neighborhood_doc:
+ log.warning('Neighborhood %s is already updated' % neighborhood_doc['name'])
diff --git a/scripts/update-acls.py b/scripts/update-acls.py
index 5893bee..ff0a3de 100644
--- a/scripts/update-acls.py
+++ b/scripts/update-acls.py
@@ -84,6 +84,10 @@ def update_project_acl(project_doc):
def update_neighborhood_acl(neighborhood_doc, init_doc):
'''Convert nbhd admins users to --init-- project admins'''
+ if 'acl' not in neighborhood_doc:
+ log.warning('Neighborhood %s is already updated' % neighborhood_doc['name'])
diff --git a/ming/orm/property.py b/ming/orm/property.py
index 2ad5dcf..296d8c7 100644
--- a/ming/orm/property.py
+++ b/ming/orm/property.py
@@ -1,5 +1,6 @@
-from ming.base import Field
+from ming.base import Field, Object
from ming.utils import LazyProperty
+from ming.schema import SchemaItem
from .base import session, state, mapper, lookup_class
diff --git a/ming/orm/property.py b/ming/orm/property.py
index 2ad5dcf..296d8c7 100644
--- a/ming/orm/property.py
+++ b/ming/orm/property.py
@@ -1,5 +1,6 @@
-from ming.base import Field
+from ming.base import Field, Object
from ming.utils import LazyProperty
+from ming.schema import SchemaItem
from .base import session, state, mapper, lookup_class