Author: eallen
Date: 2010-05-25 14:58:45 -0400 (Tue, 25 May 2010)
New Revision: 3989
Modified:
mgmt/newdata/cumin/python/cumin/objecttask.py
Log:
Display the object name or fields in the ObjectTaskForm
Modified: mgmt/newdata/cumin/python/cumin/objecttask.py
===================================================================
--- mgmt/newdata/cumin/python/cumin/objecttask.py 2010-05-25 18:27:46 UTC (rev 3988)
+++ mgmt/newdata/cumin/python/cumin/objecttask.py 2010-05-25 18:58:45 UTC (rev 3989)
@@ -313,6 +313,9 @@
return self.task.get_title(session)
def render_content(self, session):
+ if len(self.main_fields.fields):
+ return super(ObjectTaskForm, self).render_content(session)
+
obj = self.object.get(session)
return obj.name
Show replies by date