From 60f47b04174d016cc86c6e06fdaf0794c3d14216 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Wed, 7 May 2014 22:28:48 +0200 Subject: Git server / generic client and weechat client completed --- bpynotify_orm.py | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 bpynotify_orm.py (limited to 'bpynotify_orm.py') diff --git a/bpynotify_orm.py b/bpynotify_orm.py deleted file mode 100644 index 0540d0a..0000000 --- a/bpynotify_orm.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- - -import datetime - -from sqlalchemy import schema, types -from sqlalchemy.orm import mapper - -metadata = schema.MetaData() - -notification_entry_table = schema.Table('notification_entries', metadata, - schema.Column('id', types.Integer, primary_key=True), - schema.Column('timestamp', types.DateTime), - schema.Column('message', types.Unicode(), default = u'Empty message'), - schema.Column('viewed', types.Boolean, default=False) - ) - - - -class NotificationEntry(object): - - def __init__(self, message): - - self.timestamp = datetime.datetime.now() - self.message = message - - - def __repr__(self): - - return message - - -mapper(NotificationEntry, notification_entry_table) -- cgit v1.3