- Goals:
- Improve performace by not testing routes unnecessarily
- Provide an ordering of routes based on specificity of a route pattern.
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
From 753e7a27d4650199c75e1476b821ac998213a797 Mon Sep 17 00:00:00 2001 | |
From: Laurence Rowe <[email protected]> | |
Date: Wed, 4 Apr 2012 17:06:56 +0100 | |
Subject: [PATCH] Update version to 2.20.0. Tweak formula. | |
* Use #{version} instead of a hardcoded version in the caveats. | |
* Use a sha1 checksum instead of md5 as it is listed on google code. | |
--- | |
Library/Formula/selenium-server-standalone.rb | 10 +++++----- | |
1 files changed, 5 insertions(+), 5 deletions(-) |
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
require 'tempfile' | |
require 'net/ntlm' | |
require 'kconv' | |
require 'webrobots' | |
## | |
# An HTTP (and local disk access) user agent. This class is an implementation | |
# detail and is subject to change at any time. | |
class Mechanize::HTTP::Agent |
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
Error in test testHeadingLinkRootedItemGone (plone.app.portlets.tests.test_navigation_portlet.TestRenderer) | |
Traceback (most recent call last): | |
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 327, in run | |
testMethod() | |
File "/data/devel/plone/4.3/src/plone.app.portlets/plone/app/portlets/tests/test_navigation_portlet.py", line 595, in testHeadingLinkRootedItemGone | |
link = view.heading_link_target() | |
File "/data/devel/plone/4.3/src/plone.app.portlets/plone/app/portlets/portlets/navigation.py", line 175, in heading_link_target | |
nav_root = self.getNavRoot() | |
File "/data/buildout/eggs/plone.memoize-1.1.1-py2.7.egg/plone/memoize/instance.py", line 51, in memogetter | |
val=func(*args, **kwargs) |
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
/*global document, jQuery */ | |
(function($) { | |
$(function() { | |
var g, renderer; | |
var width = $(document).width() - 20; | |
var height = $(document).height() - 60; | |
g = new Graph(); |
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
def static_resources(config): | |
config.add_static_view('static', 'static', cache_max_age=STATIC_MAX_AGE) | |
favicon_path = '/static/img/favicon.ico' | |
if config.route_prefix: | |
favicon_path = '/%s%s' % (config.route_prefix, favicon_path) | |
config.add_route('favicon.ico', 'favicon.ico') | |
def favicon(request): | |
subreq = request.copy() |
This is an attempt at a formal description of Pyramid's view predicate system in order to find possible avenues for optimization. It was prompted by concern over the approach currently taken to fix #768_.
An alternative implementation approach is suggested using adapter registry subscribers.
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Cache-Control" content="no-cache, no-store" /> | |
<script> | |
function navigate() { | |
var missing_url = window.location.pathname + '/missing' | |
window.history.pushState({test:'test'}, 'new page', missing_url); | |
// Reloading will return the 404 | |
window.location.reload(); |
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
#cloud-config | |
# Debug log | |
output: {all: '| tee -a /var/log/cloud-init-output.log'} | |
package_upgrade: true | |
packages: | |
- screen | |
- git | |
- curl |
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
#!/bin/bash | |
if [ -z "${SAUCE_USERNAME}" ] || [ -z "${SAUCE_ACCESS_KEY}" ]; then | |
echo "This script can't run without your Sauce credentials" | |
echo "Please set SAUCE_USERNAME and SAUCE_ACCESS_KEY env variables" | |
echo "export SAUCE_USERNAME=ur-username" | |
echo "export SAUCE_ACCESS_KEY=ur-access-key" | |
exit 1 | |
fi | |
SAUCE_TMP_DIR="$(mktemp -d -t sc.XXXX)" |
OlderNewer