changeset 111:4f929a3d346d

Fixed a call to urlparse.urlparse() to work w/ Python 2.4, reduced caching time to make development and testing a bit easier.
author avarma@sm-labs01.mozilla.org
date Fri, 28 Mar 2008 16:58:25 -0700
parents 34c9bbf8dfc2
children a0bbdac63dbe
files PersonasBackend/personas/models.py PersonasBackend/settings.py
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/PersonasBackend/personas/models.py	Fri Mar 28 16:52:37 2008 -0700
+++ b/PersonasBackend/personas/models.py	Fri Mar 28 16:58:25 2008 -0700
@@ -78,9 +78,9 @@
     import urlparse
     import cgi
 
-    info = urlparse.urlparse( url )
-    view = info.path[1:]
-    kwargs = cgi.parse_qs( info.query )
+    _, _, path, _, query, _ = urlparse.urlparse( url )
+    view = path[1:]
+    kwargs = cgi.parse_qs( query )
 
     # It is completely ridiculous that we have to do this, but
     # apparently we do, because django's reverse() doesn't like being
--- a/PersonasBackend/settings.py	Fri Mar 28 16:52:37 2008 -0700
+++ b/PersonasBackend/settings.py	Fri Mar 28 16:58:25 2008 -0700
@@ -100,5 +100,5 @@
 )
 
 CACHE_BACKEND = 'locmem:///'
-CACHE_MIDDLEWARE_SECONDS = 30
+CACHE_MIDDLEWARE_SECONDS = 5
 CACHE_MIDDLEWARE_KEY_PREFIX = "personas"