[Zope-CVS] CVS: Packages/zpkgtools/zpkgtools - config.py:1.5
Fred L. Drake, Jr.
fred at zope.com
Tue Mar 16 12:00:34 EST 2004
Update of /cvs-repository/Packages/zpkgtools/zpkgtools
In directory cvs.zope.org:/tmp/cvs-serv20321
Modified Files:
config.py
Log Message:
change "repository-map" to "resource-map" in the configuration file
=== Packages/zpkgtools/zpkgtools/config.py 1.4 => 1.5 ===
--- Packages/zpkgtools/zpkgtools/config.py:1.4 Tue Mar 16 10:59:59 2004
+++ Packages/zpkgtools/zpkgtools/config.py Tue Mar 16 12:00:01 2004
@@ -32,7 +32,7 @@
return string
SCHEMA = cfgparser.Schema(
- ({"repository-map": non_empty_string}, [], None),
+ ({"resource-map": non_empty_string}, [], None),
)
@@ -55,9 +55,7 @@
f = open(path, "rU")
p = cfgparser.Parser(f, path, SCHEMA)
cf = p.load()
- for value in cf.repository_map:
- if not value:
- raise ValueError("'repository-map' requires a location")
+ for value in cf.resource_map:
type, rest = urllib.splittype(value)
if not type:
# local path references are relative to the file
More information about the Zope-CVS
mailing list