-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rapido extra view ONLY works if it is the first defined on a new Plone instance (only tested on filesystem theme) #34
Comments
I cannot reproduce the problem, it works fine with rapido.plone 1.1.1. |
Just did further testing. The view works for the first visit on the first instance. Changing the view configuration fails after that. |
@pigeonflight and when the second view fails, does the first one still working? |
@ebrehault yes the first valid configuration continues to work until the following is done:
This changes the view id in all Plone instances that share the filesystem diazo theme. This was observed with a filesystem theme and will probably not be a problem for TTW, but I haven't tested that use case. |
Ok I see, that's because File-system based resources are not managed by Plone (see https://github.com/plone/plone.resource/blob/master/plone/resource/directory.py#L194 ), Plone can read directory contents, but it cannot be aware of changes, so there is no place where we can emit the PloneResourceModifiedEvent event. |
+1 for the refresh command. In the meantime, for our customer projects, when we use filesystem views we shall work with the policy that those filesystem views should never be renamed. |
I wanted to map my rapido app to a custom extra view with an id of my choice. I followed this guide http://rapidoplone.readthedocs.io/en/latest/reference/display.html?highlight=view#extra-views1
This was done with the following conditions:
Steps to repeat
Step 1 - Create a rapido app with the following layout:
In a site served at url http://localhost:8080/Plone/ define your rapido app in a filesystem based theme.
Step 2 - Define an extra view In the
frontlinks.yaml
file.Step 3 - Visit the defined view
Visiting
http://localhost:8080/Plone/@@first-defined-view
works as expectedStep 4 - Change the extra view id
Now attempt to visit
http://localhost:8080/Plone/@@second-defined-view
Instead of the view, I get a "page not found type error".
Step 5 - Create a brand new Plone site and enable the same theme
Now attempt to visit
http://localhost:8080/Plone2/@@second-defined-view
It will work on both Plone sites.
Expected behaviour
Changing the view id should ALWAYS work in the context of the Plone site that you are making the change on.
My Suggestions
This appears to be more difficult than I thought. I think the following should be added to the docs
0. It should be noted that a filesystem theme is known to cause problems when there are multiple instances sharing the same Zope.
The text was updated successfully, but these errors were encountered: