Changeset c174b7 in indico


Ignore:
Timestamp:
11/27/09 17:12:43 (3 years ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, new-webex, prov-dual-interface, v0.97-series, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
Children:
f1a1efb
Parents:
955d01
git-author:
Cesar Munoz Orena <cesar.munoz.orena@…> (11/26/09 15:15:31)
git-committer:
Pedro Ferreira <jose.pedro.ferreira@…> (11/27/09 17:12:43)
Message:

[IMPROVEMENT] Possible deleting nonReg in modContr

  • The main problem of the ticket (non checking duplicate emails when an non-registered Indico user is added twice in the Modification control managers) seems to be now working, but since apparently no changes have been made in that part it looks quite strange that is now working properly, so we'd better wait for more feedback to confirm this.
  • The improvement comes because now it's possible to delete non-registered users in that field.
Location:
indico/MaKaC
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/accessControl.py

    r9033fd rc174b7  
    212212     
    213213    def grantModificationEmail(self, email): 
     214        """looks if the email is in the managersEmail list (list with the users with access to modification) 
     215        and if it's not it adds the email to the list""" 
    214216        if not email in self.getModificationEmail(): 
    215217            self.getModificationEmail().append(email) 
  • indico/MaKaC/conference.py

    rf25f07 rc174b7  
    38763876            email = prin.getEmail() 
    38773877        elif isinstance(prin, str): 
    3878             email = prin 
     3878            email = prin  
    38793879        if email != None: 
    38803880            if email == "": 
     
    38823882            ah = AvatarHolder() 
    38833883            results=ah.match({"email":email}, exact=1) 
     3884            #No registered user in Indico with that email 
    38843885            if len(results) == 0: 
    38853886                self.__ac.grantModificationEmail(email) 
     
    38873888                    notif = pendingQueues._PendingConfManagerNotification( [prin] ) 
    38883889                    mail.GenericMailer.sendAndLog( notif, self.getConference() ) 
     3890            #The user is registered in Indico and is activated as well 
    38893891            elif len(results) == 1 and results[0] is not None and results[0].isActivated(): 
    38903892                self.__ac.grantModification(results[0]) 
    3891                 results[0].linkTo(self, "manager") 
     3893                results[0].linkTo(self, "manager")  
    38923894        else: 
    38933895            self.__ac.grantModification( prin ) 
  • indico/MaKaC/webinterface/rh/conferenceModif.py

    rd331450 rc174b7  
    359359        chair.setFax(p.get("fax","")) 
    360360        self._target.addChair(chair) 
     361        #If the chairperson needs to be given management rights 
    361362        if p.get("manager", None): 
    362363            avl = user.AvatarHolder().match({"email":p.get("email","")}) 
     
    365366                self._target.grantModification(av) 
    366367            else: 
     368                #Apart from granting the chairman, we add it as an Indico user 
    367369                self._target.grantModification(chair) 
    368370 
  • indico/MaKaC/webinterface/wcomponents.py

    rd06055 rc174b7  
    19041904        return vars 
    19051905 
     1906class WPendingUserTableItem(WTemplated): 
     1907 
     1908    def getHTML( self, email, selectable=True ): 
     1909        self.email = email 
     1910        self._selectable = selectable 
     1911        return WTemplated.getHTML( self, {} ) 
     1912 
     1913    def getVars( self ): 
     1914        vars = WTemplated.getVars( self ) 
     1915        vars["email"] = self.email 
     1916        vars["selectable"] = self._selectable 
     1917 
     1918        return vars 
    19061919 
    19071920class WGroupTableItem(WTemplated): 
     
    20112024                ul.append( WGroupTableItem().getHTML( principal, selected, self.__selectable ) ) 
    20122025        for email in self.__pendings: 
    2013             ul.append( _("""<input type="checkbox" name="selectedPrincipals" value="%s" > <span class="blacktext">%s <small> _("(Pending)")</small></span><br>""")%(email, email)) 
     2026            ul.append(WPendingUserTableItem().getHTML(email, self.__selectable)) 
    20142027        vars["userItems"] = "".join( ul ) 
    20152028        return vars 
Note: See TracChangeset for help on using the changeset viewer.