copy of NotLoaded and NotAvailable returns the same object

This commit is contained in:
Romain Bignon 2014-03-19 09:15:38 +01:00
commit 892b3634a3

View file

@ -91,6 +91,12 @@ class NotAvailableType(object):
def __str__(self):
return unicode(self).decode('utf-8')
def __copy__(self):
return self
def __deepcopy__(self, memo):
return self
def __unicode__(self):
return u'Not available'
@ -111,6 +117,12 @@ class NotLoadedType(object):
def __str__(self):
return unicode(self).decode('utf-8')
def __copy__(self):
return self
def __deepcopy__(self, memo):
return self
def __unicode__(self):
return u'Not loaded'