[kupu-dev] adding /view to file urls
Tim Terlegård
tim.terlegard at valentinewebsystems.se
Thu Aug 21 15:57:09 CEST 2008
In Plone I'd like kupu to add /view to file object urls. The only way
I've found
to implement this is to monkey patch the convert method in
html2captioned.py.
Is there any simpler way?
I guess I could also monkey patch InfoAdaptor class in plonedrawers.py
and change this to conditionally append '/view':
if UID and self.linkbyuid:
url = self.base+'/resolveuid/%s' % UID
Perhaps we could change this line so anyone can have their own behaviour
without monkey patching?
/Tim
More information about the kupu-dev
mailing list