# Path: django_eventstream/event.py
# class Event(object):
# 	def __init__(self, channel, type, data, id=None):
# 		self.channel = channel
# 		self.type = type
# 		self.data = data
# 		self.id = id


import sys
import json
import datetime
from django.utils import timezone
from django.core.serializers.json import DjangoJSONEncoder
from .event import Event
		from . import models
		from . import models
		from . import models
		from . import models
			return []

		# look up the referenced event first, to avoid a range query when
		#   the referenced event doesn't exist
		try:
			models.Event.objects.get(
				channel=channel,
				eid=last_id)
		except models.Event.DoesNotExist:
			raise EventDoesNotExist(
				'No such event %d' % last_id,
				cur_id)

		# increase limit by 1 since we'll exclude the first result
		db_events = models.Event.objects.filter(
			channel=channel,
			eid__gte=last_id
		).order_by('eid')[:limit + 1]

		# ensure the first result matches the referenced event
		if len(db_events) == 0 or db_events[0].eid != last_id:
			raise EventDoesNotExist(
				'No such event %d' % last_id,
				cur_id)

		# exclude the first result
		db_events = db_events[1:]

		out = []
		for db_event in db_events:

# Path: django_eventstream/event.py
# class Event(object):
# 	def __init__(self, channel, type, data, id=None):
# 		self.channel = channel
# 		self.type = type
# 		self.data = data
# 		self.id = id


# Path: django_eventstream/storage.py
import sys
import json
import datetime
from django.utils import timezone
from django.core.serializers.json import DjangoJSONEncoder
from .event import Event
		from . import models
		from . import models
		from . import models
		from . import models

			return []

		# look up the referenced event first, to avoid a range query when
		#   the referenced event doesn't exist
		try:
			models.Event.objects.get(
				channel=channel,
				eid=last_id)
		except models.Event.DoesNotExist:
			raise EventDoesNotExist(
				'No such event %d' % last_id,
				cur_id)

		# increase limit by 1 since we'll exclude the first result
		db_events = models.Event.objects.filter(
			channel=channel,
			eid__gte=last_id
		).order_by('eid')[:limit + 1]

		# ensure the first result matches the referenced event
		if len(db_events) == 0 or db_events[0].eid != last_id:
			raise EventDoesNotExist(
				'No such event %d' % last_id,
				cur_id)

		# exclude the first result
		db_events = db_events[1:]

		out = []
		for db_event in db_events:

			e = Event(