AttributeStorageAdapter

Joachim Schmitz <[email protected]>
Newsgroups gmane.comp.web.zope.cps.devel
Message-ID <[email protected]>
the _getContentUrl() of CPSSchemas.AttributeStorageAdapter is defined as:
def _getContentUrl(self, object, field_id, file_name):
     return '%s/downloadFile/%s/%s' % (
             object.absolute_url(), field_id, file_name)

this does not generate an valid url for display.

the following patch works for me:

def _getContentUrl(self, object, field_id, file_name):
     return '%s/%s' % (
         object.aq_parent.absolute_url(), field_id)


-- 
Mit freundlichen Grüßen                                Joachim Schmitz
......................................................................
AixtraWare eK ..Joachim Schmitz ..www.aixtraware.de ..t: +49-2464-8851
Hüsgenstr. 33a .....d-52457 Aldenhoven .............f: +49-2464-905163


_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.