#!/usr/bin/env python2.5
from zope.interface import Interface, implements
from axiom import item, attributes, store
from pysqlite2 import dbapi2
from epsilon import extime
import time
import md5
import sys
sys.path.append("..")
from skyliveDaemon.Database.dbschema import HoursTypes

#class IHoursTypes(Interface):
   #""" HoursTypes Interface """

"""
class HoursTypes(item.Item):

   implements(IHoursTypes)
   schemaVersion = 2

   typeName = 'HoursType'

   name = attributes.text(allowNone=False, indexed=True)
   telescopes = attributes.textlist(allowNone=False)
   price = attributes.money(default=100)
   candistribute = attributes.boolean(default=False)
   mounthlimit = attributes.integer(allowNone=True, default=None)
   minpack = attributes.integer(default=1)
   startlimit  = attributes.integer(allowNone=True, default=None)
   stoplimit = attributes.integer(allowNone=True, default=None)
   rechargeperc = attributes.integer(allowNone=False, default=50)
"""

s = store.Store('../AxiomDB')
HoursTypes(store=s, name=unicode('DOPO_MEZZANOTTE'),
                    telescopes=['1','2','3','4','5','6'],
                    price=int(7),
                    candistribute=True,
                    startlimit=0,
                    stoplimit=12,
                    rechargeperc=0)
