Commits

seccanj  committed 88594bc

Release 1.3.6. Fixed bug #8004.

  • Participants
  • Parent commits 9f5fcb2

Comments (0)

Files changed (3)

File testman4trac/trunk/setup.py

 
 setup(
     name='TestManager',
-    version='1.3.4',
+    version='1.3.6',
     packages=['testmanager'],
     package_data={'testmanager' : ['*.txt', 'templates/*.html', 'htdocs/js/*.js', 'htdocs/css/*.css', 'htdocs/images/*.*']},
     author = 'Roberto Longobardi, Marco Cipriani',

File tracgenericclass/trunk/setup.py

 
 setup(
     name='TracGenericClass',
-    version='1.0.1',
+    version='1.0.2',
     packages=['tracgenericclass'],
     package_data={'tracgenericclass' : ['*.txt', 'templates/*.html', 'htdocs/*.*', 'htdocs/js/*.js', 'htdocs/css/*.css', 'htdocs/images/*.*']},
     author = 'Roberto Longobardi',

File tracgenericclass/trunk/tracgenericclass/api.py

         gclass_modelprovider = GenericClassModelProvider(self.env)
 
         for realm in gclass_modelprovider.get_known_realms():
-            gclass_modelprovider.get_class_provider(realm).check_permission(req, realm, key_str=None, operation='search')
+            try:
+                gclass_modelprovider.get_class_provider(realm).check_permission(req, realm, key_str=None, operation='search')
 
-            metadata = gclass_modelprovider.get_metadata(realm)
+                metadata = gclass_modelprovider.get_metadata(realm)
+                
+                if 'searchable' in metadata and metadata['searchable']:
+                    if 'label' in metadata:
+                        label = metadata['label']
+                    else:
+                        label = realm.capitalize()
+                    
+                    yield (realm, label)
             
-            if 'searchable' in metadata and metadata['searchable']:
-                if 'label' in metadata:
-                    label = metadata['label']
-                else:
-                    label = realm.capitalize()
-                
-                yield (realm, label)
+            except:
+                self.env.log.debug("No permission to search on realm %s." % realm)
+
 
     def get_search_results(self, req, terms, filters):
         gclass_modelprovider = GenericClassModelProvider(self.env)