Bruno Grampa wrote at 2006-1-9 23:39 +0100: >i'm building a site to sell images (this is the concept, the reality is >different...). >All the images are in a directory mapped through LocalFS product. >For every image i have a record in a SQL table with all the basic >informations: author, name of the file, cost. > >What i haven't understood is how to block users from getting images if >they have not enough credit to buy them.
You drastically restrict access to the "LocalFS" content (e.g. by granting the "Access contents information" and "View" permissions only for "Manager") and provide access to it via a Python Script with proxy role "Manager". This script can check any conditions you would like to be fulfilled before it grants access. -- Dieter _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )