At 03:39 PM 10/27/00 +0200, Joachim Schmitz wrote:
>I trying to understand ZPatterns and using it for a real world example which
>uses a SQL-based storage. 
>can I do it just by defining the appropriate SkinScript Method in my
>defaultrack as data plugin. Do I define everything in one SkinScript Method,
>and what must be the name of that method. Can I delete the Specialist
>Plugins, PersistentSheets and PersistenceAttributes which are created, when
>I add a new rack ?

Yes, you can, and for a pure SQL scenario, you should either remove the
Persistent Attribute Provider, or place your SkinScript method before it in
the pecking order.  If you need to support WebDAV property sheets, you
might want to leave the Persistent Sheet Provider in place.

There is no special name required for your SkinScript, and you can define
as much as you want in a single method.  The only downside to really large
SkinScript methods is that they take longer to compile when you change
them.  There is no run-time performance difference between one large method
and lots of small ones, because they still compile to the same number of
"hidden" plugins: one per statement.

Last, but not least, in an SQL scenario with no persistent data for the
objects, you will want to change the settings on the Rack's Storage tab to
use an attribute to test for object existence.

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to