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

All Howtos and Tutorials

All Grok howtos and tutorials.

Granting Permissions
You can grant permissions to principals with a PermissionManager. For example, if all registered users should have permission to view contact details and to create new contacts, you could grant them the permissions when the user account is created.
Selecting the port and interface where Grok listens
By default, your Grok instance will listen for any incoming TCP connection destined for port 8080 on your machine. Here's how to choose a different port, or to select a particular interface on which it should accept connections.
XML-RPC web services
Implementing XML-RPC web services for your Grok applications is easy.
How to pack your ZODB database
The ZODB grows with each write operation. In order to reduce the size of the data.fs file, you need to perform a "pack" operation.
Background: how grok.View and macros interact
The template attribute and the macro shortcut convention.
A Grok View and a Grok Template
By design, our Model is not capable of interacting directly a web browser. Components that can respond to requests, typically returning HTML, are called View components. Since mixing HTML inside Python can get very messy, a Template component may be associated with a View component.
Navigating To Transient Objects Tutorial
Thanks to the magic of this database, your web apps can create Python objects that are automatically saved to disk and are available every time your application runs. In particular, every grok.Model and grok.Container object you generate can be written safely to your application's Data.fs file. But sometimes you need to create objects that do not persist in the ZODB, wonderful though it is.
Adder: app.py
Main source code for the Adder application.
Macros with Grok
Macros are a way to define a chunk of presentation in one template, and share it in others. Changes to the macro are immediately reflected in all of the places, that share it.
Contribute to the Grok Documentation
Guidelines, policies and help for how you can contribute to the Grok documentation effort.
Introduction to zc.buildout
Jim Fulton's tutorial for using buildout, originally given at DZUG 2007
Use Apache HTTP server with Grok (on Debian Sid)
This Grok How-To gives a step-by-step explanation of how to install and configure Apache HTTP server version 2.2 on Debian Sid to serve Grok Web Applications using the mod_rewrite method.
Grok, Virtual Hosting and Nginx
Configuring the super fast and lightweight Nginx HTTP server to support virtual hosting.
buildout layout and common use cases
Buildout directory structure and simple, common use casese
Excersize 1: zope.event
Perform your first buildout exercise
Buildout steps
Typically actions taken when working with buildout
zope.event example
Example buildout file for working on the zope.event egg
Buildout overview
Define the full system using ConfigParser format extended with a variable-substitution syntax
Working with eggs
Python eggs and how zc.buildout gives you better control over using eggs
What is zc.buildout
zc.buildout is a coarse-grained python-based configuration-driven build tool
Document Actions