Re: [Zope-dev] ZPatterns style question

2001-03-21 Thread Steve Spicklemire


Hi Lex,

This is a little bit of a tricky question.  Here is what I think is the 
*intent* of ZPatterns. The details of storage are to be left up to the
implementor/integrator. Given that they are the only ones who really know where
all the goodies are hidden (sql? zodb? etc.. ) your app shouldn't 
assume any particulars here. What your app *can* do is demand that the
objects that are used satisfy a particular interface (e.g., have
certain methods or attributes that behave in particular ways.). With
ZPatterns, what look like attributes can really be methods, due to
the flexible nature of SkinScript. I see in your tutorial that you're
trying to help the integrator by putting SkinScript in for them...
but I think that in ZPatterns, it's probably better to leave that
up to them... or at least to assume ZODB ( something everyone has)
rather than SQL. Does any of that make sense?

take care,
-steve

> "Lex" == Lex Berezhny <[EMAIL PROTECTED]> writes:

Lex> Hello,

Lex>   I dont know if i'm missing something, or if this is just a
Lex> style question. But where do the implimentation specific
Lex> get/set methods go (the functions called within a SkinScript
Lex> for example)? Do i just stick them anywhere in the aquistion
Lex> path, or is there some logical place I should place them? How
Lex> can I write my application so that the user can switch data
Lex> sources with a click of a button (ie, without having to
Lex> delete one implimentations' methods, and paste the new ones)?
Lex> I hope my question makes sense.

Lex> BTW once i figure this out, i'll be able to finish my
Lex> tutorial on ZPatterns:

Lex> http://www.zope.org/Members/eukreign/ZPatternsTutorial

Lex>  - lex

Lex> __ Do You
Lex> Yahoo!?  Get email at your own domain with Yahoo! Mail.
Lex> http://personal.mail.yahoo.com/

Lex> ___ Zope-Dev
Lex> maillist - [EMAIL PROTECTED]
Lex> http://lists.zope.org/mailman/listinfo/zope-dev ** No cross
Lex> posts or HTML encoding!  ** (Related lists -
Lex> http://lists.zope.org/mailman/listinfo/zope-announce
Lex> http://lists.zope.org/mailman/listinfo/zope )


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] ZPatterns style question

2001-03-20 Thread Lex Berezhny

Hello,

  I dont know if i'm missing something, or if this is just a style
question. But where do the implimentation specific get/set methods go
(the functions called within a SkinScript for example)? Do i just
stick them anywhere in the aquistion path, or is there some logical
place I should place them? How can I write my application so that the
user can switch data sources with a click of a button (ie, without
having to delete one implimentations' methods, and paste the new
ones)? I hope my question makes sense.

BTW once i figure this out, i'll be able to finish my tutorial on
ZPatterns:

http://www.zope.org/Members/eukreign/ZPatternsTutorial

 - lex

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )