[csw-devel] SF.net SVN: gar:[19742] csw/mgar/gar/v2/lib/web/releases_web.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Sun Nov 25 10:31:06 CET 2012
Revision: 19742
http://gar.svn.sourceforge.net/gar/?rev=19742&view=rev
Author: wahwah
Date: 2012-11-25 09:31:05 +0000 (Sun, 25 Nov 2012)
Log Message:
-----------
releases-web: Allow uploads to bratislava and kiel
Modified Paths:
--------------
csw/mgar/gar/v2/lib/web/releases_web.py
Modified: csw/mgar/gar/v2/lib/web/releases_web.py
===================================================================
--- csw/mgar/gar/v2/lib/web/releases_web.py 2012-11-25 09:30:35 UTC (rev 19741)
+++ csw/mgar/gar/v2/lib/web/releases_web.py 2012-11-25 09:31:05 UTC (rev 19742)
@@ -34,6 +34,7 @@
OPENCSW_ROOT = "/home/mirror/opencsw-official"
ALLPKGS_DIR = os.path.join(OPENCSW_ROOT, "allpkgs")
+CAN_UPLOAD_TO_CATALOGS = frozenset(["unstable", "kiel", "bratislava"])
def ConnectToDatabase():
configuration.SetUpSqlobjectConnection()
@@ -146,7 +147,7 @@
stuck and I don't know why.
"""
configuration.SetUpSqlobjectConnection()
- if catrel_name != 'unstable':
+ if catrel_name not in CAN_UPLOAD_TO_CATALOGS:
# Updates via web are allowed only for the unstable catalog.
# We should return an error message instead.
raise web.notfound()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list