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),
                     }
Example #2
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),
        }
 def init_terminals(cls):
     cls.TERMINALS =    {
                             'parent':outbound_node(TreeNode),
                             'children':inbound_list(TreeNode, 'parent'),
                         }
 def init_terminals(cls):
     cls.TERMINALS =    {
                             'parent': inbound_node(ParentNode, 'sub_node'),
                             'parents': inbound_list(ParentNode, 'sub_node_list')
                         }
Example #5
0
 def init_terminals(cls):
     cls.TERMINALS = {
                         'users':        inbound_list(User, 'activities'),
                         'relatedAbilities':      outbound_list(Activity),
                     }
 def init_terminals(cls):
     cls.TERMINALS = {"users": inbound_list(User, "activities"), "relatedAbilities": outbound_list(Activity)}
Example #7
0
 def init_terminals(cls):
     cls.TERMINALS = {
         'users': inbound_list(User, 'activities'),
         'relatedAbilities': outbound_list(Activity),
     }