This file contains 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
diff --git a/gluon/main.py b/gluon/main.py | |
--- a/gluon/main.py | |
+++ b/gluon/main.py | |
@@ -796,6 +796,11 @@ | |
log_filename, | |
profiler_filename) } | |
+ from werkzeug.serving import run_simple | |
+ app = app_info["wsgi_app"] | |
+ run_simple('localhost', 8000, app, use_reloader=True) |
This file contains 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
#!/bin/sh | |
WEB2PY_DIR=$HOME/work/web2py.dev | |
VENV=$HOME/work/venv | |
CODEDIR=$HOME/work/eas-hgsvn-full-trunk | |
EMEDIATE_GLOBAL_CONF=$HOME/work/devserver_global.conf | |
. $VENV/bin/activate | |
export EMEDIATE_GLOBAL_CONF |
This file contains 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
#!/bin/sh | |
WEB2PY_DIR=$HOME/work/web2py.dev | |
VENV=$HOME/work/venv | |
EMEDIATE_GLOBAL_CONF=$HOME/work/testing_global.conf | |
CODEDIR=$HOME/work/eas-hgsvn | |
CODEDIR_GUI=$CODEDIR/booking/gui | |
TESTS="$CODEDIR_GUI/applications/api $CODEDIR_GUI/applications/booking $CODEDIR_GUI/lib/w2p $CODEDIR/systest/support/tests.py" |
This file contains 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
diff -r ff5196a8c552 gluon/languages.py | |
--- a/gluon/languages.py Wed Oct 24 14:14:55 2012 +0300 | |
+++ b/gluon/languages.py Mon Nov 19 12:59:57 2012 +0200 | |
@@ -283,6 +283,7 @@ | |
def write_plural_dict(filename, contents): | |
+ return | |
if '__corrupted__' in contents: | |
return |
This file contains 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
#!/bin/sh | |
WEB2PY_DIR=$HOME/work/web2py-dev | |
VENV=$HOME/work/venv | |
#EMEDIATE_GLOBAL_CONF=$HOME/work/global-unittests.conf | |
CODEDIR=$HOME/work/eas-hgsvn | |
CODEDIR_GUI=$CODEDIR/booking/gui | |
#TESTS="$CODEDIR_GUI/applications/api $CODEDIR_GUI/applications/booking $CODEDIR_GUI/lib/w2p $CODEDIR/systest/support/tests.py" |
This file contains 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
tn@tns ~/hz % USER_SITE=`python -c 'import site; print site.USER_SITE'` | |
tn@tns ~/hz % mkdir -p "$USER_SITE" | |
tn@tns ~/hz % echo 'import __builtin__; __builtin__.False = True' > "$USER_SITE/happy_debugging_motherfuckers.pth" | |
tn@tns ~/hz % python -c 'print True == False' | |
True |
This file contains 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
diff --git a/gluon/languages.py b/gluon/languages.py | |
--- a/gluon/languages.py | |
+++ b/gluon/languages.py | |
@@ -283,6 +283,7 @@ | |
def write_plural_dict(filename, contents): | |
+ return | |
if '__corrupted__' in contents: | |
return |
This file contains 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 set_tracer(func): | |
from functools import wraps | |
@wraps(func) | |
def inner(*args, **kwargs): | |
import ipdb; ipdb.set_trace() | |
return func(*args, **kwargs) | |
return inner | |
def decorate_methods(decorator): |
This file contains 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 unittest | |
class MaybeCls: | |
def __repr__(self): | |
return 'Maybe' | |
Maybe = MaybeCls() | |
def pour(wall): |
This file contains 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 java.util.concurrent.locks.ReentrantLock; | |
import java.util.concurrent.locks.Condition; | |
public class SimpleSemaphore { | |
private final ReentrantLock lock; | |
private final Condition permitsAvailable; | |
private int permits; | |
public SimpleSemaphore(int permits, boolean fair) { | |
this.lock = new ReentrantLock(fair); |
OlderNewer