Re: [Zope] Socket.Error
Hi, Matthias Füsting wrote: > > The other day I have change my hostname. > Today I have restart ZOPE and I get follow > Error-Message: > > 2000-08-30T20:12:44 PROBLEM(100) ZServer Computing default hostname > Traceback (innermost last): >File "/opt/zope/2-1-6/z2.py", line 493, in ? > logger_object=lg) >File "/opt/zope/2-1-6/ZServer/medusa/http_server.py", line 560, in __init__ > ip = socket.gethostbyname (socket.gethostname()) > socket.error: host not found Zope does a so called double-reverse lookup to make sure one can unduptfully reresolve the hostname to its ip-address again. It asks first for the name to the ip-address. Then it asks for the ip-address to this name. The question is, where did you change the name? In DNS you have to change it in both databases. Regards Tino Wildenhain ___ 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] SQL Methods
Hi Campaan, RC Compaan wrote: > > I have a sql method and a dtml method calling the sql method. They live in > the same folder and the dtml method's proxy roles are set. I've tried > everything and Zope tells me I don't have permission to do view the sql > result returned by the sql method. This worked fine in Zope 2.1.6 so I > guess it has something to do with the new security model. I also have > explicit ownership of all objects that I'm working with - still no luck. There was a bug in sql-methods returning subobjects without giving them the proper access rights. This was due to a change in the security mechanism on 2.2.x. The default policy is now: disallow everything as log as its not explicitely permittet. I would suggest to look for the patch on sql-methods or simply upgrade to the latest 2.2.1 where this (and much more) has already been fixed. Regards Tino Wildenhain ___ 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] Copying a dtml method when creating a ZClass instance
Hi, kamon ayeva wrote: > > I have several reasons whay I need to attach a template to each ZClass. > Among them are: > 1/ cases like high level folders where I might want to customize the page's > rendering and/or skin, > 2/ cases like contained objects which uses a generic skin (but you can still > customize the skin of one among them, if you want) > 3/ my site needs to be easily designed / modified by Web Designers that do > not understand Acquisition. Ah yes. But then, you throw all the advantages of aquisition away. I would suggest to at least copy the template only on request, if changes are really made. The 'web designers' should have the opportunity to delete this template to derive their design from the previus folder. This way you would not have all the templates laying around in every subfolder and making changes very very hard. An yes, this is understandable even by the underenlighted web designer ;-) Cheers Tino ___ 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 )
[Zope] Testing FastCGI
Hi, I have set up my Apache and ZOPE according to How-To. It looks okay to me. However, how can I know if my setup is correct. Is there any test FastCGI application I can simply drop it in and test out my system? Thanks Nicholas Lo ___ 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] Slow zope.org?
ethan mindlace fremen wrote: > > Short term, we will soon have a mirror of zope.org, which should reduce > the possibility of slowdown. What kind of mirroring? Something static, or something clever using ZEO? -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ 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] Re: HappySession
Hi! I do not have any reference to HappySession in my headers. I enclosed the session.set(..) in in order to catch the SessionNotFoundError, your slution just tests if the item exists in the session but does it prevent from the SessionNotFoundError exception? thanks phil *** REPLY SEPARATOR *** On 01.09.2000 at 08:15 Hung Jung Lu wrote: >>From: "Philipp Auersperg" <[EMAIL PROTECTED]> >> >>I also use HappySession and when catching the SessionNotFoundError >>weird things happen: >>here my code: >> >> >> >> >>session error! >> >> >>When the session is expired the error is not caught correctly and I get the >>error mentioned below. Plus, I have to restart my server because ZODB >>reports a transactional error and sets itself to read-only. > >I would guess you have the same problem as Diego Rodrigo... could you check >your standard_html_header? Does it make any reference to SESSION? > >One thing about HappySession is that I made it so no initialization is >required. So please do not call SESSION object in standard_html_header to >initialize it. (In the next release I'll make it safe even if someone calls >it in standard_html_header.) > >I will try to guess what you want to do: you want to initialize FLinkID at >the beginning of the session? If so, since HappySession's dictionary does >not require initialization, you can do something like: > > > > >... normal operation here ... > > >(If an item does not exist, SESSION['FLinkID'] returns ._None) > >regards, > >Hung Jung > >_ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > >Share information about yourself, create your own public profile at >http://profiles.msn.com. > > >___ >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 ) ___ 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] Testing FastCGI
-Original Message- From: Nicholas Lo <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Saturday, September 02, 2000 6:00 PM Subject: [Zope] Testing FastCGI >Hi, > >I have set up my Apache and ZOPE according to How-To. It looks okay to >me. However, how can I know if my setup is correct. Is there any test >FastCGI application I can simply drop it in and test out my system? > off the top of my head, not that i'm aware of. but you can see that it's working thru the apache access/error log >Thanks > >Nicholas Lo > >___ >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 ) ___ 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 )
[Zope] Who wants to do a decent ZCatalog Query Language?
Dieter Maurer wrote: > Chris Withers writes: > > Don't you wish there was a decent query language for ZCatalog so this > > kindof rediculous complexiting to achieve a simple outcome wasn't > > necessary? > I do -- but not enough to implement it ;-) Same here :-( I wonder if there's a standard search language/interface that ZCatalog could implement? I wonder if anyone could do it and then open source it? DC? If not, I wonder whether something like Cosource.com couldn't be leveraged to cough up funds so someone like Dieter, who has a lot of experience with the Catalog, could dedicate the the time to do it and make everyone happy? Here's hoping... Chris ___ 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 )
[Zope] Zope.org Mirroring
Steve Alexander wrote: > What kind of mirroring? > > Something static, or something clever using ZEO? AFAIK, ZEO doesn't currently have a distributed storage system, so anything other than a static mirror is still going to share a point of failure with Zope.org... That said, threads on the lists suggest that Zope sucks when you try to mirror it statically :( What to do? ;-) Chris ___ 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] Zope.org Mirroring
(sorry for jumping in here) [Chris Withers] | What to do? ;-) It might not be interesting, but what I would really like is a complete mirror of documentation and products up and running all the time. That could be done statically, even without Zope if it sucks that much. (Although, I can't see why it would in such a situation.) ___ 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] What's up with zope.org?
"Bak @ kedai" wrote: > > > >Aparently, our in-house MountedClientStorage (and the MountedDatabase) > >doesn't play nice with ZEO. So we've backed off of ZEO for the moment, > >pending the magic Jim touch. > >-- > so, if i use only ZEO, it should be a problem then? > If you're not using the mountedclientstorage or trying to serve more than one database out of ZEO, you shouldn't be having problems. ___ 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 )
[Zope] confirm
confirm 723772
[Zope] PCGI not working --isolated cause!
OK, after being much frustrated with PCGI/ZServer (I run ZServer, and talk to it both direct to port (management), and from Roxen through PCGI), not working. I found the 'problem'. This works: = #! /bin/sh reldir=`dirname $0` PYTHONHOME=`cd $reldir; pwd` export PYTHONHOME exec /usr/bin/python \ $PYTHONHOME/z2-2.2.py \ -m '' -f '' -w6001 -d 127.0.0.1 This Does not: #! /bin/sh reldir=`dirname $0` PYTHONHOME=`cd $reldir; pwd` export PYTHONHOME exec /usr/bin/python \ $PYTHONHOME/z2-2.2.py \ -X -w6001 -d 127.0.0.1 == The difference is in the port options passed to z2.py. If you use the new -X, it shuts of pcgi. If you use the old -m '' -f '' (fo ronly running web), it works. -- Do not meddle in the affairs of sysadmins, for they are easy to annoy, and have the root password. ___ 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 )
[Zope] Can you send me LoadSite ?
Hi guys, Anyone here would like to send me the program loadsite via email, by attachment, please? There is a problems with the current loadsite at zope.com, I'm getting this problem: "Error reading header after processing 0 entries" So if you could send me your files via email, I would greatly appreciate. I'm waiting a reply from Itamar since 3 weeks, and I cannot continue to make B2BEmerging.com and MEMSCenter.com --Jon ___ 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 )
[Zope] Oracle DB Connection
I have tried to install the ZOracleDA product for Zope and there is a little broken box to the product listing which I am assuming meens it is not working. I also get an error that says. ZOracleDA Import Traceback Traceback (innermost last): File "C:\PROGRA~1\QUESTC~1\lib\python\OFS\Application.py", line 396, in import_products product=__import__(pname, global_dict, global_dict, silly) File "C:\PROGRA~1\QUESTC~1\lib\python\Products\ZOracleDA\__init__.py", line 91, in ? import DA File "C:\PROGRA~1\QUESTC~1\lib\python\Products\ZOracleDA\DA.py", line 91, in ? from db import DB File "C:\PROGRA~1\QUESTC~1\lib\python\Products\ZOracleDA\db.py", line 89, in ? import DCOracle, DateTime File "C:\PROGRA~1\QUESTC~1\lib\python\Products\ZOracleDA\DCOracle\__init__.py", line 52, in ? import sys, Buffer ImportError: No module named Buffer I am using Zope 2.2.1, is there another module I should be using or is this the right one? - Bryan Patrick Coleman Questcon Technologies (336)273-2428 ext-416 [EMAIL PROTECTED] ___ 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 )
[Zope] How to access id and title of document calling standard_html_header
For those of you who saw my posts from a couple of days ago (Dieter Maurer and Geir Bfkholt), this is the question that I think I should have been asking in the first place. I have a standard_html_header that is inserted into Zclasses. These Zclasses have properties including meta_author, meta_description etc (I don't think it is important what they are, just that they are properties that standard_html_header does not have). In the standard_html_header, I use code such as and . This works fine and the properties of the *zclass* are inserted. However, if I put into the standard_html_header, I get the id of standard_html_header, *not* of the zclass. How do I tell zope to which item I am refering (bearing in mind, I don't know the name of the zclass ie it is variable)? Cheers tim ps. As a workaround, I have simply given my zclasses an alternative property (counter_id) that I make the same as the real id, but this seems to be a clumsy way of doing it. ___ 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 )
[Zope] How to access id and title of document calling standard_html_header
For those of you who saw my posts from a couple of days ago (Dieter Maurer and Geir Bfkholt), this is the question that I think I should have been asking in the first place. I have a standard_html_header that is inserted into Zclasses. These Zclasses have properties including meta_author, meta_description etc (I don't think it is important what they are, just that they are properties that standard_html_header does not have). In the standard_html_header, I use code such as and . This works fine and the properties of the *zclass* are inserted. However, if I put into the standard_html_header, I get the id of standard_html_header, *not* of the zclass. How do I tell zope to which item I am refering (bearing in mind, I don't know the name of the zclass ie it is variable)? Cheers tim ps. As a workaround, I have simply given my zclasses an alternative property (counter_id) that I make the same as the real id, but this seems to be a clumsy way of doing it. ___ 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] How to access id and title of document calling standard_html_header
Tim Hicks wrote: > > For those of you who saw my posts from a couple of days ago (Dieter > Maurer and Geir Bfkholt), this is the question that I think I should > have been asking in the first place. > > I have a standard_html_header that is inserted into Zclasses. These > Zclasses have properties including meta_author, meta_description etc > (I don't think it is important what they are, just that they are > properties that standard_html_header does not have). In the > standard_html_header, I use code such as and > . This works fine and the properties of > the *zclass* are inserted. However, if I put into the > standard_html_header, I get the id of standard_html_header, *not* of > the zclass. How do I tell zope to which item I am refering (bearing > in mind, I don't know the name of the zclass ie it is variable)? > > Cheers Make your standard_html_header a DTML Method not a Document. Methods operate on their containers. Documents operate on themselves. The Document is acquiring the ZClass properties after looking through its own. The Method looks for the properties of its containers. Kapil ___ 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] ZCatalog in 2.2.x
What is the actual word you're looking for? 'blah'? Terry Kerr wrote: > > Hi, > > I can rebuild indexes and recatalog etc, it doesn't change anything. I > don't see how it could change anything...it is a brand new zcatalog > instance. Simply, the ZCatalog is created, the indexes are created, and > the zcatalog is initially empty. Then I create one CatalogAware object, > and it catalogs itself. I can see this object in the catalog, and I can > see the textindexed words in the vocabulary. But when I search for a word > in the vocabulary using a textindex (which obviously belongs to the only > object in the catalog), I get an empty result. The only way I can get a > non empty result it to search for the id of the object or one other > property I have which are indexed as field indexes. > > The product I am working on is Etailer. If anyone is kind enough to take a > look, you can download it at http://e-tailer.adriot.net/download.html. The > function that does the search is searchFor(), at line 419 of Etailer.py. > Creating an instance of etailer in 2.1.6 works fine, but creating an > instance of etailer in 2.2.x and the catalog doesn't work. > > i am very confused ;-). > > Chris McDonough wrote: > > > This is not right, obviously. Can you rebuild your indexes (by deleting > > and reentering them), recatalog, and see if the problem goes away? We > > haven't had any colluding reports of something like this, and I'm using > > the 2.2.1 catalog with textindexes successfully on a customer project. > > > > > -Original Message- > > > From: Terry Kerr [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, August 30, 2000 3:27 AM > > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > > > Subject: Re: [Zope] ZCatalog in 2.2.x > > > > > > > > > I am not searching from a form in that sense...I am talking > > > about at the python > > > level. > > > > > > I have self.searchResults({'description':'blah'}) where > > > description is meta > > > data in the catalog and a textindex and 'blah' is in the > > > Vocabulary. This > > > previously worked in zope2.1.6. Now in 2.2.0 and 2.2.1 it > > > doesn't work. The > > > only thing way I can get searchResults() to return a non > > > empty list is to search > > > using a Field index and a valid string to match with. > > > > > > > > > [EMAIL PROTECTED] wrote: > > > > > > > Terry Kerr <[EMAIL PROTECTED]> said: > > > > > > > > > Hi, > > > > > > > > > > I have a python product which uses a ZCatalog and CatalogAware > > > > > products. The catalog has a number of Field and > > > TextIndex indexes. > > > > > Search the ZCatalog has worked fine when my product is > > > instantiated in > > > > > 2.1.6. But now when I instantiate my product in 2.2.0 or 2.2.1, > > > > > searching only works when I search using a field index. > > > Searching using > > > > > a textindex always results in an empty result, even tho I > > > can see the > > > > > words I am searching for in the Vocabulary! Any > > > suggestions? I have > > > > > tried reindexing, completey recreating the Zcatalog, > > > recreating the > > > > > Vobulary and reindexing, and nothing has changed the > > > behaviour. Are > > > > > textindexes simply broken? > > > > > > > > > > > > > > > ZCatalog seems very volatile to me! Every time I have > > > upgraded way back > > > > > from zope2.1.3, something in zcatalog has changed and > > > boken my product. > > > > > So far I have managed to find fixes, but this one has got > > > me baffled!! > > > > > > > > > > > > > My experience has been that if field indexes are > > > unspecified, the catalog > > > > will only match where those fields are empty. In other > > > words, by not > > > > specifing anything for the field indexes, you are actually > > > specifying that > > > > for a match, they need to be empty. > > > > To get around this, I put another method between the form > > > for entering what > > > > you wish to search for, and the method that actually > > > searches the form. This > > > > method looks at the field indexes, and if nothing has been > > > specified, it > > > > doesn't pass them on to the method that does the actual search. > > > > An alternative to this, is to use names for the field > > > indexes that aren't in > > > > the catalog index, and then at the start of the search > > > method, check those > > > > names, and if they have a value associated with them, add > > > to REQUEST what the > > > > names in the index are with the appropriate values. > > > > > > > > There may be a better way, I'm still pretty new to Zope and > > > DTML sort of > > > > stuff. > > > > > > > > Peter Armstrong > > > > > > -- > > > Terry Kerr ([EMAIL PROTECTED]) > > > Adroit Internet Solutions Pty Ltd (www.adroit.net) > > > Phone: +613 9563 4461 > > > Fax: +613 9563 3856 > > > Mobile: +61 414 938 124 > > > ICQ: 79303381 > > > > > > > > > > > > > > > ___ > > > Zope maillist - [EMAIL PROTECTED] > > > http://lists.zo
[Zope] Ad banners in Zope anyone ?
Hello I am glad to see any new web site anoncements using Zope. For example the new Malaysian news service at http://www.emedia.com.my/ Out of curiosity I checked to see how they handled their ad banners: It looks like this is perhaps some instant cut-and-paste of exsiting PHP tools tacked onto the Zope Server. If it ain't broke don't fix it..and DTML aint pretty we know.. - Can one run PHP from inside of Zserver/ZODB easily? - How would to do that? - Is anyone using Zope for Ad Banner services?? - What would would make it a good or bad choice? thanks Jason Jason CUNLIFFE = NOMADICS.(Interactive Art and Technology).Design Director ___ 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] How to access id and title of document calling standard_html_header
- Original Message - From: "Kapil Thangavelu" <[EMAIL PROTECTED]> To: "Tim Hicks" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, September 02, 2000 3:59 PM Subject: Re: [Zope] How to access id and title of document calling standard_html_header > Tim Hicks wrote: > > > > For those of you who saw my posts from a couple of days ago (Dieter > > Maurer and Geir Bfkholt), this is the question that I think I should > > have been asking in the first place. > > > > I have a standard_html_header that is inserted into Zclasses. These > > Zclasses have properties including meta_author, meta_description etc > > (I don't think it is important what they are, just that they are > > properties that standard_html_header does not have). In the > > standard_html_header, I use code such as and > > . This works fine and the properties of > > the *zclass* are inserted. However, if I put into the > > standard_html_header, I get the id of standard_html_header, *not* of > > the zclass. How do I tell zope to which item I am refering (bearing > > in mind, I don't know the name of the zclass ie it is variable)? > > > > Cheers > > > Make your standard_html_header a DTML Method not a Document. Methods > operate on their containers. Documents operate on themselves. The > Document is acquiring the ZClass properties after looking through its > own. The Method looks for the properties of its containers. > > Kapil > It is a method already! Any ideas. If it makes any difference, I'm running Zope 2.2.0 (although I really don't think this is important). tim ___ 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] ZCatalog in 2.2.x
any word...however, i fixed the problem thanks. to Dieter Maurer Chris McDonough wrote: > What is the actual word you're looking for? 'blah'? > > Terry Kerr wrote: > > > > Hi, > > > > I can rebuild indexes and recatalog etc, it doesn't change anything. I > > don't see how it could change anything...it is a brand new zcatalog > > instance. Simply, the ZCatalog is created, the indexes are created, and > > the zcatalog is initially empty. Then I create one CatalogAware object, > > and it catalogs itself. I can see this object in the catalog, and I can > > see the textindexed words in the vocabulary. But when I search for a word > > in the vocabulary using a textindex (which obviously belongs to the only > > object in the catalog), I get an empty result. The only way I can get a > > non empty result it to search for the id of the object or one other > > property I have which are indexed as field indexes. > > > > The product I am working on is Etailer. If anyone is kind enough to take a > > look, you can download it at http://e-tailer.adriot.net/download.html. The > > function that does the search is searchFor(), at line 419 of Etailer.py. > > Creating an instance of etailer in 2.1.6 works fine, but creating an > > instance of etailer in 2.2.x and the catalog doesn't work. > > > > i am very confused ;-). > > > > Chris McDonough wrote: > > > > > This is not right, obviously. Can you rebuild your indexes (by deleting > > > and reentering them), recatalog, and see if the problem goes away? We > > > haven't had any colluding reports of something like this, and I'm using > > > the 2.2.1 catalog with textindexes successfully on a customer project. > > > > > > > -Original Message- > > > > From: Terry Kerr [mailto:[EMAIL PROTECTED]] > > > > Sent: Wednesday, August 30, 2000 3:27 AM > > > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > > > > Subject: Re: [Zope] ZCatalog in 2.2.x > > > > > > > > > > > > I am not searching from a form in that sense...I am talking > > > > about at the python > > > > level. > > > > > > > > I have self.searchResults({'description':'blah'}) where > > > > description is meta > > > > data in the catalog and a textindex and 'blah' is in the > > > > Vocabulary. This > > > > previously worked in zope2.1.6. Now in 2.2.0 and 2.2.1 it > > > > doesn't work. The > > > > only thing way I can get searchResults() to return a non > > > > empty list is to search > > > > using a Field index and a valid string to match with. > > > > > > > > > > > > [EMAIL PROTECTED] wrote: > > > > > > > > > Terry Kerr <[EMAIL PROTECTED]> said: > > > > > > > > > > > Hi, > > > > > > > > > > > > I have a python product which uses a ZCatalog and CatalogAware > > > > > > products. The catalog has a number of Field and > > > > TextIndex indexes. > > > > > > Search the ZCatalog has worked fine when my product is > > > > instantiated in > > > > > > 2.1.6. But now when I instantiate my product in 2.2.0 or 2.2.1, > > > > > > searching only works when I search using a field index. > > > > Searching using > > > > > > a textindex always results in an empty result, even tho I > > > > can see the > > > > > > words I am searching for in the Vocabulary! Any > > > > suggestions? I have > > > > > > tried reindexing, completey recreating the Zcatalog, > > > > recreating the > > > > > > Vobulary and reindexing, and nothing has changed the > > > > behaviour. Are > > > > > > textindexes simply broken? > > > > > > > > > > > > > > > > > > ZCatalog seems very volatile to me! Every time I have > > > > upgraded way back > > > > > > from zope2.1.3, something in zcatalog has changed and > > > > boken my product. > > > > > > So far I have managed to find fixes, but this one has got > > > > me baffled!! > > > > > > > > > > > > > > > > My experience has been that if field indexes are > > > > unspecified, the catalog > > > > > will only match where those fields are empty. In other > > > > words, by not > > > > > specifing anything for the field indexes, you are actually > > > > specifying that > > > > > for a match, they need to be empty. > > > > > To get around this, I put another method between the form > > > > for entering what > > > > > you wish to search for, and the method that actually > > > > searches the form. This > > > > > method looks at the field indexes, and if nothing has been > > > > specified, it > > > > > doesn't pass them on to the method that does the actual search. > > > > > An alternative to this, is to use names for the field > > > > indexes that aren't in > > > > > the catalog index, and then at the start of the search > > > > method, check those > > > > > names, and if they have a value associated with them, add > > > > to REQUEST what the > > > > > names in the index are with the appropriate values. > > > > > > > > > > There may be a better way, I'm still pretty new to Zope and > > > > DTML sort of > > > > > stuff. > > > > > > > > > > Peter Armstrong > > > > > > > > -- > > > > Terry Kerr ([EMAIL PROTECTE
Re: [Zope] Can you send me LoadSite ?
Jonathan Desp wrote: > Anyone here would like to send me the program loadsite via email, by > attachment, please? Why not just search the mailing list archives? > I'm waiting a reply from Itamar since 3 weeks, and I cannot continue to make > B2BEmerging.com and MEMSCenter.com Maybe Itamar has his own work to do?! Chris ___ 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] Can you send me LoadSite ?
- Original Message - From: "Chris Withers" <[EMAIL PROTECTED]> To: "Jonathan Desp" <[EMAIL PROTECTED]> Cc: "zope zope zope" <[EMAIL PROTECTED]> Sent: Saturday, September 02, 2000 7:06 PM Subject: Re: [Zope] Can you send me LoadSite ? > Jonathan Desp wrote: > > Anyone here would like to send me the program loadsite via email, by > > attachment, please? > > Why not just search the mailing list archives? I did, there is no attachment of loadsite... do you have it in your computer? why don't you email it to me right now, and then I'll stop to waste my time. please, email me the program. > > > I'm waiting a reply from Itamar since 3 weeks, and I cannot continue to make > > B2BEmerging.com and MEMSCenter.com > > Maybe Itamar has his own work to do?! I think so. but why you are saying that? it's desctructive.. > > Chris > ___ 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 )
[Zope] Anyone has LoadSite please?
Hi, Anyone can give me LoadSite by email please? We cannot get it from zope.org site. so if you have the files of the program called LoadSite, then you know what to do :) Just give it to Jonathan! :) --Jon ___ 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 )
[Zope] ANN: NewsCenter0.1.0
available @ http://www.zope.org/Members/k_vertigo/ZopeProducts/NewsCenter from the README Current Status: - I've realized that Zope sites tend to keep user info in a variety of formats, so rather than reduplicating that info within NewsCenter, I've implemented a hook get_syndicated_content(channel_ids, lastdate=None) which will retrieve all the items of a channel that are newer than lastdate. if lastdate is none it retrieves all items from the last 24 hrs. this hook can be used to build syndicated content in the form of user pages and emails. - NewsCenter supports aggregate channels in the ocs format. - NewsCenter support searching of channels. - NewsCenter supports channels in the RSS format version (0.9-1.0) - i've imported over 1965 channels using ocs files from http://www.xmltree.com/export/ocs.cfm and http://www.moreover.com/categories/ocs/ocsdirectory.rdf from the CHANGES file version 0.1.0 The Birthday Boy Release - THIS RELEASE IS NOT BACKWARDS COMPATIBLE - This release has been tested on zope 2.2.0 and 2.2.1 on linux if there are any problems running it on windows please let me know ([EMAIL PROTECTED]) - Channel.py has undergone massive changes - no longer uses XMLDocument, hence XMLDoc. is not required - implements syndicated content hook - supports all RSS versions (0.9-1.0) - no longer registered as a top level class - implements image tags of RSS (only for v.91+) - no longer causes ZCatalog to throw spurious errors on intial update() - renamed to remove references to rss - NewsCenter.py - ocs channels maybe added from filesystem. - returns elasped time on most actions of management view- channels tab. - implements syndicated content hook (see README for more info) - minor changes to management interface to support 1K+ channels - internal storage renamed to remove references to rss - The product is now released under one license the LGPL - total channel count i've gotten is up to 1965 (albeit with some duplication). Cheers, Kapil ___ 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] Ad banners in Zope anyone ?
-Original Message- From: Jason Cunliffe <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Sunday, September 03, 2000 5:01 AM Subject: [Zope] Ad banners in Zope anyone ? >Hello > >I am glad to see any new web site anoncements using Zope. >For example the new Malaysian news service at http://www.emedia.com.my/ > >Out of curiosity I checked to see how they handled their ad banners: >border="0" width="468" height="60"> > >It looks like this is perhaps some instant cut-and-paste of exsiting PHP >tools tacked onto the Zope Server. this a temporary measure until we got a "real(?)" banner ad system. at the time of development, there was no banner ad system in zope that can furnish us some stats that we can give to advertisers. although later there was banner system (a zope product), we just got stuck with phpads. we have now real media installed, and will be replacing phpads with it. >If it ain't broke don't fix it..and DTML aint pretty we know.. > >- Can one run PHP from inside of Zserver/ZODB easily? >- How would to do that? >- Is anyone using Zope for Ad Banner services?? >- What would would make it a good or bad choice? > my take: sales dept and upper management needed a proven system that can give advertisers assurance that advertisers got what they asked for. and banner system, though a good product, can't give us what real media can; in terms of stats and other stuff. so, we forked some dough to get some dough in :) but i'm still looking at banner system. >thanks >Jason > >Jason CUNLIFFE = NOMADICS.(Interactive Art and Technology).Design Director > > > >___ >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 ) ___ 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 )
[Zope] Generic workflow
As I saw during the last days there is a big interest for generic workflow. There is an open source project called wftk: Open-source workflow toolkit (http://www.vivtek.com/wftk). Currently it's Tcl/C based with XML as description language. Maybe we could pull together our resources and finish it on a Zope/Python platform. I already contact the developer and waiting for a response. Arno Gross email: [EMAIL PROTECTED]