cwvreg.py
changeset 2234 1fbcf202882d
parent 2058 7ef12c03447c
parent 2223 59588e2d5cd1
child 2293 7ded2a1416e4
--- a/cwvreg.py	Mon Jun 29 14:12:18 2009 +0200
+++ b/cwvreg.py	Thu Jul 02 10:35:03 2009 +0200
@@ -303,9 +303,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):