<s> from django . utils . translation import ugettext_lazy as _ <EOL> from horizon import tables <EOL> from horizon . templatetags import sizeformat <EOL> class AdminHypervisorsTable ( tables . DataTable ) : <EOL> hostname = tables . Column ( "<STR_LIT>" , <EOL> link = "<STR_LIT>" , <EOL> verbose_name = _ ( "<STR_LIT>" ) ) <EOL> hypervisor_type = tables . Column ( "<STR_LIT>" , <EOL> verbose_name = _ ( "<STR_LIT>" ) ) <EOL> vcpus_used = tables . Column ( "<STR_LIT>" , <EOL> verbose_name = _ ( "<STR_LIT>" ) ) <EOL> vcpus = tables . Column ( "<STR_LIT>" , <EOL> verbose_name = _ ( "<STR_LIT>" ) ) <EOL> memory_used = tables . Column ( '<STR_LIT>' , <EOL> verbose_name = _ ( "<STR_LIT>" ) , <EOL> attrs = { '<STR_LIT>' : '<STR_LIT:size>' } , <EOL> filters = ( sizeformat . mb_float_format , ) ) <EOL> memory = tables . Column ( '<STR_LIT>' , <EOL> verbose_name = _ ( "<STR_LIT>" ) , <EOL> attrs = { '<STR_LIT>' : '<STR_LIT:size>' } , <EOL> filters = ( sizeformat . mb_float_format , ) ) <EOL> local_used = tables . Column ( '<STR_LIT>' , <EOL> verbose_name = _ ( "<STR_LIT>" ) , <EOL> attrs = { '<STR_LIT>' : '<STR_LIT:size>' } , <EOL> filters = ( sizeformat . diskgbformat , ) ) <EOL> local = tables . Column ( '<STR_LIT>' , <EOL> verbose_name = _ ( "<STR_LIT>" ) , <EOL> attrs = { '<STR_LIT>' : '<STR_LIT:size>' } , <EOL> filters = ( sizeformat . diskgbformat , ) ) <EOL> running_vms = tables . Column ( "<STR_LIT>" , <EOL> verbose_name = _ ( "<STR_LIT>" ) ) <EOL> def get_object_id ( self , hypervisor ) : <EOL> return "<STR_LIT>" % ( hypervisor . id , <EOL> hypervisor . hypervisor_hostname ) <EOL> class Meta ( object ) : <EOL> name = "<STR_LIT>" <EOL> verbose_name = _ ( "<STR_LIT>" ) <EOL> class AdminHypervisorInstancesTable ( tables . DataTable ) : <EOL> name = tables . Column ( "<STR_LIT:name>" , <EOL> link = "<STR_LIT>" , <EOL> verbose_name = _ ( "<STR_LIT>" ) ) <EOL> instance_id = tables . Column ( "<STR_LIT>" , <EOL> verbose_name = _ ( "<STR_LIT>" ) ) <EOL> def get_object_id ( self , server ) : <EOL> return server [ '<STR_LIT>' ] <EOL> class Meta ( object ) : <EOL> name = "<STR_LIT>" <EOL> verbose_name = _ ( "<STR_LIT>" ) </s>
