Raimon Esteve (Zikzakmedia) committed aa12780

get_resources + get_rec_name methods

Comments (0)

Files changed (1)

     def get_resource(cls):
-        '''Get Resources. Rewrite this method to add new resource references'''
-        res = []
-        return res
+        'Return list of Model names for resource Reference'
+        return []
+    def get_rec_name(self, name):
+        return (self.subject or unicode(
-    def get_rec_name(cls, records, name):
-        if not records:
-            return {}
-        res = {}
-        for mail in records:
-            res[] = mail.subject
-        return res
     def create_event(self, party, resource, values={}):
         Create event at party from details
         :param values: Dicc {subject:, date:, description:} (optional)
         now =
         values = {
             'event_date':values.get('date') or now,
             'subject':values.get('subject') or 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.