Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/base.py
diff options
context:
space:
mode:
authorflavio <fdanesse@gmail.com>2012-04-25 14:18:29 (GMT)
committer flavio <fdanesse@gmail.com>2012-04-25 14:18:29 (GMT)
commit40c72c67b36bd80a4dd936a8bc889526dd62b2af (patch)
tree1382e02285863833dce1eb916b57377107d24d68 /base.py
parentef0afced91216be8953a7ee05516c4d1f729d82f (diff)
Correcciones y Agrego Eliminar Registro
Diffstat (limited to 'base.py')
-rw-r--r--base.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/base.py b/base.py
index 58930f9..0638617 100644
--- a/base.py
+++ b/base.py
@@ -41,6 +41,32 @@ d['type'] = "Prueba tipo1"
d['fav'] = 1
d.close()
+filename = os.path.join('/tmp', 'notify_2')
+d = shelve.open(filename)
+d['id'] = 2
+d['title'] = "Nueva Imagen Para tu xo"
+d['text'] = '''Está disponible la nueva imagen para tu XO!
+Para tenerla entrar al sitio www.ceibal.edu.uy'''
+d['priority'] = 0
+d['launched'] = datetime.date(1972, 6, 21)
+d['expires'] = datetime.date(2013, 6, 21)
+d['type'] = "Actualización"
+d['fav'] = 1
+d.close()
+
+filename = os.path.join('/tmp', 'notify_3')
+d = shelve.open(filename)
+d['id'] = 3
+d['title'] = "Actividades"
+d['text'] = '''En setiembre se viene la Liga de Primavera de Cazaproblemas.
+En breve podrás inscribirte y participar por grandes premios'''
+d['priority'] = 3
+d['launched'] = datetime.date(1972, 6, 21)
+d['expires'] = datetime.date(2013, 6, 21)
+d['type'] = "Actividades"
+d['fav'] = 0
+d.close()
+
store = Store(xmlpath='/tmp', db_filename="prueba.db")
mensaje = store.db.get_messages([])
print mensaje