~osomon/moovida/account_admin

« back to all changes in this revision

Viewing changes to elisa-plugins/elisa/plugins/poblesec/base/list.py

  • Committer: Olivier Tilloy
  • Date: 2009-09-09 10:17:40 UTC
  • mfrom: (1498.3.43 resource_provider)
  • Revision ID: olivier@fluendo.com-20090909101740-wpdqtxgs6v0v3f1t
Merged the latest resource provider branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
312
312
 
313
313
        @return: a 2-tuple containing the default action and a list of
314
314
                 contextual actions
315
 
        @rtype:  (L{elisa.plugins.poblesec.actions.ContextualAction}, C{list}
316
 
                  of L{elisa.plugins.poblesec.actions.ContextualAction})
 
315
        @rtype:  (L{elisa.core.action.ContextualAction}, C{list}
 
316
                  of L{elisa.core.action.ContextualAction})
317
317
        """
318
318
        return None, []
319
319
 
457
457
        @return: a deferred fired when the action taken is complete
458
458
        @rtype:  L{elisa.core.utils.defer.Deferred}
459
459
        """
460
 
        if self._default_action is not None:
461
 
            return self._default_action.execute(item)
 
460
        default_action = self._default_action
 
461
        if hasattr(item, 'default_action') and item.default_action is not None:
 
462
            default_action = item.default_action
 
463
 
 
464
        if default_action:
 
465
            return default_action.execute(item)
462
466
 
463
467
        # Handle gracefully the switch to the new API: fallback to the old API
464
468
        # if needed.