Wow, it works. Thanks for all Alessandro.
Il giorno venerdì 8 febbraio 2013 20:29:35 UTC+1, Alessandro Molina ha scritto: > > tw2 team is making a minor release of tw2.core to fix this issue shortly, > just upgrading should resolve it. > > > On Fri, Feb 8, 2013 at 8:10 PM, Alessandro Molina > <[email protected]<javascript:> > > wrote: > >> Ok, I have been able to replicate the issue. >> Looks like a bug in tw2, might be something that changed recently because >> it used to work. >> >> When pluggable is used, both the application and the pluggable are loaded >> before starting the server to merge them. >> This makes so that the TW2 middleware is created and then the resources >> injected, this was not considered in tw2 and the resources got lost. >> Tw2 expects the resources to be registered BEFORE creating the middleware >> or during a request, it doesn't work if you register resources within an >> existing middleware. >> >> >> On Fri, Feb 8, 2013 at 3:50 PM, Luca Verardi >> <[email protected]<javascript:> >> > wrote: >> >>> Nothing, "plugtest" is the default plugin generated after >>> "quickstart-pluggable" >>> >>> You can find it in the previously linked file >>> >>> >>> Il giorno venerdì 8 febbraio 2013 15:41:33 UTC+1, Alessandro Molina ha >>> scritto: >>>> >>>> What is plugtest doing? >>>> >>>> >>>> On Fri, Feb 8, 2013 at 2:58 PM, Luca Verardi <[email protected]>wrote: >>>> >>>>> I updated the eggs as you said but the problem is still there >>>>> >>>>> if I delete plug(base_config,'plugtest') from my app_cfg.py everything >>>>> works just fine, if I keep it external resources don't get >>>>> rendered. >>>>> >>>>> >>>>> Il giorno venerdì 8 febbraio 2013 13:30:52 UTC+1, Alessandro Molina ha >>>>> scritto: >>>>>> >>>>>> Actually to me it works correctly, the datagrid is correctly rendered. >>>>>> I suppose it might be an issue in the way your environment is set up, >>>>>> check your toscawidgets libraries versions. >>>>>> >>>>>> I'm using: >>>>>> tw2.core==2.1.4 >>>>>> tw2.forms==2.1.4.1 >>>>>> >>>>>> >>>>>> >>>>>> On Fri, Feb 8, 2013 at 12:53 PM, Luca Verardi <[email protected]>wrote: >>>>>> >>>>>>> >>>>>>> >>>>>>> Il giorno venerdì 8 febbraio 2013 11:51:04 UTC+1, Alessandro Molina >>>>>>> ha scritto: >>>>>>>> >>>>>>>> without further informations I'm not able to think of any possible >>>>>>>> issue, are able to provide a minimal project that replicates the issue >>>>>>>> and >>>>>>>> make it available somewhere for download? >>>>>>>> >>>>>>>> >>>>>>>> On Fri, Feb 8, 2013 at 11:40 AM, Luca Verardi >>>>>>>> <[email protected]>wrote: >>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> Il giorno venerdì 8 febbraio 2013 11:29:42 UTC+1, Alessandro >>>>>>>>> Molina ha scritto: >>>>>>>>> >>>>>>>>>> On Fri, Feb 8, 2013 at 10:31 AM, Luca Verardi < >>>>>>>>>> [email protected]> wrote: >>>>>>>>>> >>>>>>>>>>> Thanks for the advice Alessandro, now it works but there is >>>>>>>>>>> another problem now. >>>>>>>>>>> >>>>>>>>>>> It seems external resources (Css, Javascript) won't load on >>>>>>>>>>> their own. I put a DataGrid in a form and this the error (Taken >>>>>>>>>>> from >>>>>>>>>>> Firebug): >>>>>>>>>>> >>>>>>>>>>> "NetworkError: 404 Not Found - http://localhost:8080/tw2/**reso* >>>>>>>>>>> *****urces/tw2.forms/static/**forms.**c****ss<http://localhost:8080/tw2/resources/tw2.forms/static/forms.css> >>>>>>>>>>> " >>>>>>>>>>> "NetworkError: 404 Not Found - http://localhost:8080/tw2/**reso* >>>>>>>>>>> *****urces/tw2.forms/static/**datagri******d/datagrid.css<http://localhost:8080/tw2/resources/tw2.forms/static/datagrid/datagrid.css> >>>>>>>>>>> " >>>>>>>>>>> >>>>>>>>>>> Do you know why? >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>> Uhm, >>>>>>>>>> the most common reason for that kind of issues is that the >>>>>>>>>> toscawidgets2 middleware is not in place. >>>>>>>>>> >>>>>>>>>> Are you sure that your application (not the pluggable) has >>>>>>>>>> prefer_toscawidgets2 = True or at least use_toscawidgets2 = True in >>>>>>>>>> app_cfg.py? >>>>>>>>>> >>>>>>>>>> >>>>>>>>> Both. >>>>>>>>> base_config.prefer_**toscawidget****s2 = True >>>>>>>>> >>>>>>>>> I tried even with >>>>>>>>> base_config.use_toscawidgets2 = True >>>>>>>>> >>>>>>>>> but nothing happened >>>>>>>>> >>>>>>>>> -- >>>>>>>>> You received this message because you are subscribed to the Google >>>>>>>>> Groups "TurboGears" group. >>>>>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>>>>> send an email to turbogears+...@**googlegroups.**co**m. >>>>>>>>> To post to this group, send email to [email protected]. >>>>>>>>> >>>>>>>>> Visit this group at http://groups.google.com/**group**** >>>>>>>>> /turbogears?hl=en<http://groups.google.com/group/turbogears?hl=en> >>>>>>>>> . >>>>>>>>> For more options, visit https://groups.google.com/**grou**** >>>>>>>>> ps/opt_out <https://groups.google.com/groups/opt_out>. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> Download Link >>>>>>> http://db.tt/i8TXVzJ0 >>>>>>> >>>>>>> I managed to recreate the error in the attached project. >>>>>>> >>>>>>> To create the instance I used buildout, so i included buildout.cfg >>>>>>> and version.cfg >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> You received this message because you are subscribed to the Google >>>>>>> Groups "TurboGears" group. >>>>>>> To unsubscribe from this group and stop receiving emails from it, >>>>>>> send an email to turbogears+...@**googlegroups.**com. >>>>>>> To post to this group, send email to [email protected]. >>>>>>> Visit this group at http://groups.google.com/**group** >>>>>>> /turbogears?hl=en <http://groups.google.com/group/turbogears?hl=en>. >>>>>>> For more options, visit >>>>>>> https://groups.google.com/**grou**ps/opt_out<https://groups.google.com/groups/opt_out> >>>>>>> . >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "TurboGears" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to turbogears+...@**googlegroups.com. >>>>> To post to this group, send email to [email protected]. >>>>> Visit this group at >>>>> http://groups.google.com/**group/turbogears?hl=en<http://groups.google.com/group/turbogears?hl=en> >>>>> . >>>>> For more options, visit >>>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> >>>>> . >>>>> >>>>> >>>>> >>>> >>>> -- >>> You received this message because you are subscribed to the Google >>> Groups "TurboGears" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected] <javascript:>. >>> To post to this group, send email to [email protected]<javascript:> >>> . >>> Visit this group at http://groups.google.com/group/turbogears?hl=en. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> > -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/turbogears?hl=en. For more options, visit https://groups.google.com/groups/opt_out.

