[Zope-dev] ZPatterns Project Help!

Steve Spicklemire steve@spvi.com
Wed, 22 Nov 2000 08:16:22 -0500 (EST)


Hi Ben,

   GAPs are sort of deprecated at this point in favor
of SkinScript. In SkinScript you might do something like this:


WITH accounts.getItem(self.account_id) COMPUTE account_object=RESULT

or more carefully...

WITH accounts.getItem(self.account_id) COMPUTE account_object=(RESULT is _.None) and NOT_FOUND or RESULT

-steve

>>>>> "bentzion" == bentzion  <bentzion@bellatlantic.net> writes:

    bentzion> Another question...

    bentzion> I want to have a GAP that will add some other Object to
    bentzion> an attribute of my DataSkin. This is what I have tried
    bentzion> with no success.

    bentzion> fromexpr: accounts.getItem(self.account_id) attrsexprs:
    bentzion> account_object=RESULT

    bentzion> This way in my UI Methods in my DataSkin I can access
    bentzion> (and change) the attributes of "account_object".

    bentzion> Q. How can I do this? Should I be doing this in a
    bentzion> different/better way?

    bentzion> Thanks, -Ben