This repository has been archived on 2021-03-01. You can view files and clone it, but cannot push or open issues or pull requests.
kaneton/test/packages/ktp/bulletin.py
Mercier Pierre-Olivier fee4dd4e6d Initial snapshot
2013-02-11 22:04:30 +01:00

42 lines
873 B
Python

#
# ---------- header -----------------------------------------------------------
#
# project kaneton
#
# license kaneton
#
# file /home/mycure/KANETON-TEST-SYSTEM/packages/ktp/bulletin.py
#
# created julien quintard [mon oct 25 20:23:05 2010]
# updated julien quintard [wed oct 27 13:08:57 2010]
#
#
# ---------- packages ---------------------------------------------------------
#
import yaml
#
# ---------- definitions ------------------------------------------------------
#
Extension = ".blt"
#
# ---------- functions --------------------------------------------------------
#
#
# this function stores a bulletin.
#
def Store(bulletin, path):
yaml.dump(bulletin,
file(path, 'w'))
#
# this function loads a bulletin.
#
def Load(path):
return yaml.load(file(path, 'r'))