~ubuntu-branches/ubuntu/utopic/python-apptools/utopic

« back to all changes in this revision

Viewing changes to apptools/naming/context_adapter.py

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2011-07-08 23:55:50 UTC
  • mfrom: (2.1.9 sid)
  • Revision ID: james.westby@ubuntu.com-20110708235550-yz5u79ubeo4dhyfx
Tags: 4.0.0-1
* New upstream release
* Update debian/watch file

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#------------------------------------------------------------------------------
 
2
# Copyright (c) 2005, Enthought, Inc.
 
3
# All rights reserved.
 
4
#
 
5
# This software is provided without warranty under the terms of the BSD
 
6
# license included in enthought/LICENSE.txt and may be redistributed only
 
7
# under the conditions described in the aforementioned license.  The license
 
8
# is also available online at http://www.enthought.com/licenses/BSD.txt
 
9
# Thanks for using Enthought open source!
 
10
#
 
11
# Author: Enthought, Inc.
 
12
# Description: <Enthought naming package component>
 
13
#------------------------------------------------------------------------------
 
14
""" The base class for all context adapters. """
 
15
 
 
16
 
 
17
# Enthought library imports.
 
18
from traits.api import Any, Dict, Instance, Property, Str
 
19
 
 
20
# Local imports.
 
21
from context import Context
 
22
 
 
23
 
 
24
class ContextAdapter(Context):
 
25
    """ The base class for all context adapters. """
 
26
 
 
27
    #### 'ContextAdapter' interface ###########################################
 
28
 
 
29
    # The object that we are adapting.
 
30
    adaptee = Any
 
31
 
 
32
    # The context that the object is in.
 
33
    context = Instance(Context)
 
34
 
 
35
#### EOF ######################################################################