Bug in FileDirectoryView with INSTANCE_HOME on win?
Hello Has anybody a solution for to install a FileDirectoryView from CMF on win zope 2.6 with INSTANCE_HOME ? I think there is a bug. The FDV doesn't read the given INSTANCE_HOME path. Mit freundlichen Grüssen Roger Ineichen ___________________________ Projekt01 GmbH www.projekt01.ch Langackerstrasse 8 6330 Cham phone +41 (0)41 781 01 78 mobile +41 (0)79 340 52 32 fax +41 (0)41 781 00 78 email r.ineichen@projekt01.ch ___________________________ END OF MESSAGE
File directory views work fine with instance home and fine on windows. I have about 10 sandboxes and CMF sites. What is the exact problem? Are you sure you Zope has an INSTANCE_HOME? Go to the Control Panel and if you have INSTANCE_HOME registered it will show up there. -- Andy McKay www.agmweb.ca
I'm not sure if this is a Zope specific question or a mySQL question, but I'm asking here anyway. I created SQL Method that returns a list of tables from a db (SHOW tables, called sql_show_tables). Then I proceeded to create the usual <dtml-in> statement to spit the results out on a page. It didn't work. Well, it did it's job, but it didn't return table names, it returned something like this: '<r instance at 8de19e0>' for a table name. I've tried REQUEST.set'ing the query to an array and that didn't work either. Everything I've tried just gives me that string. What bugs me is that manage_test does the job fine in reporting the results, and I can't (and I don't have access to those files). Anyone have any ideas? ---colyn brown
From: "Andy McKay" <andy@agmweb.ca> Date: Wed, 20 Nov 2002 17:48:16 -0800 To: <r.ineichen@projekt01.ch>, <zope@zope.org> Subject: Re: [Zope] Bug in FileDirectoryView with INSTANCE_HOME on win?
File directory views work fine with instance home and fine on windows. I have about 10 sandboxes and CMF sites. What is the exact problem? Are you sure you Zope has an INSTANCE_HOME? Go to the Control Panel and if you have INSTANCE_HOME registered it will show up there. -- Andy McKay www.agmweb.ca
_______________________________________________ Zope maillist - Zope@zope.org 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 )
Nevermind, I figured it out. I was using <dtml-var sequence-item> to get the table name. I tried using <dtml-var sequence-key> just to see what would happen and it worked. I have no idea why, but it does. --colyn
From: Colyn Brown <colyn.brown@newtimes.com> Date: Wed, 20 Nov 2002 19:11:16 -0700 To: <zope@zope.org> Subject: [Zope] returning queries
I'm not sure if this is a Zope specific question or a mySQL question, but I'm asking here anyway.
I created SQL Method that returns a list of tables from a db (SHOW tables, called sql_show_tables). Then I proceeded to create the usual <dtml-in> statement to spit the results out on a page. It didn't work. Well, it did it's job, but it didn't return table names, it returned something like this: '<r instance at 8de19e0>' for a table name. I've tried REQUEST.set'ing the query to an array and that didn't work either. Everything I've tried just gives me that string. What bugs me is that manage_test does the job fine in reporting the results, and I can't (and I don't have access to those files). Anyone have any ideas?
---colyn brown
From: "Andy McKay" <andy@agmweb.ca> Date: Wed, 20 Nov 2002 17:48:16 -0800 To: <r.ineichen@projekt01.ch>, <zope@zope.org> Subject: Re: [Zope] Bug in FileDirectoryView with INSTANCE_HOME on win?
File directory views work fine with instance home and fine on windows. I have about 10 sandboxes and CMF sites. What is the exact problem? Are you sure you Zope has an INSTANCE_HOME? Go to the Control Panel and if you have INSTANCE_HOME registered it will show up there. -- Andy McKay www.agmweb.ca
_______________________________________________ Zope maillist - Zope@zope.org 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 )
_______________________________________________ Zope maillist - Zope@zope.org 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 )
Thanks for answer First I explain a litle bit more. Till zope 2.5.1 with CMF on win I used the PRODUCTS_PATH var. This was a very good way to separate the own products directories (more then one, checked out from own CVS's) form the hole zope installation. If I test my classes on a windows installation with a different zope, I have to put the own products directory in PRODUCTS_PATH. Result:Different zope use the same own products(more then one) directories, nothing more. Now with INSTANCE_HOME, SOFTWARE_HOME, ZOPE_HOME is it possible to use one different directory for the zope instance. This instance includes the var/data.fs. In this way it isn't possible to test my classes with different zope installation. Result: I have to put for all zope instance my products in the zope/lib/python/products folder. If I put my products in the folder located in the INSTANCE_HOME/Products it'works fine. This isn't the point. My problem is That since INSTANCE_HOME was different implemented, PRODUCTS_PATH dosn't work like before. How do other poeple develope and test on windows? Has anybody a solution for to separate the own products from zope, and just the own products. And share this own products to different zope versions? Mit freundlichen Grüssen Roger Ineichen ___________________________ Projekt01 GmbH www.projekt01.ch Langackerstrasse 8 6330 Cham phone +41 (0)41 781 01 78 mobile +41 (0)79 340 52 32 fax +41 (0)41 781 00 78 email r.ineichen@projekt01.ch ___________________________ END OF MESSAGE
-----Ursprüngliche Nachricht----- Von: Andy McKay [mailto:andy@agmweb.ca] Gesendet: Donnerstag, 21. November 2002 02:48 An: r.ineichen@projekt01.ch; zope@zope.org Betreff: Re: [Zope] Bug in FileDirectoryView with INSTANCE_HOME on win?
File directory views work fine with instance home and fine on windows. I have about 10 sandboxes and CMF sites. What is the exact problem? Are you sure you Zope has an INSTANCE_HOME? Go to the Control Panel and if you have INSTANCE_HOME registered it will show up there. -- Andy McKay www.agmweb.ca
Projekt01, Roger Ineichen wrote:
This isn't the point. My problem is That since INSTANCE_HOME was different implemented, PRODUCTS_PATH dosn't work like before.
INSTANCE_HOME has been around for a very long time. I don't think PRODUCTS_PATH works any differently now than it did in Zope 2.2.
How do other poeple develope and test on windows? Has anybody a solution for to separate the own products from zope, and just the own products. And share this own products to different zope versions?
I use INSTANCE_HOME and put my products in %INTSANCE_HOME%/Products and leave the Zope installation's Products directory well alone. cheers, Chris
Thanks for answer Pherhaps I mixed somthing, but I belive the concept don't works in the right way on windows. First one question, after I explain more about my problem step by step. I tried since a couple of weeks to explain my proplem and nobody understand my way. All the products and *_HOME path's work well, but I think the concept isn't well for to develope and test on windows. Witch data.fs is using form zope if I set INSTANCE_HOME ? The INSTANCE_HOME/var/data.fs ? I'm right? Or is there a way to use the C:\..\zopeInstallation\var\data.fs with INSTANCE_HOME? Mit freundlichen Grüssen Roger Ineichen ___________________________ Projekt01 GmbH www.projekt01.ch Langackerstrasse 8 6330 Cham phone +41 (0)41 781 01 78 mobile +41 (0)79 340 52 32 fax +41 (0)41 781 00 78 email r.ineichen@projekt01.ch ___________________________ END OF MESSAGE
-----Ursprüngliche Nachricht----- Von: Chris Withers [mailto:chrisw@nipltd.com] Gesendet: Freitag, 22. November 2002 11:05 An: r.ineichen@projekt01.ch Cc: 'Andy McKay'; zope@zope.org Betreff: Re: AW: [Zope] Bug in FileDirectoryView with INSTANCE_HOME on win?
Projekt01, Roger Ineichen wrote:
This isn't the point. My problem is That since INSTANCE_HOME was different implemented, PRODUCTS_PATH dosn't work like before.
INSTANCE_HOME has been around for a very long time. I don't think PRODUCTS_PATH works any differently now than it did in Zope 2.2.
How do other poeple develope and test on windows? Has anybody a solution for to separate the own products from zope, and just the own products. And share this own products to different zope versions?
I use INSTANCE_HOME and put my products in %INTSANCE_HOME%/Products and leave the Zope installation's Products directory well alone.
cheers,
Chris
Projekt01, Roger Ineichen writes:
Pherhaps I mixed somthing, but I belive the concept don't works in the right way on windows.
First one question, after I explain more about my problem step by step. I tried since a couple of weeks to explain my proplem and nobody understand my way. All the products and *_HOME path's work well, but I think the concept isn't well for to develope and test on windows.
Witch data.fs is using form zope if I set INSTANCE_HOME ? The INSTANCE_HOME/var/data.fs ? I'm right? Or is there a way to use the C:\..\zopeInstallation\var\data.fs with INSTANCE_HOME? I may have an easy work around:
Use "CLIENT_HOME" to locate "data.fs". This will currently not work, but it is a very simple change. It would be in "Zope/__init__.py". You would replace "Globals.data_dir" by "CLIENT_HOME". Be careful, PID's, logs and similar things are located, too, by means of "CLIENT_HOME". If this is a problem, choose a different environment variable. Dieter
participants (5)
-
Andy McKay -
Chris Withers -
Colyn Brown -
Dieter Maurer -
Projekt01, Roger Ineichen