Fix testEvents

This commit is contained in:
Vincent Jacques
2012-05-05 19:20:27 +02:00
parent c3dd5cd2f1
commit dd0c6e63f4
36 changed files with 721 additions and 461 deletions
+4 -4
View File
@@ -83,11 +83,11 @@ class UserKey( object ):
def __useAttributes( self, attributes ):
#@todo No need to check if attribute is in attributes when attribute is mandatory
if "id" in attributes:
if "id" in attributes and attributes[ "id" ] is not None:
self.__id = attributes[ "id" ]
if "key" in attributes:
if "key" in attributes and attributes[ "key" ] is not None:
self.__key = attributes[ "key" ]
if "title" in attributes:
if "title" in attributes and attributes[ "title" ] is not None:
self.__title = attributes[ "title" ]
if "url" in attributes:
if "url" in attributes and attributes[ "url" ] is not None:
self.__url = attributes[ "url" ]