Grok Community Documentation version 1.2

Navigation

  • Tutorial
  • Developer's Notes
  • Reference

Navigating to transient objects¶

Author:Brandon Craig Rhodes

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.

Contents:

  • Introduction
    • Why instantiate objects from external data sources?
  • Choosing a method
  • Our Topic: The Natural Numbers
  • The Natural class implementation
  • Having Your View Directly Instantiate An Object
  • Creating Objects Based on Form Input
  • Custom Traversers
  • Providing Links To Other Objects
  • Writing Your Own Container
Grok Logo

Previous topic

Defining ‘all-purpose’ macros

Next topic

Introduction

This Page

  • Show Source

Quick search

© Copyright 2010-11, The Grok Community. Last updated on May 03, 2017. Created using Sphinx 1.5.3.