Versions used:
$ svn --version svn, version 1.6.17 (r1128011) compiled Nov 20 2011, 03:42:58 ...
headers=('501 Gateway error', [('Content-Type', 'text/html')]) | |
header=501 Gateway error | |
header=[('Content-Type', 'text/html')] | |
headers=('501 Gateway error', [('Content-Type', 'text/html')]) | |
header=501 Gateway error | |
header=[('Content-Type', 'text/html')] |
--- windmill/server/proxy.py Thu Apr 16 18:03:52 2009 | |
+++ windmill/server/proxy.py.new Thu Apr 16 20:40:10 2009 | |
@@ -248,9 +248,13 @@ | |
else: | |
headers = connection.pop(0) | |
for header in copy.copy(headers): | |
- if header[0].lower() in cache_removal: | |
- headers.remove(header) | |
- start_response(*headers+cache_additions) | |
+ if len(header) == 1: |
diff --git a/chrome/site/style.css b/chrome/site/style.css | |
--- a/chrome/site/style.css | |
+++ b/chrome/site/style.css | |
@@ -15,13 +15,13 @@ | |
a {text-decoration: none; border: none!important;} | |
a img {border: none;} | |
#django-nav-global a, #django-footer a { color:#ffc757; } | |
-#django-content-main a { color:#ab5603!important; } | |
a:hover { color:#ffe761; } | |
#django-content-main a:hover { background-color:#E0FFB8; color:#234f32; text-decoration:none; } |
diff -r 5054922efb9d django/contrib/admin/options.py | |
--- a/django/contrib/admin/options.py Tue Apr 26 16:56:17 2011 +0000 | |
+++ b/django/contrib/admin/options.py Wed Apr 27 15:44:33 2011 -0300 | |
@@ -10,6 +10,7 @@ | |
from django.views.decorators.csrf import csrf_protect | |
from django.core.exceptions import PermissionDenied, ValidationError | |
from django.core.paginator import Paginator | |
+from django.core.urlresolvers import reverse | |
from django.db import models, transaction, router | |
from django.db.models.related import RelatedObject |
Ran 4074 tests in 25662.744s | |
FAILED (failures=1, errors=8, skipped=54, expected failures=3) |
We're trying to move the admin from having hard-coded URLs to use named ones (See e.g. #15294)
But there is one remaining occurrence that had slipped (reported in #18072): https://github.com/django/django/blob/master/django/contrib/admin/views/main.py#L378 (It is used to generate links to the object edit view from the changelist cells)
I've switch it to use reverse('admin:%s_%s_change', ...)
instead.
The problem is that I can't find how a particular test (item 4 below) should be modified to not fail but also to not test the wrong thing.
Por lo que alcanzo a ver se usa una grilla de 5x5 = 25 celdas.
Cada celda puede estar pintada o no.
Esto nos da 2^25 = 33554432 posibles avatars máximo.
Pero hay un detalle: Los avatars son simétricos horizonalmente, o sea si los partimos por la mitad en su "eje vertical" queda la misma imagen espejada en las mitades derecha e izquierda.
De manera que en realidad tenemos la mitad de combinaciones x^25 / 2 = 16777216
ramiro@mang:~$ mkvirtualenv ftfm | |
New python executable in ftfm/bin/python | |
Installing setuptools............done. | |
Installing pip...............done. | |
(ftfm)ramiro@mang:~$ pip install ftfy | |
Downloading/unpacking ftfy | |
Downloading ftfy-3.0.3.tar.gz | |
Running setup.py egg_info for package ftfy | |