entities/lib.py
branchtls-sprint
changeset 1477 b056a49c16dc
parent 1398 5fe84a5f7035
parent 1410 dc22b5461850
child 1780 7549509ce0e6
--- a/entities/lib.py	Fri Apr 24 16:48:38 2009 +0200
+++ b/entities/lib.py	Fri Apr 24 17:04:14 2009 +0200
@@ -30,11 +30,11 @@
         if self.alias:
             return '%s <%s>' % (self.alias, self.display_address())
         return self.display_address()
-    
+
     @property
     def email_of(self):
         return self.reverse_use_email and self.reverse_use_email[0]
-    
+
     @cached
     def canonical_form(self):
         if self.canonical:
@@ -91,12 +91,12 @@
 class CWProperty(AnyEntity):
     id = 'CWProperty'
 
-    fetch_attrs, fetch_order = fetch_config(['pkey', 'value'])    
+    fetch_attrs, fetch_order = fetch_config(['pkey', 'value'])
     rest_attr = 'pkey'
 
     def typed_value(self):
         return self.vreg.typed_value(self.pkey, self.value)
-        
+
     def dc_description(self):
         try:
             return self.req._(self.vreg.property_info(self.pkey)['help'])
@@ -108,7 +108,7 @@
         information when this entity is being deleted
         """
         return 'view', {}
-        
+
 
 class Bookmark(AnyEntity):
     """customized class for Bookmark entities"""
@@ -130,24 +130,9 @@
         return self.absolute_url() + '/follow'
 
 
-class Card(AnyEntity):
-    """customized class for Card entities"""
-    id = 'Card'
-    rest_attr = 'wikiid'
-    
-    fetch_attrs, fetch_order = fetch_config(['title'])
-
-    def dc_title(self):
-        return self.title
-
-    def dc_description(self, format='text/plain'):
-        return self.synopsis or u''
-
-
 class CWCache(AnyEntity):
     """Cache"""
     id = 'CWCache'
-    
     fetch_attrs, fetch_order = fetch_config(['name'])
 
     def touch(self):