def init_terminals(cls):
     cls.TRAVERSALS= {
                         'email':            lazy_traversal('user.email', default_value=''),
                         'firstName':        lazy_traversal('user.firstName', default_value=False),
                     }
     
     cls.TERMINALS = {
                         'user':             inbound_node(   User,      'contactInfo', render=False),
                     }
Esempio n. 2
0
    def init_terminals(cls):
        cls.TRAVERSALS = {
            'email': lazy_traversal('user.email', default_value=''),
            'firstName': lazy_traversal('user.firstName', default_value=False),
        }

        cls.TERMINALS = {
            'user': inbound_node(User, 'contactInfo', render=False),
        }
 def init_terminals(cls):
     cls.TRAVERSALS= {
                         'email':            lazy_traversal('emails.email', default_value=''),
                         'hasContactInfo':   lazy_traversal('contactInfo.exists', default_value=False),
                     }
     
     cls.TERMINALS = {
                         'emails':           inbound_list(   EmailAddress,      'user', render=False),
                         'contactInfo':      outbound_node(  ContactInfo),
                     }
Esempio n. 4
0
    def init_terminals(cls):
        cls.TRAVERSALS = {
            'email':
            lazy_traversal('emails.email', default_value=''),
            'hasContactInfo':
            lazy_traversal('contactInfo.exists', default_value=False),
        }

        cls.TERMINALS = {
            'emails': inbound_list(EmailAddress, 'user', render=False),
            'contactInfo': outbound_node(ContactInfo),
        }