From: <umg...@us...> - 2007-07-22 18:02:39
|
Revision: 489 http://svn.sourceforge.net/pybridge/?rev=489&view=rev Author: umgangee Date: 2007-07-22 11:02:34 -0700 (Sun, 22 Jul 2007) Log Message: ----------- Do not provide server with Referenceable object, as it is unnecessary. Modified Paths: -------------- trunk/pybridge/pybridge/network/client.py Modified: trunk/pybridge/pybridge/network/client.py =================================================================== --- trunk/pybridge/pybridge/network/client.py 2007-07-22 15:52:02 UTC (rev 488) +++ trunk/pybridge/pybridge/network/client.py 2007-07-22 18:02:34 UTC (rev 489) @@ -35,7 +35,7 @@ -class NetworkClient(pb.Referenceable): +class NetworkClient(object): """Provides the glue between the client code and the server.""" implements(ISubject) @@ -145,7 +145,7 @@ hash = sha.new(password).hexdigest() creds = credentials.UsernamePassword(username, hash) - d = self.factory.login(creds, client=self) + d = self.factory.login(creds, client=None) d.addCallback(connectedAsUser) return d @@ -208,5 +208,11 @@ return d + def getUserInformation(self, username): + # TODO: cache user information once retrieved. + d = self.avatar.callRemote('getUserInformation', username) + return d + + client = NetworkClient() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |