Example #1
0
 def __call__(self, *args, **kwargs):
     from pritunl.transaction.collection import TransactionCollection
     self._actions.append([
         self._func,
         args or '',
         kwargs or '',
     ])
     return TransactionCollection(self._actions)
Example #2
0
 def collection(self, name):
     return TransactionCollection(collection_name=name,
                                  action_sets=self.action_sets)