main-template and main-template-macros are obsolete and launchpad still
has code and tests to support them. They should be removed.
== Rules ==
* Remove main-template and main-template-macros from zcml and templates
* Update page macros, remove obsolete behaviour
ADDENDUM
ec2 test discovered pages that were still on 2.0 UI.
* Shipit and signon both use @@+main-template-macros/notifications
Registering that name on base-template-macros will continue support
* OpenIDRPConfig is still using main-template, updated them to 3.0
* forgottenpassword is still using main-template, update it to 3.0
* The timeline is still using main-template-macros, update it to 3.0
== QA ==
* Visit a project
* Verify that the timeline displays
* Visit +rpconfig
* Verify the page displays
* Verify the add and edit pages have cancel buttons
* Visit forgottenpassword, verify the page displays.
* lib/canonical/launchpad/doc/tales-macro.txt
* Removed unsupported features.
* Updated test to use a real page layout.
* lib/canonical/launchpad/doc/zcmldirectives.txt
* Updated test to use a modern example.
== Implementation ==
* lib/canonical/launchpad/pagetitles.py
* Removed the unused page title.
* lib/canonical/launchpad/icing/style.css
* Removed the comment about main template.
* lib/canonical/launchpad/templates/launchpad-forgottenpassword.pt
* Updated page to 3.0
* lib/canonical/launchpad/webapp/login.py
* Moved the page title tot he view.
* lib/canonical/launchpad/webapp/tales.py
* Updated the documentation examples for page layouts.
* Removed master (main-template) and the code that switched between
main and base.
* Removed the old layout configuration.
* lib/canonical/launchpad/zcml/launchpad.zcml
* Unregistered main-template and main-template-macros
* lib/canonical/widgets/location.py
* Updated the comment to reference base-layout.
* lib/lp/app/browser/configure.zcml
* Registered +main-template-macros as a copy of +base-layout-macros
to support signon and shipit
* lib/lp/app/templates/base-layout-macros.pt
* Removed comment about main-template.
Note that when this branch lands, we can start removing style.css
* lib/lp/registry/browser/productrelease.py
* Updated comment to reference base-layout.
* lib/lp/registry/browser/team.py
* Updated comment to reference base-layout
* lib/lp/registry/templates/object-timeline-graph.pt
* Updated template to use base-layout-macros.
* lib/lp/services/openid/browser/configure.zcml
* Registered OpenIDRPConfigSetView to support the page title.
* lib/lp/services/openid/browser/openidrpconfig.py
* Added OpenIDRPConfigSetView to support the page title.
* Moved the page titles into the views
* Added cancel links to the add and edit views.
* lib/lp/services/openid/templates/openidrpconfig-add.pt
* Updated the page macro and removed the redundant heading.
* lib/lp/services/openid/templates/openidrpconfig-edit.pt
* Updated the page macro and removed the redundant heading.
* lib/lp/services/openid/templates/openidrpconfigset-index.pt
* Updated the page macro and removed the redundant heading.
This is my branch to remove main-template and main-template- macros.
lp:~sinzui/launchpad/remove-main-template /bugs.launchpad .net/bugs/ 69726 macro|zcmldirec tives"
then test the whole suite. (/me did) implementation: no one
Diff size: 940 (450 lines are removed files)
Launchpad bug: https:/
Test command: ./bin/test -vvt "tales-
Pre-
Target release: 3.1.11
= Remove main-template and main-template- macros =
main-template and main-template- macros are obsolete and launchpad still
has code and tests to support them. They should be removed.
== Rules ==
* Remove main-template and main-template- macros from zcml and templates
* Update page macros, remove obsolete behaviour
ADDENDUM
ec2 test discovered pages that were still on 2.0 UI.
* Shipit and signon both use @@+main- template- macros/ notifications macros will continue support macros, update it to 3.0
Registering that name on base-template-
* OpenIDRPConfig is still using main-template, updated them to 3.0
* forgottenpassword is still using main-template, update it to 3.0
* The timeline is still using main-template-
== QA ==
* Visit a project
* Verify that the timeline displays
* Visit +rpconfig
* Verify the page displays
* Verify the add and edit pages have cancel buttons
* Visit forgottenpassword, verify the page displays.
== Lint ==
Linting changed files: /launchpad/ pagetitles. py /launchpad/ doc/tales- macro.txt /launchpad/ doc/zcmldirecti ves.txt /launchpad/ icing/style. css /launchpad/ templates/ launchpad- forgottenpasswo rd.pt /launchpad/ webapp/ login.py /launchpad/ webapp/ tales.py /launchpad/ zcml/launchpad. zcml /widgets/ location. py app/browser/ configure. zcml app/templates/ base-layout- macros. pt registry/ browser/ productrelease. py registry/ browser/ team.py registry/ templates/ object- timeline- graph.pt services/ openid/ browser/ configure. zcml services/ openid/ browser/ openidrpconfig. py services/ openid/ templates/ openidrpconfig- add.pt services/ openid/ templates/ openidrpconfig- edit.pt services/ openid/ templates/ openidrpconfigs et-index. pt
lib/canonical
lib/canonical
lib/canonical
lib/canonical
lib/canonical
lib/canonical
lib/canonical
lib/canonical
lib/canonical
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
== Test ==
* lib/canonical/ launchpad/ doc/tales- macro.txt launchpad/ doc/zcmldirecti ves.txt
* Removed unsupported features.
* Updated test to use a real page layout.
* lib/canonical/
* Updated test to use a modern example.
== Implementation ==
* lib/canonical/ launchpad/ pagetitles. py launchpad/ icing/style. css launchpad/ templates/ launchpad- forgottenpasswo rd.pt launchpad/ webapp/ login.py launchpad/ webapp/ tales.py launchpad/ zcml/launchpad. zcml macros widgets/ location. py app/browser/ configure. zcml macros as a copy of +base-layout-macros app/templates/ base-layout- macros. pt registry/ browser/ productrelease. py registry/ browser/ team.py registry/ templates/ object- timeline- graph.pt services/ openid/ browser/ configure. zcml etView to support the page title. services/ openid/ browser/ openidrpconfig. py etView to support the page title. services/ openid/ templates/ openidrpconfig- add.pt services/ openid/ templates/ openidrpconfig- edit.pt services/ openid/ templates/ openidrpconfigs et-index. pt
* Removed the unused page title.
* lib/canonical/
* Removed the comment about main template.
* lib/canonical/
* Updated page to 3.0
* lib/canonical/
* Moved the page title tot he view.
* lib/canonical/
* Updated the documentation examples for page layouts.
* Removed master (main-template) and the code that switched between
main and base.
* Removed the old layout configuration.
* lib/canonical/
* Unregistered main-template and main-template-
* lib/canonical/
* Updated the comment to reference base-layout.
* lib/lp/
* Registered +main-template-
to support signon and shipit
* lib/lp/
* Removed comment about main-template.
Note that when this branch lands, we can start removing style.css
* lib/lp/
* Updated comment to reference base-layout.
* lib/lp/
* Updated comment to reference base-layout
* lib/lp/
* Updated template to use base-layout-macros.
* lib/lp/
* Registered OpenIDRPConfigS
* lib/lp/
* Added OpenIDRPConfigS
* Moved the page titles into the views
* Added cancel links to the add and edit views.
* lib/lp/
* Updated the page macro and removed the redundant heading.
* lib/lp/
* Updated the page macro and removed the redundant heading.
* lib/lp/
* Updated the page macro and removed the redundant heading.