Package pytilities :: Package delegation
[hide private]
[frames] | no frames]

Source Code for Package pytilities.delegation

 1  # Copyright (C) 2010 Tim Diels <limyreth@users.sourceforge.net> 
 2  #  
 3  # This file is part of pytilities. 
 4  #  
 5  # pytilities is free software: you can redistribute it and/or modify 
 6  # it under the terms of the GNU General Public License as published by 
 7  # the Free Software Foundation, either version 3 of the License, or 
 8  # (at your option) any later version. 
 9  #  
10  # pytilities is distributed in the hope that it will be useful, 
11  # but WITHOUT ANY WARRANTY; without even the implied warranty of 
12  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
13  # GNU General Public License for more details. 
14  #  
15  # You should have received a copy of the GNU General Public License 
16  # along with pytilities.  If not, see <http://www.gnu.org/licenses/>. 
17  # 
18   
19  """ 
20  Delegation utilities 
21   
22  Classes: 
23   
24      `Delegator` 
25          An AttributeCollection that delegates attributes 
26   
27      `DelegatorFactory` 
28          Allows easy creation of delegators with profiles 
29   
30      `Profile` 
31          A delegation profile, states what to delegate 
32   
33  Decorators: 
34   
35      `delegator_factory` 
36          Installs a `DelegatorFactory` on an `AttributeCollectionBase` 
37   
38      `delegated` 
39          Includes the decorated attribute in the specified delegation profile 
40  """ 
41   
42  __docformat__ = 'reStructuredText' 
43   
44  # place these in our namespace, naughty naughty 
45  from .profile import Profile 
46  from .delegator import Delegator 
47  from .delegatorfactory import DelegatorFactory 
48  from .decorators import delegator_factory, delegated 
49