| Author: | Christopher Allan Webber |
|---|---|
| Source: | http://lists.mediagoblin.org/pipermail/devel/2013-February/000426.html |
| import os, subprocess, sys | |
| while True: | |
| try: | |
| [subprocess.call(['mplayer', '-fs', os.path.join(os.path.abspath(sys.argv[1]), i)]) for i in os.listdir(sys.argv[1])] | |
| except Exception as exc: | |
| print('Fail: ' + str(exc)) |
| import logging | |
| logging.getLogger().setLevel(logging.DEBUG) | |
| logging.basicConfig() | |
| from mediagoblin import mg_globals | |
| from mediagoblin.gmg_commands import util as commands_util | |
| from mediagoblin.storage.cloudfiles import CloudFilesStorage |
| == CPython 3.4.0a0 (default, Feb 24 2013, 18:38:43) [GCC 4.7.2] | |
| == Linux-3.5.0-23-generic-x86_64-with-debian-wheezy-sid little-endian | |
| == /home/joar/git/cpython/build/test_python_30879 | |
| Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1) | |
| [1/2] test_datetime | |
| test_astimezone (test.datetimetester.TestSubclassDateTime_Pure) ... ok | |
| test_backdoor_resistance (test.datetimetester.TestSubclassDateTime_Pure) ... ok | |
| test_bad_constructor_arguments (test.datetimetester.TestSubclassDateTime_Pure) ... ok | |
| test_basic_attributes (test.datetimetester.TestSubclassDateTime_Pure) ... ok | |
| test_basic_attributes_nonzero (test.datetimetester.TestSubclassDateTime_Pure) ... ok |
| diff --git a/mediagoblin/app.py b/mediagoblin/app.py | |
| index 607d599..4c48ba8 100644 | |
| --- a/mediagoblin/app.py | |
| +++ b/mediagoblin/app.py | |
| @@ -47,6 +47,7 @@ class MediaGoblinApp(object): | |
| ... this is the heart of the program! | |
| """ | |
| + | |
| def __init__(self, config_path, setup_celery=True): |
| import logging.config | |
| from mediagoblin.app import MediaGoblinApp | |
| from beaker.middleware import SessionMiddleware | |
| logging.config.fileConfig('paste_local.ini') | |
| app = MediaGoblinApp('mediagoblin_local.ini') | |
| app = SessionMiddleware(app, { |
| import socket, sys, json, requests | |
| r = requests.post( | |
| 'https://api.github.com/authorizations', | |
| headers={'Content-Type': 'application/json'}, | |
| data=json.dumps({'scopes': ['repo'], 'note': socket.gethostname()}), | |
| auth=(sys.argv[1], sys.argv[2])) | |
| assert r.status_code == 201 |
I encountered this issue:
(mediagoblin)➜ ~VIRTUAL_ENV git:(master) ✗ ./runtests.sh belz
Using ./bin/py.test
+ CELERY_CONFIG_MODULE=mediagoblin.init.celery.from_tests
+ exec ./bin/py.test ./mediagoblin/tests --boxed
/home/joar/git/mediagoblin/local/lib/python2.7/site-packages/pytest-2.3.4-py2.7.egg/_pytest/assertion/oldinterpret.py:3: DeprecationWarning: The compiler package is deprecated and removed in Python 3.x.
from compiler import parse, ast, pycodegenDon't break our necks over SQLite's inability to ALTER things. SQLite has almost no support for table or column alteration, and this is likely intentional. Alembic's design is kept simple by not contorting it's core API around these limitations, understanding that SQLite is simply not intended to support schema changes. While Alembic's architecture can support SQLite's workarounds, and we will support these features provided someone takes the initiative to implement and test, until the SQLite developers decide to provide a fully working version of ALTER, it's still vastly preferable to use Alembic, or any migrations tool, with databases that are designed to work under the assumption of in-place schema migrations taking place.
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <string-array name="text_allshare"> | |
| <item name="primary">Allshare Play & Cast - smidig delning</item> | |
| <item name="secondary">Anslut smidigt till andra mobila enheter, datorer eller TV-apparater för dela med dig av din multimedia oavsett var du befinner dig.</item> | |
| </string-array> | |
| <string-array name="text_foo"> | |
| <item name="primary">Shape Match</item> | |
| <item name="secondary">Visualisera dina idéer bättre genom att förvandla ojämna streck till prydliga geometriska former. Shape Match korrigerar automatiskt linjer och former.</item> | |
| </string-array> |