[PEAK] peak.model and mappings?

Bob Ippolito bob at redivi.com
Sun Feb 22 20:35:50 EST 2004


How are you supposed to define a mapping with peak.model?  I'm looking 
for something that would be used like this, in theory:

from peak.api import *

class MyElement(model.Element):

     class elementToStringMapping(model.Mapping):
         referencedKeyType = 'MyElement'
         referencedType = model.String




More information about the PEAK mailing list