Revision 12269b45 snf-astakos-app/astakos/im/views.py

b/snf-astakos-app/astakos/im/views.py
664 664
                                                        extra_context))
665 665

  
666 666

  
667

  
668
resource_presentation = {
669
       'compute': {
670
            'help_text':'group compute help text',
671
            'is_abbreviation':False,
672
            'report_desc':''
673
        },
674
        'storage': {
675
            'help_text':'group storage help text',
676
            'is_abbreviation':False,
677
            'report_desc':''
678
        },
679
        'pithos+.diskspace': {
680
            'help_text':'resource pithos+.diskspace help text',
681
            'is_abbreviation':False,
682
            'report_desc':'Diskspace used'
683
        },
684
        'cyclades.vm': {
685
            'help_text':'resource cyclades.vm help text resource cyclades.vm help text resource cyclades.vm help text resource cyclades.vm help text',
686
            'is_abbreviation':True,
687
            'report_desc':'Number of Virtual Machines'
688
        },
689
        'cyclades.disksize': {
690
            'help_text':'resource cyclades.disksize help text',
691
            'is_abbreviation':False,
692
            'report_desc':'Amount of Disksize used'
693
        },
694
        'cyclades.ram': {
695
            'help_text':'resource cyclades.ram help text',
696
            'is_abbreviation':True,
697
            'report_desc':'RAM used'
698
        },
699
        'cyclades.cpu': {
700
            'help_text':'resource cyclades.cpu help text',
701
            'is_abbreviation':True,
702
            'report_desc':'CPUs used'
703
        }
704
    }
705

  
667 706
@require_http_methods(["GET", "POST"])
668 707
@signed_terms_required
669 708
@login_required
......
695 734
    except:
696 735
        return HttpResponseBadRequest(_('No such group kind'))
697 736
    
698
    resource_presentation = {
699
       'compute': {
700
            'help_text':'group compute help text',
701
        },
702
        'storage': {
703
            'help_text':'group storage help text',
704
        },
705
        'pithos+.diskspace': {
706
            'help_text':'resource pithos+.diskspace help text',
707
            'is_abbreviation':False,
708
        },
709
        'cyclades.vm': {
710
            'help_text':'resource cyclades.vm help text resource cyclades.vm help text resource cyclades.vm help text resource cyclades.vm help text',
711
            'is_abbreviation':True,
712
        },
713
        'cyclades.disksize': {
714
            'help_text':'resource cyclades.disksize help text',
715
            'is_abbreviation':False,
716
        },
717
        'cyclades.ram': {
718
            'help_text':'resource cyclades.ram help text',
719
            'is_abbreviation':True,
720
        },
721
        'cyclades.cpu': {
722
            'help_text':'resource cyclades.cpu help text',
723
            'is_abbreviation':True,
724
        }
725
    }
737
    
726 738

  
727 739
    post_save_redirect = '/im/group/%(id)s/'
728 740
    context_processors = None
......
1166 1178
        messages.error(request, result.reason)
1167 1179
    return render_response('im/resource_list.html',
1168 1180
                           data=data,
1181
                           resource_presentation=resource_presentation,
1169 1182
                           context_instance=get_context(request))
1170 1183

  
1171 1184

  

Also available in: Unified diff