This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import neo4django | |
from neo4django.db import models | |
class Preceding(models.NodeModel): | |
precedes_events = models.Relationship('Event', rel_type=neo4django.Outgoing.PRECEDES_EVENT, | |
related_name='preceded_by') | |
precedes_conditions = models.Relationship('Condition', rel_type=neo4django.Outgoing.PRECEDES_CONDITION, | |
related_name='preceded_by') | |
class Event(Preceding): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
client.py | |
Based heavily on: | |
- https://github.com/mtah/python-websocket/blob/master/examples/echo.py | |
- http://stackoverflow.com/a/7586302/316044 | |
Created by Drew Harry on 2011-11-28. |