Ticket #7482 (closed Bug: fixed)
IDs in Resource Registries are not urlencoded
| Reported by: | pfurman | Owned by: | fschulze |
|---|---|---|---|
| Priority: | minor | Milestone: | 3.1 |
| Component: | Infrastructure | Keywords: | resource registries |
| Cc: |
Description
IDs in Resource Registries ZMI screen (eg. portal_css) are not urlencoded, which makes some problems.
For example Paste Script creates resources with IDs like '++resource++theme.name/main.css'. Such resources cannot be removed through portal_css, because '+' is not urlencoded, and will be replaced with space. Moving up and down works only thanks to javascript action, which prevents calling python function.
Proposal solution is to add one more function to this Resource class - source:/ResourceRegistries/trunk/Products/ResourceRegistries/tools/BaseRegistry.py@16907#L68 - and use it for links in templates instead of getId, eg.:
from urllib import urlencode
def getUrlencodedId(self):
return urlencode({'':self._data['id']})[1:]
Change History
Note: See
TracTickets for help on using
tickets.
