Personal tools
You are here: Home Feeds All Howtos and Tutorials

All Howtos and Tutorials

All Grok howtos and tutorials.

Checking Permissions
How to check permission in python code
Permissions Tutorial
Zope 3 and Grok come with authorization capabilities out of the box. While a vanilla Zope 3 application protects all content by default and performs authorization checks on the content objects themselves, Grok allows access to everything unless you explicitly restrict it. The authorization checks here are done based on the Views used to access (display/manipulate) the content.
Creating a Form
How to create a simple Form
Profiling Grok - or: what does my application do in the afternoon?
This How-To explains how you can profile your Grok application or Grok/Zope itself. This way you get an idea of the bottlenecks of your application or in other words: where it spends its time.
Introducing Forms
An overview of the Form infrastructure in Grok
Creating custom widgets and overriding widgets globally
How to create new widgets, as well as replace existing widgets with your own custom versions.
Accessing a Form within another View
Forms are a specialization of the grok.View base class. You can use a form programmatically from within another View if required.
Customising individual Form Fields
Learn how to customise individual form fields.
Form Fields extend the information about a Schema Field
Understanding the difference between a form field and a schema field.
Defining Schema Fields
Schema Fields are used to describe the schema of an ordinary Python object.
Working with Forms in Grok
A walkthrough of the basics of automatically generating HTML forms using Grok, as well as a discussion of a few more advanced Form manipulations.
Using multiple schemas with a Form
Demonstrating using multiple schemas within the same form.
Customising the default Form templates
Learn how to tweaking the template used to render a form. Useful for integrating a form into your applications custom layout.
Defining Roles
Permissions can be grouped together in Roles, which makes granting all the permissions for a particular type of user much easier. Defining roles is similar to defining permissions.
Using sources in your forms
This How To explains how one can use the zc.sourcefactory package to fill out lists and choices with dynamic content.
ReStructured Text (ReST) Extensions
Write documentation that makes use of the extended set of text-roles and directives available on this web site.
Authentication with Grok
This document tries to explain how to set up custom authentication against your own database (may be it ZODB, a relational database or LDAP) with Grok. It doesn't go into the details of how to query the database, but shows the bits and pieces you need to integrate with Grok.
Understanding default values for object database backed attributes
Using class attributes as default values in Model objects is a common idiom, understand how this works.
Glossary of Egg Jargon
Terminology used when refering to eggs
Traversing subpaths in views
You've probably already explored the simple use of a traverse() method to return objects based on what is in the URL but what about doing similar magic on views? It's really simple actually.
Document Actions