def set_long_description(self, long_description_text):
     """
       Set app's long description template
       
       :arg string long_description_text: content of long description template
                                   in string format
     """
     
     app = pbclient.get_app(self.app_id)
     app.long_description = long_description_text
     pbclient.update_app(app)
 def set_name(self, name):
     """
       Set app name
       
       :arg string name: name of the app
       
     """
     
     app = pbclient.get_app(self.app_id)
     app.name = name
     pbclient.update_app(app)
 def set_template(self, template_text):
     """
       Set app's template
       
       :arg string template_text: content of template in string format
       
     """
     
     app = pbclient.get_app(self.app_id)
     app.info['task_presenter'] = template_text
     pbclient.update_app(app)
    def add_app_infos(self, info_values):
        """
           Add new info values to info attribute from this app
           
           :arg dict info_values: dict with infos and respectives values to add
                             to the app
           
        """
        
        app = pbclient.get_app(self.app_id)

        if(type(info_values) is dict):
            for info_key in info_values.keys():
                app.info[str(info_key)] = info_values[info_key]
        else:
            logger.error(Meb_apps_exception(5, self.app_id, self.short_name))
            raise Meb_apps_exception(5, self.app_id, self.short_name)

        pbclient.update_app(app)