Changeset 96485d in indico


Ignore:
Timestamp:
06/15/10 17:22:07 (3 years ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, new-webex, v0.97-series, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
Children:
c44780
Parents:
e19e71
git-author:
Leszek Syroka <leszek.marek.syroka@…> (06/15/10 16:33:32)
git-committer:
Jose Benito <jose.benito.gonzalez@…> (06/15/10 17:22:07)
Message:

[FIX] Search conveners give rights

  • rights to conveners can be given directly at the search webpage
  • fix#343
  • reviewed by jbenito: rename of class to adapt it our name conventions
Location:
indico/MaKaC/webinterface
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/webinterface/pages/sessions.py

    r0f44e4 r96485d  
    876876        else: 
    877877            searchLocal = True 
    878         p = wcomponents.WComplexSelection(self._conf,searchAction,forceWithoutExtAuth=searchLocal) 
     878        p = wcomponents.WComplexSelection(self._conf,searchAction, addTo = 5, forceWithoutExtAuth=searchLocal) 
    879879        return p.getHTML(params) 
    880880 
  • indico/MaKaC/webinterface/wcomponents.py

    re0ef1f r96485d  
    40024002        return wc.getHTML(p) 
    40034003 
    4004 class WSelectionBoxConvToManager: 
     4004class WSelectionBoxConvToManagerCoordinator: 
    40054005 
    40064006    def getHTML(self): 
    40074007        wc=WSelectionBox() 
    40084008        p={ 
    4009             "description":  _(""" _("Please check the box if you want to add them as manager/s"):<br><br><i><font color=\"black\"><b> _("Note"): </b></font>_("If this person is not already an Indico user they will be sent an email asking them to create an account. After their registration the user will automatically be given session manager rights").</i><br>"""),\ 
    4010             "options":  _("""<input type="checkbox" name="userRole" value="convener"> _("Add as session manager") 
     4009            "description":  _(""" _("Please check the box if you want to add them as managers/coordinators"):"""),\ 
     4010            "options":  _("""<input type="checkbox" name="managerControl"> _("Add as session manager")<br> 
     4011                             <input type="checkbox" name="coordinatorControl"> _("Add as session coordinator") 
    40114012                        """) 
    40124013          } 
     
    40414042        #addTo=3: show selection box to add session managers as session conveners 
    40424043        #addTo=4: show selection box to add submitter as speaker. This is just for meetings 
     4044        #addTo=5: show selection box to add submitter and/or manager rights for convener. 
    40434045        self._addTo=addTo 
    40444046 
     
    41424144            elif self._addTo==4: 
    41434145                sb=WMSelectionBoxAuthors().getHTML() 
     4146            elif self._addTo==5: 
     4147                sb=WSelectionBoxConvToManagerCoordinator().getHTML() 
    41444148        vars["selectionBox"]=sb 
    41454149        vars["searchOptions"]="" 
     
    42124216 
    42134217 
    4214     def __init__(self, target, searchAction, forceWithoutExtAuth=False): 
     4218    def __init__(self, target, searchAction, addTo = 0, forceWithoutExtAuth=False): 
    42154219        _title = _("Search for users") 
    4216         WUserSelection.__init__(self, searchAction, forceWithoutExtAuth=forceWithoutExtAuth) 
     4220        WUserSelection.__init__(self, searchAction, addTo = addTo, forceWithoutExtAuth=forceWithoutExtAuth) 
    42174221        try: 
    42184222            self._conf = target.getConference() 
Note: See TracChangeset for help on using the changeset viewer.