| 1 |
# standard python libs |
|---|
| 2 |
from logging import getLogger, CRITICAL, ERROR, WARNING, INFO, DEBUG |
|---|
| 3 |
import uuid |
|---|
| 4 |
|
|---|
| 5 |
#related |
|---|
| 6 |
from eventlet import api |
|---|
| 7 |
|
|---|
| 8 |
# pyogp |
|---|
| 9 |
from pyogp.lib.base.datamanager import DataManager |
|---|
| 10 |
# pyogp messaging |
|---|
| 11 |
from pyogp.lib.base.message.message_handler import MessageHandler |
|---|
| 12 |
from pyogp.lib.base.message.packets import * |
|---|
| 13 |
from pyogp.lib.base.utilities.helpers import Helpers |
|---|
| 14 |
from pyogp.lib.base.exc import NotImplemented |
|---|
| 15 |
from pyogp.lib.base.objects import Object |
|---|
| 16 |
from pyogp.lib.base.datatypes import * |
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
# initialize logging |
|---|
| 20 |
logger = getLogger('pyogp.lib.base.assets') |
|---|
| 21 |
log = logger.log |
|---|
| 22 |
|
|---|
| 23 |
class AssetManager(DataManager): |
|---|
| 24 |
"""The AssetManager class handles the assets of an Agent() instance |
|---|
| 25 |
|
|---|
| 26 |
Sample implementations: |
|---|
| 27 |
Tests: |
|---|
| 28 |
""" |
|---|
| 29 |
|
|---|
| 30 |
def __init__(self, settings = None, agent = None): |
|---|
| 31 |
super(AssetManager, self).init(settings, agent) |
|---|
| 32 |
|
|---|
| 33 |
def enable_callbacks(self): |
|---|
| 34 |
raise NotImplemented("enable_callbacks") |
|---|
| 35 |
|
|---|
| 36 |
def request_asset(self, assetID, assetType, isPriority): |
|---|
| 37 |
raise NotImplemented("request_asset") |
|---|
| 38 |
|
|---|
| 39 |
def onTransferInfo(self, packet): |
|---|
| 40 |
raise NotImplemented("onTranferInfo") |
|---|
| 41 |
|
|---|
| 42 |
def onTransferPacket(self, packet): |
|---|
| 43 |
raise NotImplemented("onTransferPacket") |
|---|
| 44 |
|
|---|
| 45 |
""" |
|---|
| 46 |
Contributors can be viewed at: |
|---|
| 47 |
http://svn.secondlife.com/svn/linden/projects/2008/pyogp/CONTRIBUTORS.txt |
|---|
| 48 |
|
|---|
| 49 |
$LicenseInfo:firstyear=2008&license=apachev2$ |
|---|
| 50 |
|
|---|
| 51 |
Copyright 2009, Linden Research, Inc. |
|---|
| 52 |
|
|---|
| 53 |
Licensed under the Apache License, Version 2.0 (the "License"). |
|---|
| 54 |
You may obtain a copy of the License at: |
|---|
| 55 |
http://www.apache.org/licenses/LICENSE-2.0 |
|---|
| 56 |
or in |
|---|
| 57 |
http://svn.secondlife.com/svn/linden/projects/2008/pyogp/LICENSE.txt |
|---|
| 58 |
|
|---|
| 59 |
$/LicenseInfo$ |
|---|
| 60 |
""" |
|---|
| 61 |
|
|---|