Changeset c174b7 in indico
- Timestamp:
- 11/27/09 17:12:43 (3 years ago)
- 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)
- Location:
- indico/MaKaC
- Files:
-
- 1 added
- 4 edited
-
accessControl.py (modified) (1 diff)
-
conference.py (modified) (3 diffs)
-
webinterface/rh/conferenceModif.py (modified) (2 diffs)
-
webinterface/tpls/PendingUserTableItem.tpl (added)
-
webinterface/wcomponents.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/accessControl.py
r9033fd rc174b7 212 212 213 213 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""" 214 216 if not email in self.getModificationEmail(): 215 217 self.getModificationEmail().append(email) -
indico/MaKaC/conference.py
rf25f07 rc174b7 3876 3876 email = prin.getEmail() 3877 3877 elif isinstance(prin, str): 3878 email = prin 3878 email = prin 3879 3879 if email != None: 3880 3880 if email == "": … … 3882 3882 ah = AvatarHolder() 3883 3883 results=ah.match({"email":email}, exact=1) 3884 #No registered user in Indico with that email 3884 3885 if len(results) == 0: 3885 3886 self.__ac.grantModificationEmail(email) … … 3887 3888 notif = pendingQueues._PendingConfManagerNotification( [prin] ) 3888 3889 mail.GenericMailer.sendAndLog( notif, self.getConference() ) 3890 #The user is registered in Indico and is activated as well 3889 3891 elif len(results) == 1 and results[0] is not None and results[0].isActivated(): 3890 3892 self.__ac.grantModification(results[0]) 3891 results[0].linkTo(self, "manager") 3893 results[0].linkTo(self, "manager") 3892 3894 else: 3893 3895 self.__ac.grantModification( prin ) -
indico/MaKaC/webinterface/rh/conferenceModif.py
rd331450 rc174b7 359 359 chair.setFax(p.get("fax","")) 360 360 self._target.addChair(chair) 361 #If the chairperson needs to be given management rights 361 362 if p.get("manager", None): 362 363 avl = user.AvatarHolder().match({"email":p.get("email","")}) … … 365 366 self._target.grantModification(av) 366 367 else: 368 #Apart from granting the chairman, we add it as an Indico user 367 369 self._target.grantModification(chair) 368 370 -
indico/MaKaC/webinterface/wcomponents.py
rd06055 rc174b7 1904 1904 return vars 1905 1905 1906 class 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 1906 1919 1907 1920 class WGroupTableItem(WTemplated): … … 2011 2024 ul.append( WGroupTableItem().getHTML( principal, selected, self.__selectable ) ) 2012 2025 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)) 2014 2027 vars["userItems"] = "".join( ul ) 2015 2028 return vars
Note: See TracChangeset
for help on using the changeset viewer.
