Example #1
0
 def execute(self, *args, **kwargs):
     ln=len(args)            
     if ln==1:
         name, comment=args[0], ""
     elif ln==2:
         name, comment=args
     self.data_module.set_datagroup(name, comment)
     self.info("Current status of {0} {1}".format(self.data_module.name,format_status(self.data_module.call_status(),(30,15,5))))
Example #2
0
 def call_each_execute(self, obj, *args, **kwargs):
     status=super(BaseStatusCommand, self).call_each_execute(obj, *args, **kwargs)
     self.info("Current status of {0} {1}".format(obj.name,format_status(status,(30,15,5))))