--- a/entities/schemaobjs.py Thu Oct 21 17:56:35 2010 +0200
+++ b/entities/schemaobjs.py Thu Oct 21 17:56:55 2010 +0200
@@ -33,7 +33,6 @@
from cubicweb.entities import AnyEntity, fetch_config
-
class CWSource(AnyEntity):
__regid__ = 'CWSource'
fetch_attrs, fetch_order = fetch_config(['name', 'type'])
@@ -47,7 +46,8 @@
dictconfig = self.dictconfig
host = gethostname()
for hostcfg in self.host_configs:
- if hostcfg.match(hostname):
+ if hostcfg.match(host):
+ self.info('matching host config %s' % hostcfg.match_host)
dictconfig.update(hostcfg.dictconfig)
return dictconfig