[ZPatterns] Current issues with ZPatterns

Roché Compaan [email protected]
Tue, 10 Dec 2002 09:29:47 +0200


Now that the repository is up and running at sourceforge there are two
issues with ZPatterns that needs attention and I don't really have the
answers :-(

Firstly, ZPatterns is not running on Zope 2.6 and this seems to have
something to do with changes in the ZODB. Is anybody familiar enough
with the ZODB to point us in the right direction here or maybe help us
fix it?

Secondly, dataskins sometimes forget about their data managers. In
DataSkins.py around line 210 I often get key errors because '_v_dm_' is
not set.

    if v is _marker:
        v = getattr(self.__class__,'class_default_for_'+name,NOT_FOUND)
        cache[name] = v
        
        dm = self.__dict__[_v_dm_]     <<-------
        self = self._canonicalForm()

Steve Alexander mentioned this in CHANGES.TXT of his TransactionAgents
package:

  The result is that DataSkins forget about their data managers,
  as the data manager didn't think it needed to set it more than
  once per transaction. Actually, it needs to be set on
  subtransactions.

Any ideas?

-- 
Roché Compaan
Upfront Systems                 http://www.upfrontsystems.co.za