Reorganize

This commit is contained in:
Vincent Jacques
2012-02-25 09:15:10 +00:00
parent 82bf3a278f
commit b9b1defb8b
2 changed files with 1 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
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 )