Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Hermes
Summary Lists News SCM
authorFredrik Wendt <fredrik@wendt.se>
Wed, 9 Jun 2010 20:09:35 +0000 (21:09 +0100)
committerFredrik Wendt <fredrik@wendt.se>
Wed, 9 Jun 2010 20:09:35 +0000 (21:09 +0100)
Signed-off-by: Fredrik Wendt <fredrik@wendt.se>

package/src/org/maemo/hermes/engine/friend.py

index 2ca6b5d..74f96da 100644 (file)
@@ -5,12 +5,14 @@ class Friend():
        Released under the Artistic Licence."""
 
     
-    def __init__(self, name=None, source=None):
+    def __init__(self, name=None, props=None):
         """ source is source service, such as LinkedIn """
         self._attributes = {};
         if name: self._set('fn', name)
         self._multi_attributes = {}
-        self._source = source 
+        if props:
+            for key in props:
+                self._set(key, props[key])
         
     def __getitem__(self, key):
         return self._safe_get(key)

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment