Exemple #1
0
 def __init__(self, identity, service,
              accepted = False, rejected = False, waiting = False,
              sent = False, received = False,
              targets = False, friends = False):
     
     UserResourceBase.__init__(self, identity, service)
     self.invitationService = IInvitationService(service)
     self.accepted = accepted
     self.rejected = rejected
     self.waiting = waiting
     self.sent = sent
     self.received = received
     self.targets = targets
     self.friends = friends
     
     if(not self.accepted and not self.rejected and not self.waiting):
         self.putChild("accepted", InvitationsResource(identity, service, True, False, False, sent, received, targets, friends))
         self.putChild("rejected", InvitationsResource(identity, service, False, True, False, sent, received, targets, friends))
         self.putChild("waiting", InvitationsResource(identity, service, False, False, True, sent, received, targets, friends))
         
     if(not self.sent and not self.received):
         self.putChild("sent", InvitationsResource(identity, service, accepted, rejected, waiting, True, False, targets, friends))
         self.putChild("received", InvitationsResource(identity, service, accepted, rejected, waiting, False, True, targets, friends))
         
     if(not self.targets and not self.friends):
         self.putChild("targets", InvitationsResource(identity, service, accepted, rejected, waiting, sent, received, True, False))
         self.putChild("friends", InvitationsResource(identity, service, accepted, rejected, waiting, sent, received, False, True))
Exemple #2
0
 def __init__(self, identity, service):
     UserResourceBase.__init__(self, identity, service)
     self.putChild("profile", UserProfileResource(identity, service))
     self.putChild("messages", MessagesResource(identity, service))
     self.putChild("gomees", GomeesResource(identity, service))
     self.putChild("friends", FriendsResource(identity, service))
     self.putChild("targets", TargetsResource(identity, service))
     self.putChild("invitations", InvitationsResource(identity, service))
Exemple #3
0
 def __init__(self, identity, msgIdentity, service):
     UserResourceBase.__init__(self, identity, service)
     self.messageService = IMessageService(service)
     self.msgIdentity = msgIdentity
Exemple #4
0
 def __init__(self, identity, service):
     UserResourceBase.__init__(self, identity, service)
     self.messageService = IMessageService(service)
     self.putChild("sent", MessagesSentResource(identity, service))
     self.putChild("received", MessagesReceivedResource(identity, service))
Exemple #5
0
 def __init__(self, identity, gomeeIdentity, service):
     UserResourceBase.__init__(self, identity, service)
     self.gomeeService = IGomeeService(service)
     self.gomeeIdentity = gomeeIdentity
Exemple #6
0
 def __init__(self, identity, service):
     UserResourceBase.__init__(self, identity, service)
     self.profileService = IUserProfileService(service)
     self.gomeeService = IGomeeService(service)
Exemple #7
0
 def __init__(self, identity, service):
     UserResourceBase.__init__(self, identity, service)
     self.friendService = IFriendService(service)
Exemple #8
0
 def __init__(self, identity, targetIdentity, service):
     UserResourceBase.__init__(self, identity, service)
     self.targetService = ITargetService(service)
     self.targetIdentity = targetIdentity
Exemple #9
0
 def __init__(self, identity, service):
     UserResourceBase.__init__(self, identity, service)
     self.targetService = ITargetService(service)
     self.gomeeService = IGomeeService(service)
Exemple #10
0
 def __init__(self, identity, invitationIdentity, service):
     UserResourceBase.__init__(self, identity, service)
     self.invitationService = IInvitationService(service)
     self.invitationIdentity = invitationIdentity
     self.putChild("accept", InvitationAcceptResource(self.identity, self.invitationIdentity, self.service))
     self.putChild("reject", InvitationRejectResource(self.identity, self.invitationIdentity, self.service))