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.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') }
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)}