Reorganize

This commit is contained in:
Vincent Jacques
2012-02-25 08:16:39 +00:00
parent 5e1fd2e946
commit c5135ff2fc
3 changed files with 24 additions and 24 deletions
+1 -11
View File
@@ -3,21 +3,11 @@ import itertools
import ObjectCapacities.ArgumentsChecker as ArgumentsChecker
from ObjectCapacities.Basic import AttributeFromCallable, MethodFromCallable
from ObjectCapacities.List import ListAttribute, ListGetable, ElementCreatable, ElementGetable, ElementAddable, ElementRemovable, ElementHasable, ListAddable, ListSetable, ListDeletable
from TypePolicies import SimpleTypePolicy, ObjectTypePolicy
class BadGithubObjectException( Exception ):
pass
class SimpleTypePolicy:
def create( self, obj, rawValue ):
return rawValue
class ObjectTypePolicy:
def __init__( self, type ):
self.__type = type
def create( self, obj, rawValue ):
return self.__type( obj._github, rawValue, lazy = True )
class InternalAttribute:
class AttributeDefinition:
def __init__( self, typePolicy ):