def api(self):
        lines = ["Ext.ns('%s'); %s = %s;" % (self.ns, self.name,
            json.dumps({'url': url_for('directrouter'),
                      'type': 'remoting',
                      'actions': self.defs}))]
        lines.append("Ext.Direct.addProvider(%s);" * self.name)
        return "\n".join(lines)
dataset/ETHPy150Open paparent/Flask-ExtDirect/flaskext/extdirect.py/ExtDirect.api/operator `%` -> `*`