')
>>> view = create_initialized_view(pmt, '+index')
>>> print view.archive_url
=== modified file 'lib/lp/registry/stories/team/xx-team-home.txt'
--- lib/lp/registry/stories/team/xx-team-home.txt 2009-11-22 15:43:16 +0000
+++ lib/lp/registry/stories/team/xx-team-home.txt 2009-12-21 19:53:58 +0000
@@ -13,19 +13,24 @@
>>> print extract_text(
... find_tag_by_id(browser.contents, 'recently-approved'))
- Recently approved
+ Latest members
Warty Gnome Team
Daniel Silverstone
Celso Providelo
Steve Alexander...
>>> print extract_text(
- ... find_tag_by_id(browser.contents, 'recently-applied'))
+ ... find_tag_by_id(browser.contents, 'recently-proposed'))
Pending approval
Sample Person
Andrew Bennetts
>>> print extract_text(
+ ... find_tag_by_id(browser.contents, 'recently-invited'))
+ Latest invited
+ Warty Security Team
+
+ >>> print extract_text(
... find_tag_by_id(browser.contents, 'team-owner'))
Owner:
Mark Shuttleworth
@@ -88,14 +93,14 @@
Show received invitations
If the team does not have any recently approved or proposed members,
-the recent members sections are not displayed:
+the recent members sections are hidden using the "unseen" css class:
>>> browser.open('http://launchpad.dev/~launchpad')
>>> print find_tag_by_id(browser.contents, 'recently-approved')
- None
+ ...
- >>> print find_tag_by_id(browser.contents, 'recently-applied')
- None
+ >>> print find_tag_by_id(browser.contents, 'recently-proposed')
+ | ...
In the above case there's no user logged in, so it doesn't actually show
what's the user's involvement with the team. If the user logs in, he'll see
@@ -187,7 +192,7 @@
>>> owner_browser = setupBrowser(auth="Basic :test")
>>> owner_browser.open('http://launchpad.dev/~ubuntu-team')
>>> print extract_text(
- ... find_tag_by_id(owner_browser.contents, 'recently-applied'))
+ ... find_tag_by_id(owner_browser.contents, 'recently-proposed'))
Pending approval
Sample Person
Andrew Bennetts
=== modified file 'lib/lp/registry/stories/team/xx-team-membership.txt'
--- lib/lp/registry/stories/team/xx-team-membership.txt 2009-11-22 15:43:16 +0000
+++ lib/lp/registry/stories/team/xx-team-membership.txt 2009-12-21 20:08:16 +0000
@@ -174,6 +174,19 @@
>>> message in second_browser.contents
True
+An admin can see the former members of the team.
+
+ >>> browser.open('http://launchpad.dev/~name18/+members')
+ >>> print extract_text(
+ ... find_tag_by_id(browser.contents, 'inactivemembers'))
+ Name Joined in Status...
+
+Other users cannot see the former members of the team.
+
+ >>> user_browser.open('http://launchpad.dev/~name18/+members')
+ >>> print find_tag_by_id(user_browser.contents, 'inactivemembers')
+ None
+
Team Participation page
=======================
}}} |