Thank you Phillip. I modified the zope.conf file as you suggested and did sudo ./zope stop ... usual msg sudo ./zope start ... usual msg Then generated the error. The error log shows the same output as before. Not only should the line number be one higher, I also put a dummy variable name on that line to generate a stupid error msg. How can it not be getting to that code? I've searched for another Zope instance, but found none. Also, you are saying that I probably will never get the Control Panel back on this site with Product Management tools; no Product refresh then, I suppose. I'll have to thank the previous developer, as you suggest! (of course there is no documentation either, arrgh!) If you can think of anything else, I'd appreciated it. Thanks. Barry --- Phillip Hutchings wrote:
I modify utils.py, after saving a copy, in order to obtain diagnostic output. Then I delete utils.pyc, after saving a copy, in order to force a recompile (even used compilezpy.py for this a couple of times). Zope never seems to use the new version.
Restart Zope. Python will pick up the changes. Also, if you're modifying security code, make sure you set security-policy-implementation to Python in zope.conf, otherwise you're using the C one, and no matter what changes you make to the Python scripts you won't see any changes.
I suspect that I have a fundamental misunderstanding of how Zope uses code in the Products directory.
Is Zope storing all the compiled byte code in the data.fs file? Is there a way to force Zope to use new code?
No. Refresh the product or restart Zope.
Also, the previous developer removed the Control Panel putting Plone as the root of everything. How can I get information that the Control Panel usually provides?
Find a heavy object, find the developer, bring the two together at speed. Repeat until the problem is fixed.
yoursite/manage will get you to the control panel. If he's managed to override /manage then you have problems...
And the real problem:
TypeError: can only concatenate tuple (not "list") to tuple
Like it says, you're supplying a list, you want a tuple. It looks like you need to update PluginIndexes, I don't know where they come from.
-- Phillip Hutchings http://www.sitharus.com/ sitharus@gmail.com / sitharus@sitharus.com _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Then generated the error. The error log shows the same output as before. Not only should the line number be one higher, I also put a dummy variable name on that line to generate a stupid error msg.
How can it not be getting to that code? I've searched for another Zope instance, but found none.
This is really odd. It sounds like it could be getting patched somewhere. Try raising exceptions from various points in the method, see if one gets there.
Also, you are saying that I probably will never get the Control Panel back on this site with Product Management tools; no Product refresh then, I suppose. I'll have to thank the previous developer, as you suggest! (of course there is no documentation either, arrgh!)
If you can think of anything else, I'd appreciated it.
If the /manage URL has been overridden it's probably possible to fix it. Try going to /manage_workspace, see if that works. Is Zope behind a proxy? It's possible that it's being done with a URL rewrite somewhere. -- Phillip Hutchings http://www.sitharus.com/ sitharus@gmail.com / sitharus@sitharus.com
Phillip Hutchings wrote:
Then generated the error. The error log shows the same output as before. Not only should the line number be one higher, I also put a dummy variable name on that line to generate a stupid error msg.
How can it not be getting to that code? I've searched for another Zope instance, but found none.
This is really odd. It sounds like it could be getting patched somewhere. Try raising exceptions from various points in the method, see if one gets there.
It doesn't look like a monkey patch. Those aren't invisible in tracebacks. Follow the code path higher until you do get some effect.
Also, you are saying that I probably will never get the Control Panel back on this site with Product Management tools; no Product refresh then, I suppose. I'll have to thank the previous developer, as you suggest! (of course there is no documentation either, arrgh!)
If you can think of anything else, I'd appreciated it.
If the /manage URL has been overridden it's probably possible to fix it. Try going to /manage_workspace, see if that works. Is Zope behind a proxy? It's possible that it's being done with a URL rewrite somewhere.
I would imagine it's some sort of redirect. I would start with using the IP address: usually this is enough to avoid the redirect. Otherwise, find out how to turn "access rule" off. I think this may be in Zope/doc/SECURIY.txt. I don't think it's possible to really remove the Zope Control Panel. --jcc -- "Building Websites with Plone" http://plonebook.packtpub.com/
It doesn't look like a monkey patch. Those aren't invisible in tracebacks.
Follow the code path higher until you do get some effect.
I've seen odd things before, but I agree, it isn't likely that it's a monkey patch. Chances are that some product is outdated.
I would imagine it's some sort of redirect. I would start with using the IP address: usually this is enough to avoid the redirect. Otherwise, find out how to turn "access rule" off. I think this may be in Zope/doc/SECURIY.txt.
I don't think it's possible to really remove the Zope Control Panel.
You can't overwrite the manage URL with Zope, it's just not allowed. I suspect there's some external URL rewriting happening here. Either that or the guy was a real PITA and rewrote Zope to work with his pet ideas. -- Phillip Hutchings http://www.sitharus.com/ sitharus@gmail.com / sitharus@sitharus.com
participants (3)
-
Barry Drake -
J Cameron Cooper -
Phillip Hutchings