diff options
author | eliott <eliott@cactuswax.net> | 2008-05-23 00:32:32 -0400 |
---|---|---|
committer | eliott <eliott@cactuswax.net> | 2008-05-23 00:32:32 -0400 |
commit | 45b1c2593e4f1433351c01dae7b63dfd146aa530 (patch) | |
tree | 07bc61e583b434dcae8977b7f16ff81745923dac | |
parent | 74a0b6df8a570b8e3c4a9f912ab8cd9678da741c (diff) |
Updates for deployment.
- Fix for reporead when description is empty.
- Fix for settings.py. Middleware wasn't found (changed import name)
- Clarity change for dashboard.
-rwxr-xr-x | scripts/reporead.py | 3 | ||||
-rw-r--r-- | settings.py | 2 | ||||
-rw-r--r-- | templates/devel/index.html | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/scripts/reporead.py b/scripts/reporead.py index 2f97bbbe..08bf038d 100755 --- a/scripts/reporead.py +++ b/scripts/reporead.py @@ -77,6 +77,9 @@ class Pkg(object): selfdict['name'] = val['name'][0] del val['name'] + if 'desc' not in val: + logger.warning("Package %s has no description" % selfdict['name']) + val['desc'] = '' if 'url' not in val: val['url'] = '' for x in val.keys(): diff --git a/settings.py b/settings.py index b0e3cf27..1d086732 100644 --- a/settings.py +++ b/settings.py @@ -60,7 +60,7 @@ if CACHE == True: MIDDLEWARE_CLASSES += ( "django.middleware.common.CommonMiddleware", "django.middleware.doc.XViewMiddleware", - "main.middleware.RequireLoginMiddleware", + "archweb_dev.main.middleware.RequireLoginMiddleware", ) ROOT_URLCONF = 'archweb_dev.urls' diff --git a/templates/devel/index.html b/templates/devel/index.html index 91055376..8c621cc5 100644 --- a/templates/devel/index.html +++ b/templates/devel/index.html @@ -102,7 +102,7 @@ </ul> <ul class="small"> {% for pkg in pkgs %} - <li><a href="/packages/{{ pkg.id }}/">{{ pkg.repo.name }}::{{ pkg.pkgname }} {{ pkg.pkgver }}</a></li> + <li><a href="/packages/{{ pkg.id }}/">{{ pkg.repo.name }}::{{ pkg.pkgname }} {{ pkg.pkgver }} {{ pkg.arch.name }}</a></li> {% endfor %} </ul> {% endif %} |