appobject.py
branchstable
changeset 7815 2a164a9cf81c
parent 7387 d240cff2d8ba
child 7879 9aae456abab5
equal deleted inserted replaced
7814:1ec9fe1dfba9 7815:2a164a9cf81c
     1 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     1 # copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
     3 #
     3 #
     4 # This file is part of CubicWeb.
     4 # This file is part of CubicWeb.
     5 #
     5 #
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
     6 # CubicWeb is free software: you can redistribute it and/or modify it under the
   239         """
   239         """
   240         merged_selectors = []
   240         merged_selectors = []
   241         for selector in selectors:
   241         for selector in selectors:
   242             try:
   242             try:
   243                 selector = _instantiate_selector(selector)
   243                 selector = _instantiate_selector(selector)
   244             except:
   244             except Exception:
   245                 pass
   245                 pass
   246             #assert isinstance(selector, Selector), selector
   246             #assert isinstance(selector, Selector), selector
   247             if isinstance(selector, cls):
   247             if isinstance(selector, cls):
   248                 merged_selectors += selector.selectors
   248                 merged_selectors += selector.selectors
   249             else:
   249             else: