>>> anon_browser.open('http://launchpad.dev/~name16/+hwdb-submissions')
>>> print extract_text(find_main_content(anon_browser.contents))
- Hardware submissions for Foo Bar
+ Hardware submissions for Foo Bar...
Foo Bar has posted no submissions.
Submissions that are marked as private and owned by a team are only
@@ -131,7 +131,7 @@
>>> anon_browser.open(
... 'http://launchpad.dev/~ubuntu-team/+hwdb-submissions')
>>> print extract_text(find_main_content(anon_browser.contents))
- Hardware submissions for Ubuntu Team
+ Hardware submissions for Ubuntu Team...
Ubuntu Team has posted no submissions.
>>> browser = setupBrowser(auth='Basic <email address hidden>:cprov')
@@ -233,5 +233,6 @@
>>> anon_browser.open(
... 'http://launchpad.dev/+hwdb/+fingerprint/unknownfingerprint')
>>> print extract_text(find_main_content(anon_browser.contents))
+ Hardware Database submissions for a fingerprint
Submissions for system: unknownfingerprint
There are no submissions for this system.
-def launchpad_addform(context, view):
- """Return the page_title of the view, or None."""
- # Returning None results in the default Launchpad page title being used.
- return getattr(view, 'page_title', None)
-
-launchpad_editform = launchpad_addform
-
launchpad_feedback = 'Help improve Launchpad'
Thank you Edwin!
I have made all of the changes you requested, except that when I removed the page_title, tests failed. I left it in.
The requested bug is https:/ /bugs.edge. launchpad. net/launchpad- registry/ +bug/433074 . It is 3 registry templates and 1 blueprint template, so I pushed it in registry as a first guess.
The incremental diff also includes changes to address other problems I found in tests.
Thanks again.
Gary
=== modified file 'lib/canonical/ launchpad/ pagetests/ hwdb/02- view-submission s.txt' launchpad/ pagetests/ hwdb/02- view-submission s.txt 2008-03-19 09:25:03 +0000 launchpad/ pagetests/ hwdb/02- view-submission s.txt 2009-09-19 14:32:00 +0000
--- lib/canonical/
+++ lib/canonical/
@@ -102,7 +102,7 @@
>>> anon_browser.open('http:// launchpad. dev/~name16/ +hwdb-submissio ns') text(find_ main_content( anon_browser. contents) )
>>> print extract_
- Hardware submissions for Foo Bar
+ Hardware submissions for Foo Bar...
Foo Bar has posted no submissions.
Submissions that are marked as private and owned by a team are only launchpad. dev/~ubuntu- team/+hwdb- submissions') text(find_ main_content( anon_browser. contents) )
@@ -131,7 +131,7 @@
>>> anon_browser.open(
... 'http://
>>> print extract_
- Hardware submissions for Ubuntu Team
+ Hardware submissions for Ubuntu Team...
Ubuntu Team has posted no submissions.
>>> browser = setupBrowser( auth='Basic <email address hidden>:cprov') launchpad. dev/+hwdb/ +fingerprint/ unknownfingerpr int') text(find_ main_content( anon_browser. contents) )
@@ -233,5 +233,6 @@
>>> anon_browser.open(
... 'http://
>>> print extract_
+ Hardware Database submissions for a fingerprint
Submissions for system: unknownfingerprint
There are no submissions for this system.
=== modified file 'lib/canonical/ launchpad/ pagetitles. py' launchpad/ pagetitles. py 2009-09-18 20:25:59 +0000 launchpad/ pagetitles. py 2009-09-19 13:19:49 +0000
--- lib/canonical/
+++ lib/canonical/
@@ -317,8 +317,6 @@
debug_root_index = 'Launchpad Debug Home Page'
-default_editform = 'Default "Edit" Page' rror_index = ContextTitle( 'Mirror %s')
-
distributionmi
distribution_ archive_ list = ContextTitle('%s Copy Archives')
@@ -417,13 +415,6 @@
# launchpad_debug doesn't need a title.
-def launchpad_ addform( context, view):
- """Return the page_title of the view, or None."""
- # Returning None results in the default Launchpad page title being used.
- return getattr(view, 'page_title', None)
-
-launchpad_editform = launchpad_addform
-
launchpad_feedback = 'Help improve Launchpad'
launchpad_ forbidden = 'Forbidden'
@@ -517,8 +508,6 @@
# messages_index is a redirect
-message_add = ContextBugId('Bug #%d - Add a comment')
-
milestone_add = ContextTitle('Add new milestone for %s')
milestone_edit = ContextTitle('Edit %s')
=== modified file 'lib/canonical/ launchpad/ templates/ hwdb-fingerprin t-submissions. pt' launchpad/ templates/ hwdb-fingerprin t-submissions. pt 2009-09-18 20:25:59 +0000 launchpad/ templates/ hwdb-fingerprin t-submissions. pt 2009-09-19 13:21:09 +0000 domain= "launchpad" "heading" > pageheading>
--- lib/canonical/
+++ lib/canonical/
@@ -7,9 +7,6 @@
i18n:
>
<body>
- <metal:pageheading fill-slot=
- <h1>Hardware Database</h1>
- </metal:
<div metal:fill- slot="main"
tal:define= "batchnav view/getAllBatched;
=== modified file 'lib/canonical/ launchpad/ templates/ notification- test.pt' launchpad/ templates/ notification- test.pt 2009-09-18 20:25:59 +0000 launchpad/ templates/ notification- test.pt 2009-09-19 13:22:24 +0000 slot="main" >
--- lib/canonical/
+++ lib/canonical/
@@ -11,9 +11,5 @@
<div metal:fill-
</div>
-<metal:block fill-slot="help">
- <p>A test of notification messages.</p>
-</metal:block>
-
</body>
</html>