Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Hermes
Summary Lists News SCM
authorFredrik Wendt <fredrik@wendt.se>
Tue, 8 Jun 2010 20:11:54 +0000 (21:11 +0100)
committerFredrik Wendt <fredrik@wendt.se>
Tue, 8 Jun 2010 20:11:54 +0000 (21:11 +0100)
package/src/org/maemo/hermes/engine/friend.py

index 954f4f5..9a2c950 100644 (file)
@@ -5,9 +5,10 @@ class Friend():
        Released under the Artistic Licence."""
 
     
-    def __init__(self, name, source=None):
+    def __init__(self, name=None, source=None):
         """ source is source service, such as LinkedIn """
-        self._attributes = { "fn": name }
+        self._attributes = {};
+        if name: self._set('fn', name)
         self._multi_attributes = {}
         self._source = source 
         

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment