Minor since they are synonyms but I'd use displayname here as it is
more familiar for a person. Will apply to all.
> @cachedproperty
> def related_projects(self):
> """Return a list of project dicts owned or driven by this person.
> === modified file 'lib/lp/registry/stories/foaf/xx-person-packages.txt'
> --- lib/lp/registry/stories/foaf/xx-person-packages.txt 2009-08-13 15:12:16 +0000
> +++ lib/lp/registry/stories/foaf/xx-person-packages.txt 2009-09-08 10:49:20 +0000
> @@ -5,18 +5,10 @@
>
> >>> anon_browser.open('http://launchpad.dev/~mark')
> >>> anon_browser.getLink('Related Software').click()
> - >>> print_navigation_links(anon_browser.contents)
> - Profile: ...
> - Related Software
> - Karma: ...
>
> >>> print anon_browser.title
> Software related to Mark Shuttleworth
> >>> print anon_browser.url
> http://launchpad.dev/~mark/+related-software
>
> -That page displays a table, the with list of 'Maintained'packages as
> -well as the list of 'Uploaded' packages. The table also shows the
> -number of open bugs and questions filed against each package.
Spotting typos in deleted code probably isn't helpful, is it? :)
> Please see pagetests/soyuz/xx-person-packages.txt for details.
I'm a bit bothered by the way the horizontal links hop around and are
inconsistently ordered as you page through them. If you used the
following code (moved to a macro) for all pages then the link display
would be fixed in the same order and the active page would have a
disabled link, which is the way +global-action menus work.
Hi Julian,
Thanks for the nice fixes on this branch.
I have one big suggestion for the way the links are put on the page.
Other than that the branch looks good.
> === modified file 'lib/canonical/ launchpad/ pagetitles. py' launchpad/ pagetitles. py 2009-09-05 07:03:47 +0000 launchpad/ pagetitles. py 2009-09-07 20:32:50 +0000 ame(smartquote( "%s's karma in Launchpad")) maintained_ packages = ContextDisplayN ame('Software maintained by %s') mentoringoffers = ContextTitle( 'Mentoring offered by %s') mergeproposals( context, view): participation = ContextTitle("Team participation by %s") ppa_packages = ContextDisplayN ame('PPA packages related to %s') related_ projects = ContextDisplayN ame('Projects related to %s') related_ software = ContextDisplayN ame('Software related to %s') ame("Review %s") ame('Feature feedback requests for %s') teamhierarchy = ContextDisplayN ame('Team hierarchy for %s') uploaded_ packages = ContextDisplayN ame('Software uploaded by %s') tionsTitle( 'Translations by %(person)s in "%(title)s"'))
--- lib/canonical/
> +++ lib/canonical/
> @@ -747,8 +747,6 @@
>
> person_karma = ContextDisplayN
>
> -person_
> -
> person_
>
> def person_
> @@ -765,12 +763,6 @@
>
> person_
>
> -person_
> -
> -person_
> -
> -person_
> -
> person_review = ContextDisplayN
>
> person_specfeedback = ContextDisplayN
> @@ -786,8 +778,6 @@
>
> person_
>
> -person_
> -
> pofile_filter = FilteredTransla
> smartquote(
>
> === modified file 'lib/lp/ registry/ browser/ person. py' registry/ browser/ person. py 2009-09-05 03:33:24 +0000 registry/ browser/ person. py 2009-09-07 20:32:50 +0000 to_display = config. launchpad. default_ batch_size
> --- lib/lp/
> +++ lib/lp/
> @@ -4834,6 +4834,10 @@
>
> max_results_
>
> + @property
> + def page_title(self):
> + return "Software related to " + self.context.title
Minor since they are synonyms but I'd use displayname here as it is
more familiar for a person. Will apply to all.
> @cachedproperty projects( self): registry/ stories/ foaf/xx- person- packages. txt' registry/ stories/ foaf/xx- person- packages. txt 2009-08-13 15:12:16 +0000 registry/ stories/ foaf/xx- person- packages. txt 2009-09-08 10:49:20 +0000 launchpad. dev/~mark') getLink( 'Related Software').click() n_links( anon_browser. contents) launchpad. dev/~mark/ +related- software packages as
> def related_
> """Return a list of project dicts owned or driven by this person.
> === modified file 'lib/lp/
> --- lib/lp/
> +++ lib/lp/
> @@ -5,18 +5,10 @@
>
> >>> anon_browser.open('http://
> >>> anon_browser.
> - >>> print_navigatio
> - Profile: ...
> - Related Software
> - Karma: ...
>
> >>> print anon_browser.title
> Software related to Mark Shuttleworth
> >>> print anon_browser.url
> http://
>
> -That page displays a table, the with list of 'Maintained'
> -well as the list of 'Uploaded' packages. The table also shows the
> -number of open bugs and questions filed against each package.
Spotting typos in deleted code probably isn't helpful, is it? :)
> Please see pagetests/ soyuz/xx- person- packages. txt for details.
> === modified file 'lib/lp/ registry/ templates/ person- related- projects. pt' registry/ templates/ person- related- projects. pt 2009-07-17 17:59:07 +0000 registry/ templates/ person- related- projects. pt 2009-09-08 11:49:02 +0000 xml.zope. org/namespaces/ tal" xml.zope. org/namespaces/ metal" xml.zope. org/namespaces/ i18n" macro=" view/macro: page/onecolumn" macro=" view/macro: page/main_ only" "launchpad" slot="heading" > "view/page_ title"/ > slot="main" > "structure view/menu: navigation/ summary/ render" /></li> "structure view/menu: navigation/ maintained/ render" /></li> "structure view/menu: navigation/ uploaded/ render" /></li> "structure view/menu: navigation/ ppa/render" /></li>
> --- lib/lp/
> +++ lib/lp/
> @@ -3,20 +3,33 @@
> xmlns:tal="http://
> xmlns:metal="http://
> xmlns:i18n="http://
> - xml:lang="en"
> - lang="en"
> - dir="ltr"
> - metal:use-
> + metal:use-
> i18n:domain=
> >
>
> <body>
>
> +<div metal:fill-
> + <h1 tal:content=
> +</div>
> +
> <div metal:fill-
> -
> - <div id="projects">
> + <div class="top-portlet" id="navlinks">
> + <ul class="horizontal">
> + <li>
> + <a tal:replace=
> + <li>
> + <a tal:replace=
> + <li>
> + <a tal:replace=
> + <li>
> + <a tal:replace=
> + </ul>
> + </div>
I'm a bit bothered by the way the horizontal links hop around and are
inconsistently ordered as you page through them. If you used the
following code (moved to a macro) for all pages then the link display
would be fixed in the same order and the active page would have a
disabled link, which is the way +global-action menus work.
<div class="top-portlet" id="navlinks"> "structure view/menu: navigation/ summary/ render" /></li> "structure view/menu: navigation/ maintained/ render" /></li> "structure view/menu: navigation/ uploaded/ render" /></li> "structure view/menu: navigation/ ppa/render" /></li> "structure view/menu: navigation/ projects/ render" /></li>
<ul class="horizontal">
<li>
<a tal:replace=
<li>
<a tal:replace=
<li>
<a tal:replace=
<li>
<a tal:replace=
<li>
<a tal:replace=
</ul>
</div>
> + top-portlet" > @@+navigation- links-upper" />
> + <div id="projects" class="
> <a name="projects" />
> - <h1>Related projects</h1>
>
> <tal:navigation_top
> replace="structure view/batchnav/