コード例 #1
0
ファイル: room.py プロジェクト: lukasnellen/indico
 def update( self ):
     """ Documentation in base class. """
     RoomBase.update( self )
     
     # Check Simba mailing list
     listName = self.customAtts.get( 'Simba List' )
     if listName:
         from MaKaC.user import GroupHolder
         groups = GroupHolder().match( { 'name': listName }, forceWithoutExtAuth = True )
         if not groups:
             groups = GroupHolder().match( { 'name': listName } )
         if not groups:
             self.customAtts['Simba List'] = 'Error: unknown mailing list'
     
     self._p_changed = True
コード例 #2
0
ファイル: room.py プロジェクト: aninhalacerda/indico
    def update( self ):
        """ Documentation in base class. """
        RoomBase.update( self )

        # Check Simba mailing list
        listName = self.customAtts.get( 'Simba List' )
        if listName:
            from MaKaC.user import GroupHolder
            groups = GroupHolder().match( { 'name': listName }, forceWithoutExtAuth = True )
            if not groups:
                groups = GroupHolder().match( { 'name': listName } )
            if not groups:
                self.customAtts['Simba List'] = 'Error: unknown mailing list'

        # reindex - needed due to possible manager changes
        # super slow, though...
        Catalog.getIdx('user_room').unindex_obj(self.guid)
        Catalog.getIdx('user_room').index_obj(self.guid)

        self._p_changed = True
コード例 #3
0
    def update( self ):
        """ Documentation in base class. """
        RoomBase.update( self )

        # Check Simba mailing list
        listName = self.customAtts.get( 'Simba List' )
        if listName:
            from MaKaC.user import GroupHolder
            groups = GroupHolder().match( { 'name': listName }, forceWithoutExtAuth = True )
            if not groups:
                groups = GroupHolder().match( { 'name': listName } )
            if not groups:
                self.customAtts['Simba List'] = 'Error: unknown mailing list'

        # reindex - needed due to possible manager changes
        # super slow, though...
        Catalog.getIdx('user_room').unindex_obj(self.guid)
        Catalog.getIdx('user_room').index_obj(self.guid)

        self._p_changed = True