Files
Hippolyzer/pyogp/lib/base/datamanager.py
2009-09-01 16:34:23 +00:00

40 lines
1.0 KiB
Python

"""
Contributors can be viewed at:
http://svn.secondlife.com/svn/linden/projects/2008/pyogp/lib/base/trunk/CONTRIBUTORS.txt
$LicenseInfo:firstyear=2008&license=apachev2$
Copyright 2009, Linden Research, Inc.
Licensed under the Apache License, Version 2.0.
You may obtain a copy of the License at:
http://www.apache.org/licenses/LICENSE-2.0
or in
http://svn.secondlife.com/svn/linden/projects/2008/pyogp/lib/base/LICENSE.txt
$/LicenseInfo$
"""
# utilities
from pyogp.lib.base.exc import NotImplemented
class DataManager(object):
def __init__(self, agent, settings):
# allow the settings to be passed in
# otherwise, grab the defaults
if settings != None:
self.settings = settings
else:
from pyogp.lib.base.settings import Settings
self.settings = Settings()
self.agent = agent
def enable_callbacks(self):
"""
Implementing class would instantiate its message handlers here
"""
raise NotImplemented("enable_callbacks")