Commit 8c1d5a39 authored by's avatar
Browse files

no more used

branch : tls-sprint
parent ed106bb2dcd3
......@@ -18,11 +18,25 @@ from cubicweb.vregistry import VRegistry, ObjectNotFound, NoSelectableObject
_ = unicode
class DummyCursorError(Exception): pass
class RaiseCursor:
def execute(cls, rql, args=None, eid_key=None):
raise DummyCursorError()
def use_interfaces(obj):
from cubicweb.selectors import implements
# XXX deprecated
return sorted(obj.accepts_interfaces)
except AttributeError:
impl = obj.__select__.search_selector(implements)
if impl:
return sorted(impl.expected_ifaces)
except AttributeError:
pass # old-style vobject classes with no accepts_interfaces
return ()
def expand_parent_classes(iface):
res = [iface]
for parent in iface.__bases__:
res += expand_parent_classes(parent)
return res
class CubicWebRegistry(VRegistry):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment