~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/browser/tests/base-layout.txt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-19 20:39:48 UTC
  • mfrom: (14515.2.29 limited-view-pages-0)
  • Revision ID: launchpad@pqm.canonical.com-20111219203948-bgiz214cd8ox1dej
[r=wallyworld][bug=904283] Users can see pages when they have
        limitedview.

Show diffs side-by-side

added added

removed removed

Lines of Context:
177
177
    Get the code! https://dev.launchpad.net/
178
178
 
179
179
 
180
 
Page registering
181
 
----------------
182
 
 
183
 
The 'registering' slot is presented on the right side of the 'heading'
184
 
and can be filled with the context registering information (registrant
185
 
and date_created, normally).
186
 
 
187
 
    >>> class RegisteringView(LaunchpadView):
188
 
    ...     """A simple view to test base-layout."""
189
 
    ...     __launchpad_facetname__ = 'overview'
190
 
    ...     template = ViewPageTemplateFile('testfiles/main-registering.pt')
191
 
    ...     page_title = 'Test base-layout: main_registering'
192
 
 
193
 
    >>> view = RegisteringView(user, request)
194
 
    >>> html = view.render()
195
 
 
196
 
    >>> from canonical.launchpad.testing.pages import (
197
 
    ...     first_tag_by_class)
198
 
 
199
 
    >>> print first_tag_by_class(html, 'registering')
200
 
    <div id="registration" class="registering">
201
 
    <p>something nice about the context registering.</p>
202
 
    </div>
203
 
 
204
 
Note that the slot itself will be already 'styled' and it rarely has
205
 
to be changed.
206
 
 
207
 
 
208
180
Public and private presentation
209
181
-------------------------------
210
182