~ubuntu-branches/ubuntu/vivid/horizon/vivid-proposed

« back to all changes in this revision

Viewing changes to horizon/test/test_dashboards/dogs/puppies/tables.py

  • Committer: Package Import Robot
  • Author(s): James Page, Chris Johnston, James Page
  • Date: 2014-10-03 17:54:18 UTC
  • mfrom: (0.3.1) (1.2.2)
  • Revision ID: package-import@ubuntu.com-20141003175418-wuk513xcytndqft7
Tags: 1:2014.2~rc1-0ubuntu1
[ Chris Johnston ]
* d/theme/css/ubuntu.css: Fix Ubuntu theme for Instances "more" dropdown
  (LP: #1308651).

[ James Page ]
* New upstream release candidate:
  - d/p/*: Refresh.
* d/watch: Use tarballs.openstack.org for upstream releases. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
#    License for the specific language governing permissions and limitations
11
11
#    under the License.
12
12
 
 
13
from django.utils.translation import ungettext_lazy
 
14
 
13
15
from horizon import tables
14
16
 
15
17
 
22
24
 
23
25
 
24
26
class SellPuppy(tables.DeleteAction):
25
 
    data_type_singular = 'Puppy'
26
 
    data_type_plural = 'Puppies'
 
27
    @staticmethod
 
28
    def action_present(count):
 
29
        # Translators: test code, don't really have to translate
 
30
        return ungettext_lazy(
 
31
            u"Sell Puppy",
 
32
            u"Sell Puppies",
 
33
            count
 
34
        )
 
35
 
 
36
    @staticmethod
 
37
    def action_past(count):
 
38
        # Translators: test code, don't really have to translate
 
39
        return ungettext_lazy(
 
40
            u"Sold Puppy",
 
41
            u"Sold Puppies",
 
42
            count
 
43
        )
27
44
 
28
45
    def delete(self, request, obj_id):
29
46
        pass