Could anyone tell me how to implement a very single download counter? I mean the followings: Assume you have a folder named media with subfolders such as audio, video, pic. All subfolderes might have another subfolders, e.g. mp3, wav, ra for audio etc. All folder might have files, not just the lowest one. The tricky thing I cannot figure out is how to write a script able to maintain download counts. What I've tried is that I've made the following change to my ZCatalog's search result page: <dtml-in aCatalogue> <a href="fileDownload('<dtml-var sequence-item>')">title_or_id</a><br> </dtml-in> where fileDownload would be a Python script doing the stuff by checking the file's properties. If the file in question has a dwc attribute, it increases its value by one, if does not have, it creates the dwc property and sets its value to 1. The problem is that I cannot reach the object passed to the script. The question is, how to access that passed File object from Python. Can anyone help me?