Project

General

Profile

Revision 9c0dbb6a

ID9c0dbb6a047a9654ae4b7861a725086a786597ce
Parent 35cea70e
Child 8cb5da40

Added by Thomas ANDREJAK almost 15 years ago

Changement de la base de donnée pour PostgreSQL

git-svn-id: https://vigilo-dev.si.c-s.fr/svn@293 b22e2e97-25c9-44ff-b637-2e5ceca36478

View differences:

vigiboard/controllers/vigiboard_ctl/userutils.py
16 16
    """
17 17

  
18 18
    # Requête permettant d'obtenir les groups directs de l'utilisateur
19

  
19 20
    groups = DBSession.query(Groups.name).join(
20 21
        ( GroupPermissions , Groups.name == GroupPermissions.groupname ),
21 22
        ( Permission ,
......
23 24
        ).filter(Permission.permission_name.in_(
24 25
            tg.request.environ.get('repoze.who.identity').get('permissions')
25 26
        ))
26

  
27
    
27 28
    lst_grp = Set([i.name for i in groups])
28 29
    lst_tmp = lst_grp
29 30
    
30 31
    # On recherche maintenant les groupes indirect
32
    
31 33
    while len(lst_tmp) > 0:
32 34
        groups = DBSession.query(Groups.name).filter(Groups.parent.in_(lst_tmp))
33 35
        tmp = Set([])

Also available in: Unified diff