equal
deleted
inserted
replaced
24 from cubicweb.predicates import is_instance |
24 from cubicweb.predicates import is_instance |
25 from cubicweb.server import hook |
25 from cubicweb.server import hook |
26 |
26 |
27 |
27 |
28 def get_user_sessions(repo, ueid): |
28 def get_user_sessions(repo, ueid): |
29 for session in repo._sessions.values(): |
29 for session in repo._sessions.itervalues(): |
30 if ueid == session.user.eid: |
30 if ueid == session.user.eid: |
31 yield session |
31 yield session |
32 |
32 |
33 |
33 |
34 class SyncSessionHook(hook.Hook): |
34 class SyncSessionHook(hook.Hook): |