== Proposed fix ==
Remove "name" field from PoTemplate edit page.
In the PoTemplateSubset URL traversal code, check permissions for the POTemplate and not for the context.
== Pre-implementation notes ==
Danilo asked to remove the "name" field from the edit page since it is to fragile to be edited by project owners.
Henning suggest that permission checking for POTemplateSubset URL traversal can be done for POTemplate and in this way we can remove the EditPOTemplateSubSet from security.py
== Implementation details ==
Nothing special here.
= Bug #340662 and #507498= /code.edge. launchpad. net/~adiroiban/ launchpad/ bug-340662/ +merge/ 16629
This branch should fix the issues raised in this MP
https:/
== Proposed fix ==
Remove "name" field from PoTemplate edit page.
In the PoTemplateSubset URL traversal code, check permissions for the POTemplate and not for the context.
== Pre-implementation notes ==
Danilo asked to remove the "name" field from the edit page since it is to fragile to be edited by project owners.
Henning suggest that permission checking for POTemplateSubset URL traversal can be done for POTemplate and in this way we can remove the EditPOTemplateS ubSet from security.py
== Implementation details ==
Nothing special here.
== Tests ==
lp-test -t templates
== Demo and Q/A == /translations. launchpad. dev/evolution/ trunk/+ pots/evolution- 2.2/
As a product owner (ex. <email address hidden>) for a project (ex. evolution) go to a template page for that project
https:/
You should see the „Change details” that links to the +edit page
From this page you should be able to change template name, domain name, path, details, priority, owner and „accept translation”.
Change some values and then save them.
From the series +template page you will see „Edit” links for each template, including disabled templates: /translations. launchpad. dev/evolution/ trunk/+ templates
https:/
Disabling a template, it should still be in the list (with a red background) and you can still edit it.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: /launchpad/ security. py translations/ configure. zcml translations/ browser/ potemplate. py translations/ stories/ standalone/ xx-potemplate- edit.txt
lib/canonical
lib/lp/
lib/lp/
lib/lp/