~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/browser/distroseriesdifference.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-06-21 22:17:38 UTC
  • mfrom: (13228.4.8 set-ppa-private)
  • Revision ID: launchpad@pqm.canonical.com-20110621221738-l68s7zrnalblik8l
[r=jcsackett][bug=724740] Provides facility to set a PPA private via
        the API

Show diffs side-by-side

added added

removed removed

Lines of Context:
160
160
        return self.request.is_ajax and self.can_request_diffs
161
161
 
162
162
    @cachedproperty
163
 
    def enable_blacklist_options(self):
164
 
        """Should we enable the blacklisting (ignore) radio widget options.
 
163
    def show_blacklist_options(self):
 
164
        """Should we show the blacklisting (ignore) radio widget options.
165
165
 
166
 
        Only enable the options if an editor requests via JS and the user
 
166
        Only show the options if an editor requests via JS and the user
167
167
        is an archive admin.
168
168
        """
169
169
        return self.request.is_ajax and check_permission(
170
170
            'launchpad.Admin', self.context)
171
171
 
172
 
    @cachedproperty
173
 
    def blacklist_options_css_class(self):
174
 
        """The css class for the blacklist option slot.
175
 
        'blacklist-options' if enabled.
176
 
        'blacklist-options-disabled' if not enabled.
177
 
        """
178
 
        if self.enable_blacklist_options:
179
 
            return 'blacklist-options'
180
 
        else:
181
 
            return 'blacklist-options-disabled'
182
 
 
183
172
    @property
184
173
    def display_diffs(self):
185
174
        """Only show diffs if there's a base version."""