[web2py] Re: Delete plugin will also delete default theme
Thank you, I found the problem. views/layout.html is REPLACED when the layout plugin installed and stay as is even you uninstall the plugin, which means the original one is not restored. I tried the following but others cause the same problem. http://web2py.com/layouts/static/plugin_layouts/plugins/web2py.plugin.layout_RedCity.w2p We can manually restore the original from other apps but it's nice to have feature to restore the original and backup when it's uninstalled. On Oct 6, 6:12 pm, Anthony abasta...@gmail.com wrote: Which layout plugin did you install? On Thursday, October 6, 2011 6:27:27 PM UTC-4, Omi Chiba wrote: Have you confirmed the default theme files have actually been deleted? Not sure where it's located... It would be /views/layout.html and /static/css/base.css. When using the layout plugin, had you modified your layout.html to extend the plugin layout.html No. It's a brand new app. I think you can also re-produce it very easily. By the way, web2py version is the latest (Version 1.99.2) one. On Oct 6, 3:51 pm, Anthony abas...@gmail.com wrote: Have you confirmed the default theme files have actually been deleted? When using the layout plugin, had you modified your layout.html to extend the plugin layout.html, and if so, did you change it back after deleting the plugin? Anthony On Thursday, October 6, 2011 4:34:17 PM UTC-4, Omi Chiba wrote: See attached screen shot. 1. Download layout plugin 2. Upload to your app 3. Click delete plugin 4. Now I'm naked like attached screen.
[web2py] Re: Delete plugin will also delete default theme
that is is precisely... The current recommended way of creating layout plugins works fine when installing plugins but does leave you naked if you decide to uninstall all layout plugins or uninstall the last layout plugin installed. To get a better understanding of why this is true you can see the web2py manual or examine the contents of a layout plugin (basically a tar archive) : http://www.web2py.com/book/default/chapter/13?search=layout+plugin#Layout-plugins In a nutshell, many layout plugins (all of them?) overwrite views/layout.html or recommend that views/layout.html be replaced with the following content: {{extend 'plugin_layout_name/layout.html'}} {{include}} So restoring your original views/layout.html will give you your original layout again. Alternatively you could create a layout plugin that installs your original views/layout.html (or even the entire default theme) for the version of Web2py you used to create the application or your own custom version. Chris
[web2py] Re: Delete plugin will also delete default theme
Have you confirmed the default theme files have actually been deleted? When using the layout plugin, had you modified your layout.html to extend the plugin layout.html, and if so, did you change it back after deleting the plugin? Anthony On Thursday, October 6, 2011 4:34:17 PM UTC-4, Omi Chiba wrote: See attached screen shot. 1. Download layout plugin 2. Upload to your app 3. Click delete plugin 4. Now I'm naked like attached screen.
[web2py] Re: Delete plugin will also delete default theme
Have you confirmed the default theme files have actually been deleted? Not sure where it's located... When using the layout plugin, had you modified your layout.html to extend the plugin layout.html No. It's a brand new app. I think you can also re-produce it very easily. By the way, web2py version is the latest (Version 1.99.2) one. On Oct 6, 3:51 pm, Anthony abasta...@gmail.com wrote: Have you confirmed the default theme files have actually been deleted? When using the layout plugin, had you modified your layout.html to extend the plugin layout.html, and if so, did you change it back after deleting the plugin? Anthony On Thursday, October 6, 2011 4:34:17 PM UTC-4, Omi Chiba wrote: See attached screen shot. 1. Download layout plugin 2. Upload to your app 3. Click delete plugin 4. Now I'm naked like attached screen.
[web2py] Re: Delete plugin will also delete default theme
Which layout plugin did you install? On Thursday, October 6, 2011 6:27:27 PM UTC-4, Omi Chiba wrote: Have you confirmed the default theme files have actually been deleted? Not sure where it's located... It would be /views/layout.html and /static/css/base.css. When using the layout plugin, had you modified your layout.html to extend the plugin layout.html No. It's a brand new app. I think you can also re-produce it very easily. By the way, web2py version is the latest (Version 1.99.2) one. On Oct 6, 3:51 pm, Anthony abas...@gmail.com wrote: Have you confirmed the default theme files have actually been deleted? When using the layout plugin, had you modified your layout.html to extend the plugin layout.html, and if so, did you change it back after deleting the plugin? Anthony On Thursday, October 6, 2011 4:34:17 PM UTC-4, Omi Chiba wrote: See attached screen shot. 1. Download layout plugin 2. Upload to your app 3. Click delete plugin 4. Now I'm naked like attached screen.