[Grok-dev] Re: thoughts while writing a tutorial
Tres Seaver
tseaver at palladion.com
Mon Aug 20 10:19:45 EDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Kevin Teague wrote:
>> So now I am busy writing a simple first tutorial on navigation to
>> objects that are not persistent in the ZopeDB, but which are created
>> on-demand when the user tries to look at them.
>>
>> Some questions have come up that I need guidance on.
>>
>> - What should I call this sort of object? Several names suggest
>> themselves, but I want to use just one main one through the
>> tutorial:
>>
>> "On-demand objects"?
>> "Dynamic objects"?
>> "Non-persistent objects"?
>> "Non-ZopeDB objects"?
>> "Ephemeral objects"?
>> "Transient objects"?
>>
>
> They are called Model objects. Any object which provides methods and
> attributes to your Views are Model objects, regardless of whether the
> objects were persisted through the ZODB, persisted in a relational
> database, or parsed on-demand from a text file you fetched using gopher.
>
> In Martijn's Grok Tutorial in the "A view for a model" section he
> discusses a non-ZODB Model object which has a single method returning
> static data. I would re-read that section of the tutorial for further
> guidance :)
The original question was how to distinguish ZODB-backed models from
others created on-the-fly during traversal. "Non-persistent model
objects" might be most precise here.
Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tseaver at palladion.com
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGyaMB+gerLs4ltQ4RAvtPAJsGBi64yaTXRUAI/JtxkiEmy+NZkACfRyIN
LTBqRKg5y/hAGWulKKxSb0o=
=IY5F
-----END PGP SIGNATURE-----
More information about the Grok-dev
mailing list