damned-lies r1465 - in trunk: . vertimus



Author: claudep
Date: Wed Mar  4 19:05:30 2009
New Revision: 1465
URL: http://svn.gnome.org/viewvc/damned-lies?rev=1465&view=rev

Log:
2009-03-04  Claude Paroz  <claude 2xlibre net>

	* vertimus/models.py: ActionDbBackup also needs the get_action method for
	rss feeds.

Modified:
   trunk/ChangeLog
   trunk/vertimus/models.py

Modified: trunk/vertimus/models.py
==============================================================================
--- trunk/vertimus/models.py	(original)
+++ trunk/vertimus/models.py	Wed Mar  4 19:05:30 2009
@@ -656,6 +656,11 @@
     def __unicode__(self):
         return "%s (%s)" % (self.name, self.id)
 
+    def get_action(self):
+        action = eval('Action' + self.name)()
+        action._action_db = self
+        return action
+
 class ActionBA(ActionAbstract):
     name = 'BA'
     description = _('Backup the actions')



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]