[fix] #731915 use add_onload instead of plain <script> tag for progress bar.
This changeset fixes : #731915: missing inprogress style on the project page
Content fetched with ajax have their <script> tags removed. (see #734414) We
now use the _cw.html_headers.add_onload method to execute the javascript code
necessary to draw the progress bar.
In the process we removed the ProgressBarWidget and merged it in
ProgressTableView.
"""cubicweb-ctl commands and command handlers common to twisted/modpythonweb configuration:organization: Logilab:copyright: 2001-2010 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"fromcubicweb.toolsutilsimportCommandHandler,underline_titlefromlogilab.common.shellutilsimportASKclassWebCreateHandler(CommandHandler):cmdname='create'defbootstrap(self,cubes,inputlevel=0):"""bootstrap this configuration"""print'\n'+underline_title('Generic web configuration')config=self.configifconfig.repo_method=='pyro':print'\n'+underline_title('Pyro configuration')config.input_config('pyro',inputlevel)ifASK.confirm('Allow anonymous access ?',False):config.global_set_option('anonymous-user','anon')config.global_set_option('anonymous-password','anon')defpostcreate(self):"""hooks called once instance's initialization has been completed"""