This file contains hidden or 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
(localwiki)lcrouch-14912:localwiki lcrouch$ git pull | |
remote: Counting objects: 17, done. | |
remote: Compressing objects: 100% (4/4), done. | |
remote: Total 10 (delta 7), reused 9 (delta 6) | |
Unpacking objects: 100% (10/10), done. | |
From github.com:localwiki/localwiki | |
8588f2f..e792602 master -> origin/master | |
Updating 8588f2f..e792602 | |
Fast-forward | |
INSTALL | 2 +- |
This file contains hidden or 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
====================================================================== | |
FAIL: test_clean_next_url_protocol_relative_redirect (vagrant.apps.users.tests.test_templates.LoginTests) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/vagrant/vendor/packages/mock/mock.py", line 196, in patched | |
return func(*args, **keywargs) | |
File "/vagrant/apps/users/tests/test_templates.py", line 143, in test_clean_next_url_protocol_relative_redirect | |
eq_(None, _clean_next_url(redir_request)) | |
File "/vagrant/vendor/packages/nose/nose/tools.py", line 31, in eq_ | |
assert a == b, msg or "%r != %r" % (a, b) |
This file contains hidden or 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
Environment: | |
Request Method: GET | |
Request URL: http://127.0.0.1:8000/api/page/foo?format=json&full=True | |
Django Version: 1.3 | |
Python Version: 2.7.3 | |
Installed Applications: | |
['django.contrib.auth', |
This file contains hidden or 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
(Pdb) p self.base_urls() | |
[<RegexURLPattern api_dispatch_list ^(?P<resource_name>page)/?$>, <RegexURLPattern api_get_schema ^(?P<resource_name>page)/schema/?$>, <RegexURLPattern api_get_multiple ^(?P<resource_name>page)/set/(?P<name_list>\w[\w/;-]*)/?$>, <RegexURLPattern api_dispatch_detail ^(?P<resource_name>page)/(?P<name>[^_]((?!(/_)|(_/)).)*?)/?$>] |
This file contains hidden or 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
redirect_url = reverse('api_dispatch_detail', | |
kwargs={'resource_name':'page', | |
'name':obj.slug} | |
) |
This file contains hidden or 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
File "/vagrant/apps/landing/views.py", line 93, in apps_newsletter | |
optin=optin) | |
File "/vagrant/vendor/src/basket-client/basket/base.py", line 69, in subscribe | |
return request('post', 'subscribe', data=kwargs) | |
File "/vagrant/vendor/src/basket-client/basket/base.py", line 57, in request | |
return parse_response(res) | |
File "/vagrant/vendor/src/basket-client/basket/base.py", line 27, in parse_response | |
if res.error: | |
AttributeError: 'Response' object has no attribute 'error' |
This file contains hidden or 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
'filters': { | |
'require_debug_false': { | |
'()': 'django.utils.log.RequireDebugFalse', | |
}, | |
'require_debug_true': { | |
'()': 'devmo.utils.RequireDebugTrue', | |
}, | |
}, |
This file contains hidden or 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 logging | |
from django.conf import settings | |
class RequiredDebugTrue(logging.Filter): | |
def filter(self, record): | |
return settings.DEBUG |
This file contains hidden or 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
vagrant@developer-local:/vagrant$ cd /tmp/ | |
vagrant@developer-local:/tmp$ /usr/bin/pip install --download-cache=/vagrant/puppet/cache/pip -r /vagrant/puppet/files/tmp/graphite_reqs.txt | |
Requirement already satisfied (use --upgrade to upgrade): django==1.3 in /usr/local/lib/python2.7/dist-packages (from -r /vagrant/puppet/files/tmp/graphite_reqs.txt (line 1)) | |
Requirement already satisfied (use --upgrade to upgrade): python-memcached in /usr/local/lib/python2.7/dist-packages (from -r /vagrant/puppet/files/tmp/graphite_reqs.txt (line 2)) | |
Requirement already satisfied (use --upgrade to upgrade): django-tagging in /usr/local/lib/python2.7/dist-packages (from -r /vagrant/puppet/files/tmp/graphite_reqs.txt (line 3)) | |
Requirement already satisfied (use --upgrade to upgrade): twisted in /usr/local/lib/python2.7/dist-packages (from -r /vagrant/puppet/files/tmp/graphite_reqs.txt (line 4)) | |
Requirement already satisfied (use --upgrade to upgrade): whisper==0.9.9 in /usr/local/lib/python2.7/dist-packages (from -r /vagrant/pup |
This file contains hidden or 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
if search_query: | |
results = (results.query(or_={'title': search_query, | |
'content': search_query}) | |
.highlight('content')) | |
result_count = results.count() | |
results = results[start:end] | |
for doc in results: | |
for match in doc._highlight['content']: | |
match = bleach.clean(match, tags=['em',], strip=True) |