[Zope] awstats and zope
Does anyone know of a customization of the awstats file search_engines.pm (Perl) that works with Zope's built in search? Before I start doing this, I'd like to know if someone has already done it! Thanks. Barry Drake ___ 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 )
Re: [Zope] Re: TextIndexNG2 problems
Owen, This is still not working for me either. I installed C++.net also hoping that it might go through. No change; same error messages. How can we bring this forward? I'd like to help as well. Barry --- Owen K wrote: Andreas, Barry, and all, I have the same TextIndexNG2 install error as Barry (see Error text below). My setup: MS VisualC++ 7 . Zope 2.7.8-final, python 2.3.5, win32 Also installed are TextIndexNGExtensions-2.02.win32-py2.3.exe and python-Levenshtein-0.10.win32-py2.3.exe. My windows registry points to the python installation that I have under Plone 2.1.2, and that is the only python on my Windows XP Pro machine. Barry, any luck? The TextIndexNG2 windows binaries were explicitly labelled python2.3; so the mismatch with python 2.3.5 is surprising. In terms of following Andreas Jung's advice to recompile the extensions, What can I do with MS Visual Studio .Net 2003 to move this forward? The associated compiler is CL.exe and I found it in ..Vc7\CL.exe so I think the visual C version is 7. Do I need to recompile all of python + TextIndexNG2? Or somehow make the compiler look like VC6 and then compile TextIndexNG2 extensions. Or somehow help TextIndexNG2python setup.py install to see my VC++ compiler? Many thanks, Owen Error text: C:\Program Files\Plone 2\Data\Products\TextIndexNG2python setup.py install -DUNICODE_WIDTH=2 running install running build running build_ext error: Python was built with version 6 of Visual Studio, and extensions need to be built with the same version of the compiler, but it isn't installed. Barry Drake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have PloneLocalFolderNG installed, which works great. But, I can't run python setup.py install for TextIndexNG2. I get the following error: running install running build running build_ext error: Python was built with version 6 of Visual Studio, and extensions need to be built with the same version of the compiler, but it isn't installed. The documentation says to install the win32 extensions, TextIndexNGExtensions-2.02.win32-py2.3.exe, so I did that. Still can't run the setup script. Any ideas? System: Zope 2.7.6-final, python 2.3.5, win32 Thanks. Barry Drake ___ 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 ) ___ 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 ) ___ 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 )
Re: [Zope] Re: TextIndexNG2 problems
Tres and Owen, Using Tres's advice below, I was able to recompile TextIndexNG2 on my Windows machine using the MingW compiler. Works great! I used the Python that came with Zope and the latest MingW compiler. Just follow the instructions at the link provided by Tres below. With one additional instruction: Copy the .pyd files from the C:\Zope-Instance\Products\TextIndexNG2\build\lib.win32-2.3 directory to C:\Zope-Instance\Products\TextIndexNG2 Zope won't start unless you do this last step. System: Zope Version (Zope 2.7.6-final, python 2.3.5, win32) Python Version 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] System Platform win32 Barry Drake --- Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Owen K wrote: Andreas, Barry, and all, I have the same TextIndexNG2 install error as Barry (see Error text below). My setup: MS VisualC++ 7 . Zope 2.7.8-final, python 2.3.5, win32 Also installed are TextIndexNGExtensions-2.02.win32-py2.3.exe and python-Levenshtein-0.10.win32-py2.3.exe. My windows registry points to the python installation that I have under Plone 2.1.2, and that is the only python on my Windows XP Pro machine. Barry, any luck? Python 2.3.x was built with VC++ version 6; Python 2.4.x with version 7. If you can't lay your hands on that version, then perhaps Mingw would do: http://sebsauvage.net/python/mingw.html Tres. - -- === Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software Excellence by Design http://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFD8dRS+gerLs4ltQ4RAumKAKCPszCd+VeCWjxQQPIIPFJLUXS8TgCeJ/fC akN89KE6basU2l+47UBcpt8= =42eM -END PGP SIGNATURE- ___ 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 ) ___ 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 )
Re: [Zope] Re: TextIndexNG2 problems
Owen, I think that once you have the .pyd files, Zope uses those from that point on; no need for the compilers any longer. That's why I'm glad to have found out about the MingW solution, bypassing MS! Barry --- Owen K wrote: Regarding compiling under Microsoft VC6, should I expect that TextIndexNG setup would launch VC6 compiler if I had that tool installed? Thanks, Owen ___ 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 ) ___ 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 )
Re: [Zope] can't find template (newbie)
David, Look in portal_skins/portal_templates. The headers and footers are there. If you plan to customize a template you'll have to click the customize button. This will make a copy of the template in portal_skins/custom. After clicking the customize button the template will be opened in your browser at that directory. BTW, this question should have been asked in the Plone mailing list. Please join that mailing list and ask Plone specific questions there. You'll get prompt and courteous responses there as well :-) Cheers! Barry Drake --- David De Maeyer wrote: Hi all, I have been given to look at a website running on Zope for one of our partner. The site has been installed by a developer who since left that partner. The installation is as often undocumented which doesn't really help me getting through the setup. Zope 2.7.5 is installed, CMF 1.4 as well. All I need to do is to modify the address of our partner which appears at the bottom of page when you go on their home page. Simple... well I thought it would be... I did a search within the Zope file system on the server hoping I would find the template used to generate the index_html but I could't found any file containing the address but a siteroot_view.pt file. However this file doesn't seem to be the one I am looking for. I modified it, restarted Zope, checked the page (after cleaning my browser cache)... but I can't see the change I have made. I then logged on the CMS site to check if the footer could be changed from there; it cannot be changed. I can modify some portion of the page but not the footer. I then logged on the Zope Management Interface and tried to understand where the footer could be defined but with no success. Taking a look to the log files didn't help neither; Nor to the Zope/CMF manuals. I am basically out of ideas! Any help to figure out how to find that template will be appreciated!! Any idea where to locate that template or modify that template? Could it be that the template is only stored in the Zope DB and not accessible/visible as text file? I must have missed something... Best regards, David ___ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international. Téléchargez sur http://fr.messenger.yahoo.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 ) ___ 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 )
[Zope] TextIndexNG2 problems
I have PloneLocalFolderNG installed, which works great. But, I can't run python setup.py install for TextIndexNG2. I get the following error: running install running build running build_ext error: Python was built with version 6 of Visual Studio, and extensions need to be built with the same version of the compiler, but it isn't installed. The documentation says to install the win32 extensions, TextIndexNGExtensions-2.02.win32-py2.3.exe, so I did that. Still can't run the setup script. Any ideas? System: Zope 2.7.6-final, python 2.3.5, win32 Thanks. Barry Drake ___ 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 )
Re: [Zope] Zope Crashed please help!
Michael, I see that you found the problem. Just for the record, I had the same problem a couple of weeks ago (same symptoms anyway). I found some old debug code that was writing to a couple of page templates that I'd forgotten about. They had become quite large. After deleting them Zope/Plone performance was better than it had been for months. Lesson learned. Barry Drake --- Michael wrote: Hi, tomorrow the zope site we have been developing is going live, and all of a sudden, after months of development zope seems to have crashed! PLEASE HELP ME!! the web browser just keeps spinning when we call up the zope pages? no error messages or anything! could it have something to do with an updated version of pyOpenSSL.i386 installed (yum last night)? aarrgghh please tell me i haven't wasted all this time and will regret not using php!! :-) mike ___ 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 ) ___ 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 )
Re: [Zope] NauScheduler problem
Thank you. I certainly will check those out. Barry --- Chris Withers wrote: Barry Drake wrote: NauSchedule is a very cool product for scheduling automatic tasks, though there are only three sentences of documentation for installation. You may wish to have a look at Stepper and/or ZASync ;-) cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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 )
Re: [Zope] NauScheduler problem
Thanks Chris, This was solved a few days ago. Someone (sorry don't recall the name) on the list pointed me to the ScheduleList object created by NauSchedule at the root of Zope. After removing that, I was able to reenstall the product and start using it again. NauSchedule is a very cool product for scheduling automatic tasks, though there are only three sentences of documentation for installation. Cheers! Barry --- Chris Withers [EMAIL PROTECTED] wrote: Barry Drake wrote: Chris, Tried that first. The email on the page for this product returns and unknown recipient. Also, there is zero documentation. In that situation, I'd look for an alternative product ;-) What are you looking to do? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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 )
[Zope] NauScheduler problem
I'm getting an attribute error when I try to run Zope 2.7.6, which is occurring when NauScheduler starts up: AttributeError: ignoreLater I am using NauScheduler on other windows and unix systems. But have not seen this problem before. Can anyone help? Below is the traceback. Thanks. Barry Drake 2005-08-25T17:15:00 ERROR(200) Zope Couldn't install NauScheduler Traceback (most recent call last): File C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py, line 751, in install_product initmethod(context) File C:\Zope-Instance\Products\NauScheduler\__init__.py, line 59, in initialize schedule.ignoreLater() AttributeError: ignoreLater Traceback (most recent call last): File C:\Program Files\Zope-2.7.6-final\lib\python\Zope\Startup\run.py, line 50, in ? run() File C:\Program Files\Zope-2.7.6-final\lib\python\Zope\Startup\run.py, line 19, in run start_zope(opts.configroot) File C:\Program Files\Zope-2.7.6-final\lib\python\Zope\Startup\__init__.py, line 52, in start_zope starter.startZope() File C:\Program Files\Zope-2.7.6-final\lib\python\Zope\Startup\__init__.py, line 231, in startZope Zope.startup() File C:\Program Files\Zope-2.7.6-final\lib\python\Zope\__init__.py, line 47, in startup _startup() File C:\Program Files\Zope-2.7.6-final\lib\python\Zope\App\startup.py, line 96, in startup OFS.Application.initialize(application) File C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py, line 278, in initialize initializer.initialize() File C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py, line 305, in initialize self.install_products() File C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py, line 573, in install_products return install_products(app) File C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py, line 604, in install_products folder_permissions, raise_exc=debug_mode) File C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py, line 751, in install_product initmethod(context) File C:\Zope-Instance\Products\NauScheduler\__init__.py, line 59, in initialize schedule.ignoreLater() AttributeError: ignoreLater ___ 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 )
Re: [Zope] NauScheduler problem
Chris, Tried that first. The email on the page for this product returns and unknown recipient. Also, there is zero documentation. Thanks. Barry --- Chris Withers wrote: Hi Barry, Dunno what NauScheduler is, but you should contact the product author to find out what the problem is... cheers, Chris Barry Drake wrote: I'm getting an attribute error when I try to run Zope 2.7.6, which is occurring when NauScheduler starts up: AttributeError: ignoreLater I am using NauScheduler on other windows and unix systems. But have not seen this problem before. Can anyone help? Below is the traceback. Thanks. Barry Drake 2005-08-25T17:15:00 ERROR(200) Zope Couldn't install NauScheduler Traceback (most recent call last): File C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py, line 751, in install_product initmethod(context) File C:\Zope-Instance\Products\NauScheduler\__init__.py, line 59, in initialize schedule.ignoreLater() AttributeError: ignoreLater Traceback (most recent call last): File C:\Program Files\Zope-2.7.6-final\lib\python\Zope\Startup\run.py, line 50, in ? run() File C:\Program Files\Zope-2.7.6-final\lib\python\Zope\Startup\run.py, line 19, in run start_zope(opts.configroot) File C:\Program Files\Zope-2.7.6-final\lib\python\Zope\Startup\__init__.py, line 52, in start_zope starter.startZope() File C:\Program Files\Zope-2.7.6-final\lib\python\Zope\Startup\__init__.py, line 231, in startZope Zope.startup() File C:\Program Files\Zope-2.7.6-final\lib\python\Zope\__init__.py, line 47, in startup _startup() File C:\Program Files\Zope-2.7.6-final\lib\python\Zope\App\startup.py, line 96, in startup OFS.Application.initialize(application) File C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py, line 278, in initialize initializer.initialize() File C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py, line 305, in initialize self.install_products() File C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py, line 573, in install_products return install_products(app) File C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py, line 604, in install_products folder_permissions, raise_exc=debug_mode) File C:\Program Files\Zope-2.7.6-final\lib\python\OFS\Application.py, line 751, in install_product initmethod(context) File C:\Zope-Instance\Products\NauScheduler\__init__.py, line 59, in initialize schedule.ignoreLater() AttributeError: ignoreLater ___ 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 ) -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ 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 )
Re: [Zope] Re: NauScheduler problem
Josef, Thank you. I had done everything you mentioned, but didn't see the ScheduleList object located at the root level of Zope. Removing that solved the problem. Thanks again. Barry --- Josef Meile wrote: Hi Barry, I'm getting an attribute error when I try to run Zope 2.7.6, which is occurring when NauScheduler starts up: AttributeError: ignoreLater [...] schedule.ignoreLater() AttributeError: ignoreLater It means that the object schedule doesn't have or can't access a method called ignoreLater. With it can't access I mean that the object is there, but it is broken. Looking at the source code of the NauScheduler, I saw that the __init__.py file checks for an instance of the ScheduleList class, which has the same id and if I'm not wrong it is created the first time that you create a NauSchedulder object in the ZMI, then the absolute path of the new created object is added to a path list inside the ScheduleList object. So, it means that somehow you already tried to create a NauScheduler Object, but something when wrong causing either the creation of a broken object or the object wasn't created at all, but its path was stored in the ScheduleList. And I think that's why you get AttributeError: ignoreLater because None or a broken object don't have or can't access the ignoreLater method. So, my suggestion is: 1) Make a backup of your Data.fs 2) Remove the NauScheduler Product from your Products folder. 3) Restart Zope 4) Remove the NauScheduler objects 5) Remove the ScheduleList object. 6) Stop Zope 7) Move the NauScheduler again to the Products folder 8) Restart zope 9) Watch at the console to see if an error is printed 10) If no errors are printed, then try to create a NauScheduler object and see if it works. I am using NauScheduler on other windows and unix systems. But have not seen this problem before. Can anyone help? Below is the traceback. Another possibility is that you are using a Data.fs comming from a unix system into a Windows XP PC and somehow the import of the instances wasn't successful. If this is the case, the question is: did you make sure to first install all the products you are using in linux before moving the Data.fs? But I'm especulating here since you didn't give details about the installation (ie: was it a clean zope installation or did you migrate a Data.fs from unix to windows?) Regards, Josef ___ 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 ) ___ 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 )
Re: [Zope] NauSchduler problem
Dieter, Thank you. I replaced the call obj.absolute_url() with obj.getPhysicalPath() and prepended the portal URL in my code. That way the URL is not overwritten with the physical path by NauScheduler. Barry --- Dieter Maurer wrote: Barry Drake wrote at 2005-8-2 14:00 -0700: ... The Script Python that sends the digest works fine when tested alone, but when I run it from NS the URL, gotten from obj.absolute_url(), is replace with the physical path. And what is it otherwise? Note that absolute_url combines the physical path with request information. When you use it from the scheduler, there probably is not request. Therefore, you may get only the physical path part... -- Dieter ___ 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 )
Re: [Zope] Debugging a python routine
I use a Script Python that writes to a ZPT. It first reads the ZPT then appends new info; first with a time stamp, container info, and the message. This works from other Script Python objects or ZPTs. It's quick and dirty; but, I've been able to use it for most of my debugging. There are other methods mentioned in any book on Zope that are more powerful. I'm sure you'll receive responses with those suggestions as well. Barry Drake USDA --- John Poltorak wrote: Can anyone suggest how I would go about debugging a Python routine like this through Zope? span tal:define=opts python:here.lib.parse_file(file=here.members,sepr=',',clone=1) tal:block repeat=opt opts lia tal:content=python:opt[1] tal:attributes=href python:opt[0]/a/li /tal:block /span -- John ___ 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 ) ___ 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 )
Re: [Zope] Debugging a python routine
More info that may be of help: * Ken Manheimer's wiki on Zope debugging at zope.org: http://zope.org/Members/klm/ZopeDebugging/FrontPage * Ken's original paper on the matter: http://zope.org/Members/klm/ZopeDebugging/ConversingWithZope * A more advanced coverage of the matter at zopewiki.org: http://zopewiki.org/DebuggingZopeWithPythonDebugger2 I got these from here: http://docs.neuroinf.de/programming-plone/debug Cheers! Barry Drake --- John Poltorak wrote: Can anyone suggest how I would go about debugging a Python routine like this through Zope? span tal:define=opts python:here.lib.parse_file(file=here.members,sepr=',',clone=1) tal:block repeat=opt opts lia tal:content=python:opt[1] tal:attributes=href python:opt[0]/a/li /tal:block /span -- John ___ 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 ) ___ 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 )
[Zope] newbie question
I'm getting an error in CMFCore.utils in the _mergedLocalRoles function. The error is: Exception Type TypeError Exception Value can only concatenate tuple (not list) to tuple 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. Also, I added comments ahead of the line where the error occurs so that the line number should be higher than the original error line number. But, it's always the same. 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? 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? System: Zope 2.7.1, Plone 2.0.5, Python 2.3.4, Red Hat 7.2 Thank you. Barry Drake The traceback: Traceback (innermost last): Module ZPublisher.Publish, line 101, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Products.CMFFormController.ControllerPageTemplate, line 80, in __call__ Module Products.CMFFormController.BaseControllerPageTemplate, line 39, in _call Module Products.CMFFormController.ControllerBase, line 243, in getNext Module Products.CMFFormController.Actions.TraverseTo, line 36, in __call__ Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module Products.CMFFormController.ControllerPythonScript, line 159, in __call__ Module Shared.DC.Scripts.Bindings, line 306, in __call__ Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec Module Products.PythonScripts.PythonScript, line 323, in _exec Module None, line 19, in pag_edit - ControllerPythonScript at /Plone/pag_edit used for /Plone/Members/bldrake/privLinks.pag - Line 19 Module Products.CMFDefault.Document, line 192, in edit Module Products.CMFCore.CMFCatalogAware, line 69, in reindexObject Module Products.CMFCore.CatalogTool, line 262, in reindexObject Module Products.CMFCore.CatalogTool, line 235, in catalog_object Module Products.ZCatalog.ZCatalog, line 528, in catalog_object Module Products.ZCatalog.Catalog, line 381, in catalogObject Module Products.PluginIndexes.common.UnIndex, line 240, in index_object Module Products.PluginIndexes.KeywordIndex.KeywordIndex, line 61, in _index_object Module Products.PluginIndexes.KeywordIndex.KeywordIndex, line 94, in _get_object_keywords Module Products.CMFCore.CatalogTool, line 63, in allowedRolesAndUsers THE FOLLOWING ERROR SHOULD BE ON LINE 216 NOW, BUT HASN'T MOVED FROM THE ORIGINAL. Module Products.CMFCore.utils, line 215, in _mergedLocalRoles TypeError: can only concatenate tuple (not list) to tuple ___ 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 )
Re: [Zope] newbie question
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/ [EMAIL PROTECTED] / [EMAIL PROTECTED] ___ 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 ) ___ 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 )
Re: [Zope] newbie question
Thanks for your help. I really needed another brain to bounce things off of so I can get out of the rut I'm in. You've given me some fresh ideas to try. Thanks. Barry --- 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. 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/ [EMAIL PROTECTED] / [EMAIL PROTECTED] ___ 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 ) ___ 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 )