-
Notifications
You must be signed in to change notification settings - Fork 2
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
dynamicTitle on Plone 3.3 raise error when visiting the FormSaveData2ContentEntry #6
Comments
Forget a detail (maybe it's already clean from the traceback above). Is not the |
should the portal root be one of the expression context arguments? Is self properly acquisition wrapped at that point? |
I really don't understand meaning of parameters of the a. using getExprContext(self, getSite()) is not good, as the context in TAL expression became the Plone site |
Can you see what's going on with the expression it's failing on? plone_view/globalize I'm not quite sure why it'd even be calling the globals template. Is it possible that's customized with your theme? |
The problem is inside
Also: i tested the problem on a fresh 3.3.6 site so it can't be related to customizations. The problem arise when trying to render the "Rules" content tab (disabling "Rule" tab from portal_action it will brake later on other stuff). The problem is that I see no link from the error I get and the getExprContext call (which return normally a value). I'll try to debug this more tomorrow. Thanks for feedback for the moment! |
No problem. Sorry I can't help more but I don't use Plone 3 at all anymore... |
...you are a lucky guy! :) |
closing this since I have not heard any feedback. Reopen if necessary. |
I found a problem that can be reproduced only on Plone 3.3.
If you use the
dynamicTitle
, with whatever expression you lie (also "string:foo") and later you visit a generated content, you'll get an error (something related to loosing context)::If I remove the title override expression all is ok again.
After investigating it, the problem is generated inside the
Title
method, probably where the product is calling::I'm really not able to understand why (I tried to debug the function call on Plone 4.2 but there's no difference in the output or code execution).
If, for example, I change the context used in that function call (changing it to a non-sense "self, adapter") I get no more error (obviously the context is then wrong).
Have you any suggestion for fixing this issue?
The text was updated successfully, but these errors were encountered: