[javascript] make inlinedform-added event bindable
$(form).trigger('inlinedform-added') was not usable since form
had no existence outside the inner callback.
Use the general CubicWeb object to trigger the event so it's easy
to bind a callback wherever it's needed.
"""module defining the root handler for a lax instance. You should not haveto change anything here.:organization: Logilab:copyright: 2008-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses"""__docformat__="restructuredtext en"# compute instance's root directoryfromos.pathimportdirname,abspathAPPLROOT=dirname(abspath(__file__))# apply monkey patches firstfromcubicwebimportgoagoa.do_monkey_patch()# get instance's configuration (will be loaded from app.conf file)fromcubicweb.goa.goaconfigimportGAEConfigurationGAEConfiguration.ext_resources['JAVASCRIPTS'].append('DATADIR/goa.js')config=GAEConfiguration('toto',APPLROOT)# dynamic objects registryfromcubicweb.goa.goavregimportGAEVregistryvreg=GAEVregistry(config,debug=goa.MODE=='dev')# trigger automatic classes registration (metaclass magic), should be done# before schema loadingimportcustom# load instance'schemavreg.schema=config.load_schema()# load dynamic objectsvreg.load(APPLROOT)# call the postinit so custom get a chance to do instance specific stuffcustom.postinit(vreg)fromcubicweb.wsgi.handlerimportCubicWebWSGIApplicationapplication=CubicWebWSGIApplication(config,vreg=vreg)# main function so this handler module is cacheddefmain():fromwsgiref.handlersimportCGIHandlerCGIHandler().run(application)if__name__=="__main__":main()