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),
                     }
예제 #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')
                         }
예제 #5
0
 def init_terminals(cls):
     cls.TERMINALS = {
                         'users':        inbound_list(User, 'activities'),
                         'relatedAbilities':      outbound_list(Activity),
                     }
예제 #6
0
 def init_terminals(cls):
     cls.TERMINALS = {"users": inbound_list(User, "activities"), "relatedAbilities": outbound_list(Activity)}
예제 #7
0
 def init_terminals(cls):
     cls.TERMINALS = {
         'users': inbound_list(User, 'activities'),
         'relatedAbilities': outbound_list(Activity),
     }