close #343467, no sources sections in site properties stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 01 Jul 2009 20:03:15 +0200
branchstable
changeset 2223 59588e2d5cd1
parent 2222 81130047390d
child 2224 52041b014949
close #343467, no sources sections in site properties
cwvreg.py
--- a/cwvreg.py	Wed Jul 01 19:46:47 2009 +0200
+++ b/cwvreg.py	Wed Jul 01 20:03:15 2009 +0200
@@ -294,9 +294,10 @@
 
     def user_property_keys(self, withsitewide=False):
         if withsitewide:
-            return sorted(self['propertydefs'])
+            return sorted(k for k in self['propertydefs']
+                          if not k.startswith('sources.'))
         return sorted(k for k, kd in self['propertydefs'].iteritems()
-                      if not kd['sitewide'])
+                      if not kd['sitewide'] and not k.startswith('sources.'))
 
     def register_property(self, key, type, help, default=None, vocabulary=None,
                           sitewide=False):