cwvreg.py
branchstable
changeset 2223 59588e2d5cd1
parent 2025 010a4b0fe855
child 2234 1fbcf202882d
child 2273 daf6e178659f
--- 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):