Changeset 28df4d in indico
- Timestamp:
- 11/30/10 11:42:42 (2 years ago)
- Branches:
- master, burotel, hello-world-walkthrough, ipv6, v0.97-series, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
- Children:
- afa6cd
- Parents:
- bad973
- git-author:
- Leszek Syroka <leszek.marek.syroka@…> (11/25/10 16:33:14)
- git-committer:
- Pedro Ferreira <jose.pedro.ferreira@…> (11/30/10 11:42:42)
- Location:
- indico/MaKaC/webinterface
- Files:
-
- 5 edited
-
rh/categoryMod.py (modified) (1 diff)
-
rh/conferenceModif.py (modified) (1 diff)
-
rh/contribMod.py (modified) (1 diff)
-
rh/sessionModif.py (modified) (1 diff)
-
tpls/AccessControlStatusFrame.tpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/webinterface/rh/categoryMod.py
ra89f94 r28df4d 599 599 def _process( self ): 600 600 params = self._getRequestParams() 601 if params ["visibility"] == "PRIVATE":601 if params.has_key("changeToPrivate"): 602 602 self._target.setProtection( 1 ) 603 elif params ["visibility"] == "INHERITING":603 elif params.has_key("changeToInheriting"): 604 604 self._target.setProtection( 0 ) 605 elif params ["visibility"] == "PUBLIC":605 elif params.has_key("changeToPublic"): 606 606 # The 'Home' category is handled as a special case. 607 607 # We maintain the illusion for the user of it being either -
indico/MaKaC/webinterface/rh/conferenceModif.py
r138bf2 r28df4d 1693 1693 def _checkParams( self, params ): 1694 1694 RHConferenceModifBase._checkParams( self, params ) 1695 if params ["visibility"] == "PRIVATE":1695 if params.has_key("changeToPrivate"): 1696 1696 self._protectConference = 1 1697 elif params ["visibility"] == "INHERITING":1697 elif params.has_key("changeToInheriting"): 1698 1698 self._protectConference = 0 1699 elif params ["visibility"] == "PUBLIC":1699 elif params.has_key("changeToPublic"): 1700 1700 self._protectConference = -1 1701 1701 -
indico/MaKaC/webinterface/rh/contribMod.py
ra89f94 r28df4d 1430 1430 def _process(self): 1431 1431 params = self._getRequestParams() 1432 privacy = params.get("visibility","INHERITING") 1433 self._protect = 0 1434 if privacy == "PRIVATE": 1432 if params.has_key("changeToPrivate"): 1435 1433 self._protect = 1 1436 elif p rivacy == "INHERITING":1434 elif params.has_key("changeToInheriting"): 1437 1435 self._protect = 0 1438 elif p rivacy == "PUBLIC":1436 elif params.has_key("changeToPublic"): 1439 1437 self._protect = -1 1440 1438 self._target.setProtection(self._protect) -
indico/MaKaC/webinterface/rh/sessionModif.py
ra89f94 r28df4d 1176 1176 def _checkParams( self, params ): 1177 1177 RHSessionModifBase._checkParams( self, params ) 1178 privacy = params.get("visibility","INHERITING") 1179 self._protect = 0 1180 if privacy == "PRIVATE": 1178 if params.has_key("changeToPrivate"): 1181 1179 self._protect = 1 1182 elif p rivacy == "INHERITING":1180 elif params.has_key("changeToInheriting"): 1183 1181 self._protect = 0 1184 elif p rivacy == "PUBLIC":1182 elif params.has_key("changeToPublic"): 1185 1183 self._protect = -1 1186 1184 -
indico/MaKaC/webinterface/tpls/AccessControlStatusFrame.tpl
rd25c08 r28df4d 136 136 <% if privacy == 'PRIVATE' or privacy == 'INHERITING': %> 137 137 <div class="ACModifButtonEntry"> 138 <%= _("Make it")%> <input type="submit" class="btn" name=" visibility" value="<%= _("PUBLIC")%>"> <%= _("(viewable by all the users, regardless of the access protection of the parent " + termsDict[type]['parentName'])%> '<%= parentName %>').138 <%= _("Make it")%> <input type="submit" class="btn" name="changeToPublic" value="<%= _("PUBLIC")%>"> <%= _("(viewable by all the users, regardless of the access protection of the parent " + termsDict[type]['parentName'])%> '<%= parentName %>'). 139 139 </div> 140 140 <% end %> 141 141 <% if privacy == 'PUBLIC' or privacy == 'INHERITING': %> 142 142 <div class="ACModifButtonEntry"> 143 <%= _("Make it")%> <input type="submit" class="btn" name=" visibility" value="<%= _("PRIVATE")%>"> <%= _("(viewable only by the users you choose, regardless of the access protection of the parent " + termsDict[type]['parentName'])%> '<%= parentName %>').143 <%= _("Make it")%> <input type="submit" class="btn" name="changeToPrivate" value="<%= _("PRIVATE")%>"> <%= _("(viewable only by the users you choose, regardless of the access protection of the parent " + termsDict[type]['parentName'])%> '<%= parentName %>'). 144 144 </div> 145 145 <% end %> 146 146 <% if privacy == 'PUBLIC' or privacy == 'PRIVATE': %> 147 147 <div class="ACModifButtonEntry"> 148 <%= _("Make it")%> <input type="submit" class="btn" name=" visibility" value="<%= _("INHERITING")%>"> <%= _("the access protection from its parent " + termsDict[type]['parentName'])%> '<%= parentName %>' (<span class=ACStatus style="color: <%=parentStatusColor%>;"><%= _(parentPrivacy)%></span> <%= _("for the moment).")%>148 <%= _("Make it")%> <input type="submit" class="btn" name="changeToInheriting" value="<%= _("INHERITING")%>"> <%= _("the access protection from its parent " + termsDict[type]['parentName'])%> '<%= parentName %>' (<span class=ACStatus style="color: <%=parentStatusColor%>;"><%= _(parentPrivacy)%></span> <%= _("for the moment).")%> 149 149 </div> 150 150 <% end %>
Note: See TracChangeset
for help on using the changeset viewer.
