def init_terminals(cls):
     cls.TERMINALS =    {
                             'terminals':outbound_node(
                             to_node_class=SubNode,
                             create_on_request=True,
                             )
                         }
 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. 3
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 =    {
                             'sub_node':outbound_node(SubNode,create_on_request=True),
                             'sub_node_list':outbound_list(SubNode),
                         }
 def init_terminals(cls):
     cls.TERMINALS = {
                         'user':             outbound_node(User,create_on_request=True),
                     }
Esempio n. 7
0
 def init_terminals(cls):
     cls.TERMINALS = {
         'user': outbound_node(User, create_on_request=True),
     }