Do simplify link to file the download by just appending the @@download to
the URL, this is enough if current context has a primary field.
Take ACTUAL_URL stored in the REQUEST into account in the getLink caching
cachekey to manage the fact that the URL to the element changed. This can
be the case when accessing element thru different domains or if a parent
of the element was renamed.
Do not break in PrettyLinkAdapter.getLink_cachekey if context does not have
Added caching for PrettyLinkAdapter.getLink, the cachekey returns context,
modified, is_locked, review_state and every parameters defined in
Moved link computation from PrettyLinkAdapter.getLink that is now a cached
method to PrettyLinkAdapter._getLink so it is possible to call it directly
without caching or to override it.
Finalized testing configuration to be able to test the getLink caching.
Added submethod _get_url that does the url computation.
Additionally it manages the fact that context is a Dexterity file and
append relevant part to the url (/@@download/…).
Do not break if icon name contains special characters.
Added CSS class ‘no_access’ to <span> “can_not_access_this_element”
in addition to class ‘discreet’ so it may be customized if necessary.
Initialize the ‘title’ attribute with contentValue, this way if a
content is cropped to be displayed (maxLength=…), the complete content
is displayed on hover.
Make sure quotes used in title are not breaking formatted strings,
we escape it by replacing quotes by it’s HTML entity '
If ‘isViewable’ is True (default), check that current user have
‘View’ on the linked element, if it is forced to False, leave it False.
This way, ‘View’ check to linked element is managed by imio.prettylink.
When using ‘showColors’, do not fail if element has no workflow.
Makes ‘showContentIcon’ work, fixed several bugs.