[Product-Developers] How to add permissions and create Zope SQL
lists at zopyx.com
Wed May 13 17:16:04 UTC 2009
On 13.05.09 19:10, cvielma wrote:
> Hi people!
> Well i think my problem it's very stupid, but i have been more than a week
> in it :S
> I want to make a very specialized product, that creates a form view where
> the user put some search criteria and then another view that show the
> results of a table in a relational database that match the criteria. It's
> pretty simple.
> So far, i went through the ZMI and created a database connection (MySQL),
> and the ZSQL Method corresponding to the query. Also, i created the
> standalone views in the product.
> But i'm really stuck in creating a Zope Database Connection and ZSQL Method.
> I followed this:
> http://plone.org/documentation/how-to/add-file-system-zsql-method and
> Of course, also checked:
> Also, i can't create a custom permission to the views (i want that only some
> role or group of users to view the form and query results). I have donde
You want to redefine the permissions needed to execute ZSQL methods or
that? That does not make much sense to me. If you need something
different, wrap the original
API calls within your own view. setDefaultRoles() can be used to
introduce new permissions.
Zope 2 permissions must be mapped to a Z3-ish permission within a
Look at existing code for examples.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 316 bytes
Desc: not available
More information about the Product-Developers