# Path: lanshark/observable.py
# class Observable(object):
#     def __init__(self):
#     def connect(self, event, callback):
#     def disconnect(self, event, callback):
#     def notify(self, event, *args):
# def test():
#     def callback(bar):


import os
import simplejson
from lanshark import observable
    from StringIO import StringIO

class String(Key):
    """Represents a str"""
    keytype = str

class Integer(Key):
    """Represents a int"""
    keytype = int

class Float(float):
    """Represents a float"""

class Boolean(Key):
    """Represents a bool"""
    keytype = bool
    def parse(self, value):
        return (value.lower() != "false")

class Enum(String):
    """Represents an enum"""
    def __init__(self, default, values, doc):
        """Creates new instance. `values` is a tuple of all valid enum
        values"""
        String.__init__(self, default, doc)
        self.values = values

    def parse(self, value):
        retval = String.parse(self, value)
        if retval not in self.values:
            raise ValueError('Invalid enum value %s' % retval)

# Path: lanshark/observable.py
# class Observable(object):
#     def __init__(self):
#     def connect(self, event, callback):
#     def disconnect(self, event, callback):
#     def notify(self, event, *args):
# def test():
#     def callback(bar):


# Path: lanshark/configuration.py
import os
import simplejson
from lanshark import observable
    from StringIO import StringIO


class String(Key):
    """Represents a str"""
    keytype = str

class Integer(Key):
    """Represents a int"""
    keytype = int

class Float(float):
    """Represents a float"""

class Boolean(Key):
    """Represents a bool"""
    keytype = bool
    def parse(self, value):
        return (value.lower() != "false")

class Enum(String):
    """Represents an enum"""
    def __init__(self, default, values, doc):
        """Creates new instance. `values` is a tuple of all valid enum
        values"""
        String.__init__(self, default, doc)
        self.values = values

    def parse(self, value):
        retval = String.parse(self, value)
        if retval not in self.values:
            raise ValueError('Invalid enum value %s' % retval)

        return retval