Log In
New Account
  
Home My Page Project Cloud Code Snippets Project Openings Hermes
Summary Lists News SCM
index 9a2c950..957819f 100644 (file)
@@ -20,6 +20,9 @@ class Friend():
     
     # public accessors -----------------
     
+    def get_contact(self):
+        return self._attributes['contact']
+    
     def get_name(self):
         return self._attributes['fn']
     
@@ -56,6 +59,9 @@ class Friend():
     def set_birthday_date(self, date):
         self._set('bday', date)
         
+    def set_contact(self, contact):
+        self._set('contact', contact)
+        
     def set_photo_url(self, url):
         self._set('photo-url', url)
     
@@ -115,3 +121,6 @@ class Friend():
         if self._multi_attributes.has_key(key):
             return value in self._multi_attributes[key]
         return False
+    
+    def __getitem__(self, key):
+        return self._attributes[key]

Terms of Use    Privacy Policy    Contribution Guidelines    Feedback

Powered By GForge Collaborative Development Environment