[Zope] porting from Python Methods to PythonScripts in 2.3.0; LoginManager too
I just installed Zope 2.3.0 and I'm planning how to port my sites from 2.2.5. It looks like I'll have to: + Copy over the Products I installed, _except_ + Don't copy over SiteAccess and PythonMethods. + Delete the PythonMethods product from the Control_Panel/Products management folder. Will I have to manually convert each existing Python Method to a PythonScript, or are they essentially the same type? I haven't been able to test what happens yet, because all my existing Python Methods relate to LoginManager and I haven't been able to get the LoginManager product to initialize correctly in 2.3.0. I followed the first two steps above and copied over my data.fs. It comes up cleanly except for an exception while loading the LoginManager and some ZClass problems for ZClasses that depend on LoginManger. The exception is this: -- 2001-01-29T16:57:02 ERROR(200) Zope Couldn't import Products.LoginManager Traceback (innermost last): File E:\PROGRA~1\Zope230\lib\python\OFS\Application.py, line 530, in import_products (Object: string) File E:\PROGRA~1\Zope225\lib\python\Products\LoginManager\__init__.py, line 1, in ? File E:\PROGRA~1\Zope225\lib\python\Products\LoginManager\LoginManager.py, line 121, in ? InstallError: No access file found at E:\Program Files\Zope230 - see INSTALL.txt -- Can someone help me understand this? The two INSTALL.txt files under Zope230 offer no clues. It's odd that the exception stack shows it executing code from my older Zope225 installation. How the heck can that happen? Is that some bug in Python? There's nothing in my environment that mentions Zope225, and I dumped sys.path late in z2.py and it looks fine. I tried deleting the LoginManager product from the management interface and restarting, but the same exception occurs. I do notice that, unlike prior Zope installs, there is no 'access' file in the Zope root. Oops, I just saw another message about LoginManager not yet working in Zope 2.3. If that's so, it's a show-stopper for me. -- Fred Yankowski [EMAIL PROTECTED] tel: +1.630.879.1312 Principal Consultant www.OntoSys.com fax: +1.630.879.1370 OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] porting from Python Methods to PythonScripts in 2.3.0; LoginManager too
From: "Fred Yankowski" [EMAIL PROTECTED] + Don't copy over SiteAccess and PythonMethods. + Delete the PythonMethods product from the Control_Panel/Products management folder. Will I have to manually convert each existing Python Method to a PythonScript, or are they essentially the same type? They are radically different types, and can therefore live in the same Zope, side-by-side, without conflicting. There is no automatic conversion process. Simply keep PythonMethods installed, and replace individual Methods with Scripts as you feel the need. Cheers, Evan @ digicool 4-am ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] porting from Python Methods to PythonScripts in 2.3.0; LoginManager too
After browsing the Zope-dev list (I guess that's _yet another_ list I need to follow) I found a note about creating the 'access' file manually with zpasswd.py. After doing that, LoginManager seems to come up cleanly in Zope 2.3.0. And now I can see that my Python Methods come in broken, apparently because they depend on the PythonMethods product that I didn't carry over. So I guess I'll have to have to install PythonMethods and port over those methods manually to Python Scripts. Rats. I'm just glad I didn't have too much invested into PythonMethods. -- Fred Yankowski [EMAIL PROTECTED] tel: +1.630.879.1312 Principal Consultant www.OntoSys.com fax: +1.630.879.1370 OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] porting from Python Methods to PythonScripts in 2.3.0;LoginManager too
From: "Jim Washington" [EMAIL PROTECTED] Standard caveats, YMMV, etc, but it does a quick pass on the Methods in the folder where it is and makes Scripts from them when you hit the 'test' tab, saving the old ones as methodname.old. Excellent! Thanks for writing and sharing this -- it looks like a fine candidate for a HOWTO. Cheers, Evan @ digicool 4-am ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )