[Zope-dev] Re: Python warnings behavior and stacklevel=2
Stefan H. Holek wrote: This turned out to be a bug in FSPythonScripts (no __file__ in script globals). Fixed on all branches of CMF = 1.5. Great ! Thanks. J. On 13. Feb 2006, at 16:48, Julien Anguenot wrote: Florent Guillaume wrote: Julien Anguenot wrote: Tim Peters wrote: [Julien Anguenot] I'm having some problems with the warnings module behavior. (Python-2.4.2 and Zope-2.9 trunk) [... traceback ... ] - Line 71 Module zLOG, line 140, in LOG Module warnings, line 61, in warn Module warnings, line 67, in warn_explicit TypeError: unsubscriptable object I've had this too, and I believe it appears if you have a frame referencing a python script (or maybe an external method) in the stack. You'll get the error if you run the CPSDefaul tests against a Zope-2.9 branch, for instance. -- Anything that happens, happens. --Douglas Adams -- Julien Anguenot | Nuxeo RD (Paris, France) CPS Platform : http://www.cps-project.org Zope3 / ECM : http://www.z3lab.org mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66 signature.asc Description: OpenPGP digital signature ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: merge zope-dev and zope3-dev?
Philipp von Weitershausen wrote: We'd have to declare the zope3-dev list for obsolete and make people not send messages to it. We'd just have to define a date and time. All subsequent mail traffic would be handled by zope-dev. Okay, who actually makes this call and how to we set a date? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: [Zope3-dev] Re: merge zope-dev and zope3-dev?
On Feb 17, 2006, at 6:26 PM, Chris Withers wrote: Philipp von Weitershausen wrote: We'd have to declare the zope3-dev list for obsolete and make people not send messages to it. We'd just have to define a date and time. All subsequent mail traffic would be handled by zope-dev. Okay, who actually makes this call and how to we set a date? Only you and Philipp were excited about this. Not sure that constitutes a ringing endorsement. Maybe others will chime in now. FWIW, I'm -0. Gary ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: [Zope3-dev] Re: merge zope-dev and zope3-dev?
Gary Poster wrote: On Feb 17, 2006, at 6:26 PM, Chris Withers wrote: Philipp von Weitershausen wrote: We'd have to declare the zope3-dev list for obsolete and make people not send messages to it. We'd just have to define a date and time. All subsequent mail traffic would be handled by zope-dev. Okay, who actually makes this call and how to we set a date? Only you and Philipp were excited about this. Not sure that constitutes a ringing endorsement. Maybe others will chime in now. FWIW, I'm -0. Same here. -- Benji York Senior Software Engineer Zope Corporation ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: [Zope3-dev] merge zope-dev and zope3-dev?
On 2/16/06, Chris Withers [EMAIL PROTECTED] wrote: To be clear: I'm talking _only_ about merging the dev lists, _not_ the user lists. The users lists are still largely independent, but it seems like just about every post to the dev list now has a bearing on both Zope 2 and Zope 3, especially as they become closer and closers... -1 -Fred -- Fred L. Drake, Jr.fdrake at gmail.com There is no wealth but life. --John Ruskin ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: [Zope3-dev] Re: merge zope-dev and zope3-dev?
if we're voting, I'm +0. -- Paul Winkler http://www.slinkp.com ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Re: [Zope3-dev] Re: merge zope-dev and zope3-dev?
Gary Poster wrote: On Feb 17, 2006, at 6:26 PM, Chris Withers wrote: Philipp von Weitershausen wrote: We'd have to declare the zope3-dev list for obsolete and make people not send messages to it. We'd just have to define a date and time. All subsequent mail traffic would be handled by zope-dev. Okay, who actually makes this call and how to we set a date? Only you and Philipp were excited about this. Not sure that constitutes a ringing endorsement. Maybe others will chime in now. I'm +10 too. I'd like to see this happen before the end of the year. Jim -- Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! CTO (540) 361-1714http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope] Zope scheduling problem
Hello, I'm not sure if this is the correct forum for my question. I'm running Zope 2.9.0 (though I've tried it on 2.8.5, with the same problem). I have a Python script in a Zope folder that checks a specified email address, packages all the emails and attachments, and adds them into a PloneArticle running on a Plone site. It finds the correct PloneArticle to add the item into, by doing a ZCatalog search (on the Plone portal_catalog). This works properly when I run the script myself. The user I run this as has the Manager role. I've set a proxy for the script so it runs as a Manager. However, when I set a ZopeScheduler to run this script, I get an error where the ZCatalog doesn't find any results when I search for the PloneArticle instance. Now the article I am searching for is catalogued, so I'm not sure why this is happening. This may be a problem with ZopeScheduler, or with Plone's catalog. Not sure which. Any assistance would be appreciated. Nick ___ 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] Re: Zope scheduling problem
Nicholas Watmough napisaĆ(a): Hello, I'm not sure if this is the correct forum for my question. I'm running Zope 2.9.0 (though I've tried it on 2.8.5, with the same problem). I have a Python script in a Zope folder that checks a specified email address, packages all the emails and attachments, and adds them into a PloneArticle running on a Plone site. It finds the correct PloneArticle to add the item into, by doing a ZCatalog search (on the Plone portal_catalog). This works properly when I run the script myself. The user I run this as has the Manager role. I've set a proxy for the script so it runs as a Manager. However, when I set a ZopeScheduler to run this script, I get an error where the ZCatalog doesn't find any results when I search for the PloneArticle instance. Now the article I am searching for is catalogued, so I'm not sure why this is happening. This may be a problem with ZopeScheduler, or with Plone's catalog. Not sure which. Any assistance would be appreciated. Nick Hi, The problem is with portal_catalog. See/apply this patch http://www.zope.org/Collectors/CMF/380 Pawel ___ 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 2.9 and SSL
On 2/16/06, Ron Bickers [EMAIL PROTECTED] wrote: On Thu February 16 2006 03:31, you wrote: http://www.lighttpd.net/ How many millions of people use this a day? I have no idea. Far less than use Apache, of course, but the number appears to be growing steadily. The netcraft survey for February counted 21699 instances of lighttpd; Zope was counted 41656 times: http://survey.netcraft.com/Reports/200602/ The numbers are those seen by Netcraft during January. -- Martijn Pieters ___ 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 2.9 and SSL
On Fri February 17 2006 04:32, Martijn Pieters wrote: The netcraft survey for February counted 21699 instances of lighttpd; Zope was counted 41656 times: http://survey.netcraft.com/Reports/200602/ The numbers are those seen by Netcraft during January. Lighttpd is barely three years old. It'll be interesting to see where these numbers are in another year. I noticed that my lighttpd server that proxies to Zope responds as Zope/ZServer, not lighttpd. If I recall, Apache said Apache. There must be many more Zopes than netcraft shows, right? -- Ron ___ 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: Zope scheduling problem
Uhm, you sure this patch is a good idea? Why not use portal_catalog.unrestrictedSearchResults? Stefan On 17. Feb 2006, at 10:14, Pawel Lewicki wrote: Hi, The problem is with portal_catalog. See/apply this patch http://www.zope.org/Collectors/CMF/380 Pawel -- Anything that happens, happens. --Douglas Adams ___ 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] Error Value: 'File' object has no attribute 'manage_fixupOwnershipAfterAdd'
Roman Klesel wrote: form OFS.Image import File - I build a class _File(File): I really doubt you need to do that... - pimped it up a little bit. What, specifically, did you add? - _setObject'ed it You shouldn't be calling that directly... 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] Error Value: 'File' object has no attribute 'manage_fixupOwnershipAfterAdd'
Roman Klesel wrote: for id in self.manage_targets.keys(): title = self.manage_targets[id]['name'] self.tgt_folder=Folder() This is dangerous... self._setObject(id,self.tgt_folder) This is silly... Why not just: self.manage_addFolder(id,title) grinder_home = self.manage_targets['gr_sys']['grinder_home'] host_name = self.getHostname(grinder_home) Okay, what type of object is 'self' here, where did you take this code from? for id in self.objectIds('Folder'): location_sar = self.manage_targets[id]['location_sar'] phy_mem = self.manage_targets[id]['phy_mem'] system = self.__getitem__(id) why not just: system=self[id] ? Also, this will result in system not being acquisition wrapped in some circumstances, what you really want is: system = getattr(self,id) ...but it really depends on what 'self' is, I'm not sure you have that right. 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] Re: restricting permissions for direct access only
Michael Shulman wrote: I don't understand what inheriting proxy roles from callers has to do with allowing users to access protected resources above their user folders. They seem like totally different questions to me. Could you please explain? Nothing, different threads, crossed wires, nothing to see here ;-) 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] Zope 2.9 and SSL
Ron Bickers wrote: Both lighty and Apache use OpenSSL. Good point ;-) I'm using it and haven't seen any battlefield casualties so far. ;-) Apache has its share of (even recent) security issues, including some related to mod_ssl. Honestly, I see that as a good thing! It's a bit like the old macs never get exploited argument, it's not because there aren't exploits there, it's because not enough people use them for someone to stumble across them ;-) Lighty seems to be fitting well for those that need a smaller, simpler server, which is why I mentioned it. I'll leave it as an exercise for the interested to determine if they want to use it. True, and simplicity does often make for more security and so, while I'd stick with Apache for the reasons already mentioned, I retract my comment about lighttpd... 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] proxy roles don't get passed down a method call chain?
Tres Seaver wrote: IIRC, if you had scripta calling scriptb, you used to be able to give scripta a proxy role and scriptb would also execute with that role. However, again IIRC, in current Zope releases, if you give scripta a proxy role, when it calls scriptb, scriptb will just run with the roles of the current user. Have I got this right? If so, I wonder why the change was made... The only change I recall to how proxy roles work is that proxy roles used to *augment* a users' roles; now they *replace* them. Yeah, I wonder if that means if you give it a proxy role of manager, it looses all other roles? I don't know that the case you are talking about (S1 has proxy roles, calls protected S2 fine, Okay, S2 here is some permission-protected method where the current user doesn't have the required permission... but fails when calling PR-less S3 which calls S2) ever worked under either scenario. Oh well, I could have sworn it did at one point :-/ Proxy roles have always only been checked for the topmost object on the executable stack (S1 in the first example, S2 in the second). Is it something worth adding as a feature request or are there security implications I'm missing? 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] SSL Digest Auth
Andrew Milton wrote: In Digest Auth the browser 'hashes' the username and password the user enters and simply sends the hash. The webserver does the same and compares the hash to the hash sent by the browser. If they match then you're allowed in. In Basic Auth the username and password are sent base64 encoded. Perhaps you were confused about the password being stored encrypted ON THE WEB SERVER. The client and the server both need to agree on what they're hashing in order to get a common hash. This doesn't mean you can't store the digest hash instead of the normal password hash when creating/changing passwords. In any case Digest Auth doesn't gain you anything if you're already on an SSL connection. It's there to prevent the password from being sent in the clear. Ah, cool, that makes much more sense. Thanks Andrew! 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] installing PIL on Window Zope
Allen Huang wrote: Hi... I assume that you mean to make modification to the path to the python interpreter in Zope at the \etc\zope.conf right? No, you need to make the changes in runzope.bat, zope.conf is too late in the startup process... 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] Zope 2.9 and SSL
On 2/17/06, Ron Bickers [EMAIL PROTECTED] wrote: I noticed that my lighttpd server that proxies to Zope responds as Zope/ZServer, not lighttpd. If I recall, Apache said Apache. There must be many more Zopes than netcraft shows, right? No, Zope behind Apache with ProxyPass also reports as Zope: $ HEAD www.pareto.nl 200 OK [...] Server: Zope/(Zope 2.8.5-final, python 2.3.5, linux2) ZServer/1.1 Plone/Unknown [...] Still, there are many intranet Zope sites, and Zope sites set up behind Apache and other servers in other ways (FastCGI, or simply not at the root of a site URL) for Netcraft to not count them as Zope setups, true. For example, Boston.com bakes their Zope-managed content to the filesystem and has several tiers of Apache and Squid servers serving their content: $ HEAD www.boston.com 200 OK [...] Server: Apache/2.0.47 (Unix) [...] $HEAD cache.boston.com/bonzai-fba/Globe_Photo/2006/02/17/1140170041_8639-1.jpg 200 OK [...] Via: 1.1 arn.xpc-mii.net (MIIxpc/4.7 UNVERIFIED_CACHE_HIT Fri, 17 Feb 2006 10:16:21 GMT) Via: 1.1 ics_server.xpc-mii.net (ICS 2.2.64.208) [...] Server: Apache/1.3.14 (Unix) [...] -- Martijn Pieters ___ 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 scheduling problem
On 2/17/06, Nicholas Watmough [EMAIL PROTECTED] wrote: I've set a proxy for the script so it runs as a Manager. However, when I set a ZopeScheduler to run this script, I get an error where the ZCatalog doesn't find any results when I search for the PloneArticle instance. Now the article I am searching for is catalogued, so I'm not sure why this is happening. This may be a problem with ZopeScheduler, or with Plone's catalog. Not sure which. Any assistance would be appreciated. The Catalog restricts it's results based on the current user rights, proxy roles do not play in that decision. Use unrestrictedSearchResults instead. -- Martijn Pieters ___ 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] Re: where to install rtf2xml script to work with Zope andTextIndexNG?
Thanks Andreas. ___ 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 2.9 and SSL
On Fri February 17 2006 05:19, Martijn Pieters wrote: On 2/17/06, Ron Bickers [EMAIL PROTECTED] wrote: I noticed that my lighttpd server that proxies to Zope responds as Zope/ZServer, not lighttpd. If I recall, Apache said Apache. There must be many more Zopes than netcraft shows, right? No, Zope behind Apache with ProxyPass also reports as Zope: Ok. I thought it was reporting Apache for me before, but I don't recall for sure. Does using mod_rewrite with [P] report the same? -- Ron ___ 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] Granting access by reading http headers (Consulting opportunity)
If anyone here has the consulting expertise to help implement a solution, please email me separately at m + schnapp + service + marc + dot + com. (See my elaborations below) Chris Withers wrote: Marc Schnapp wrote: We're running Plone for internal departmental use. I'm going to lock down most of the content, requiring a login to view sensitive documents. But I also want our Google Mini appliance to crawl all content. Google Mini can do http basic auth, right? If so, you're fine, just put in the basic auth details and define a user in acl_users. Provided the mini presents the credentials without first being challenged by a 401, you'll be fine... Marc responds: 1) The Google Mini does not accept cookies. 2) Plone barfs if you try tricks like adding a query string to URLs. 1) Is this approach viable? (What are the pitfalls?) I'd worry about headers being spoofed... Marc responds: I don't have to worry about headers being spoofed. The host lives in our dedicated data center behind a VPN concentrator requiring RSA authentication. No one gets to the box unless we already have cleared them through two-phase authentication. 2) What python module is consulted to determine access rights when a page request is made? The user folder, in your case it'll be the hell known as GRUF. Swap that out for the hell known as PAS ;-) 2) Is this difficult to implement if one has rudimentary Python skills? Yes. cheers, Chris ___ 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 2.9 and SSL
Ron Bickers schrieb: On Fri February 17 2006 05:19, Martijn Pieters wrote: ... Ok. I thought it was reporting Apache for me before, but I don't recall for sure. Does using mod_rewrite with [P] report the same? Yes, and its working internally identically :-) Apache as frontend proxy returning apache must be a common urban legend. This pops up from time to time albeit its so easy to check and make sure ;-) Regards Tino ___ 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] Granting access by reading http headers (Consulting opportunity)
Marc Schnapp schrieb: If anyone here has the consulting expertise to help implement a solution, please email me separately at m + schnapp + service + marc + dot + com. Its much easier as you might think. You dont even change Zope for this if you are using apache as front end proxy via usual mod_rewrite/mod_proxy You simply create a user for your crawler, login as this user and grep the cookie (assuming you are using some kind of cookie based auth - basic auth would work similar) (For example using live-http-headers (mozilla/firefox) or some sniffer or whatever) http://httpd.apache.org/docs/2.0/mod/mod_setenvif.html http://httpd.apache.org/docs/2.0/mod/mod_headers.html will tell you how to set the Cookie Header as if provided by the Crawler client. (A Cookie after all is just another HTTP Header) So if the conditions match: client-ip = your special crawler and useragent = your crawler - RequestHeader set Cookie ... Ah, and btw. maybe you just use ZCatalog and skip using external crawler :-) Regards Tino ___ 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 2.9 and SSL
On Fri February 17 2006 14:05, Tino Wildenhain wrote: Apache as frontend proxy returning apache must be a common urban legend. This pops up from time to time albeit its so easy to check and make sure ;-) Except that I don't have Apache installed anymore. :-) I know at one time it did not report Zope, but that may have been way back before I was using mod_proxy. I see that the ozzope.org Plone site reports Apache. So they must not be using mod_proxy, yes? -- Ron ___ 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] Granting access by reading http headers (Consulting opportunity)
Thanks for the approach! We will be using Apache as the proxy. Question: So if the conditions match: client-ip = your special crawler and useragent = your crawler - RequestHeader set Cookie ... Am I writing a cookie that Plone would recognize as the Google mini Plone user? Would you know where is the documentation for the user cookie? Ah, and btw. maybe you just use ZCatalog and skip using external crawler :-) Of course I could do that. ;) But we are hosting static html pages served up by Apache separately and I want an integrated search facility with topnotch filters and rendering for PDF and MS Office files. ___ 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] TextIndexNG3 install problem
Hi all, I am trying to install TextIndexNG 3.1.5 on Windows. I recompiled the pyd files successfully using MinGW. However TextIndexNG3 setup fails to find them, traceback included below. There are three instructions from the fine manual and elsewhere that I am trying to follow: 1. README says Plone users must remove comments from configure.zcml . 2. Release notes say: rebuild *and* reinstall . Rebuild works, but reinstall does not. 3. Barry Drake suggested move the pyd files from build dir to TextIndexNG dir Regarding 1, I am using Plone 2.1.2. but I don't recognize anything that looks like a comment in 3.1.5 version of configure.zcml. (But I don't know how to read that kind of file.) Regarding 2. Build was successful, but reinstall fails as follows. Running python setup.py install in C:\Zope-Instance\Products\TextIndexNG3\extension_modules fails with the same error that started this thread regarding VC6 mismatch. However Barry and I have had pyds created by this method working successfully with TextIndexNG2. Regarding 3. The traceback error occurs regardless of whether the pyd files are in any of the following C:\Zope-Instance\Products\TextIndexNG3\ C:\Zope-Instance\Products\TextIndexNG3\extension_modules C:\Zope-Instance\Products\TextIndexNG3\extension_modules\zopyx\txng3 C:\Zope-Instance\Products\TextIndexNG3\Extensions My setup: python.exe is registered in Windows there is only one python.exe on the machine Zope 2.8.5 new install, includes python 2.3.5 Plone 2.1.2 TextIndexNG3.1.5 is installed in C:\Zope-Instance\Products\TextIndexNG3 Any thoughts? Thanks, Owen my event.log for this issue is next Traceback: -- 2006-02-17T15:48:03 ERROR Zope Could not import Products.TextIndexNG3 Traceback (most recent call last): File C:\Program Files\Zope-2.8.5-final\lib\python\OFS\Application.py, line 698, in import_product product=__import__(pname, global_dict, global_dict, silly) File C:\Zope-Instance\Products\TextIndexNG3\__init__.py, line 20, in ? import TextIndexNG3 File C:\Zope-Instance\Products\TextIndexNG3\TextIndexNG3.py, line 18, in ? from textindexng.index import Index File C:\Zope-Instance\Products\TextIndexNG3\src\textindexng\index.py, line 20, in ? from evaluator import Evaluator File C:\Zope-Instance\Products\TextIndexNG3\src\textindexng\evaluator.py, line 18, in ? from stemmer import getStemmer File C:\Zope-Instance\Products\TextIndexNG3\src\textindexng\stemmer.py, line 11, in ? from zopyx.txng3 import stemmer ImportError: No module named zopyx.txng3 -- [ ... snip ... ] -- 2006-02-17T15:48:05 ERROR Zope Couldn't install Five Traceback (most recent call last): File C:\Program Files\Zope-2.8.5-final\lib\python\OFS\Application.py, line 775, in install_product initmethod(context) File C:\Program Files\Zope-2.8.5-final\lib\python\Products\Five\__init__.py, line 29, in initialize zcml.load_site() File C:\Program Files\Zope-2.8.5-final\lib\python\Products\Five\zcml.py, line 45, in load_site _context = xmlconfig.file(file) File C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py, line 439, in file include(context, name, package) File C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py, line 375, in include processxmlfile(f, context) File C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py, line 245, in processxmlfile parser.parse(src) File C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py, line 107, in parse xmlreader.IncrementalParser.parse(self, source) File C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\xmlreader.py, line 123, in parse self.feed(buffer) File C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py, line 207, in feed self._parser.Parse(data, isFinal) File C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py, line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py, line 225, in endElementNS self.context.end() File C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\config.py, line 518, in end self.stack.pop().finish() File C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\config.py, line 665, in finish actions = self.handler(context, **args) File C:\Program Files\Zope-2.8.5-final\lib\python\Products\Five\fiveconfigure.py, line 56, in loadProducts xmlconfig.include(_context, zcml, package=product) File C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py, line 375, in include processxmlfile(f, context) File C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py, line 245, in processxmlfile parser.parse(src) File C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py, line 107, in parse
[Zope] Re: TextIndexNG3 install problem
Update: I have learned how to uncomment configure.zcml by removing a matching pair !-- -- ; then restarted Zope. At this point the traceback looks the same as documented below and the install configlet does not appear in Plone 2.1.2 add/remove products page. There is an error reported on that page: TextIndexNG3 Error Type exceptions.ImportError Error Value cannot import name textindexng_globals Hmm Owen K [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, I am trying to install TextIndexNG 3.1.5 on Windows. I recompiled the pyd files successfully using MinGW. However TextIndexNG3 setup fails to find them, traceback included below. There are three instructions from the fine manual and elsewhere that I am trying to follow: 1. README says Plone users must remove comments from configure.zcml . 2. Release notes say: rebuild *and* reinstall . Rebuild works, but reinstall does not. 3. Barry Drake suggested move the pyd files from build dir to TextIndexNG dir Regarding 1, I am using Plone 2.1.2. but I don't recognize anything that looks like a comment in 3.1.5 version of configure.zcml. (But I don't know how to read that kind of file.) Regarding 2. Build was successful, but reinstall fails as follows. Running python setup.py install in C:\Zope-Instance\Products\TextIndexNG3\extension_modules fails with the same error that started this thread regarding VC6 mismatch. However Barry and I have had pyds created by this method working successfully with TextIndexNG2. Regarding 3. The traceback error occurs regardless of whether the pyd files are in any of the following C:\Zope-Instance\Products\TextIndexNG3\ C:\Zope-Instance\Products\TextIndexNG3\extension_modules C:\Zope-Instance\Products\TextIndexNG3\extension_modules\zopyx\txng3 C:\Zope-Instance\Products\TextIndexNG3\Extensions My setup: python.exe is registered in Windows there is only one python.exe on the machine Zope 2.8.5 new install, includes python 2.3.5 Plone 2.1.2 TextIndexNG3.1.5 is installed in C:\Zope-Instance\Products\TextIndexNG3 Any thoughts? Thanks, Owen my event.log for this issue is next Traceback: -- 2006-02-17T15:48:03 ERROR Zope Could not import Products.TextIndexNG3 Traceback (most recent call last): File C:\Program Files\Zope-2.8.5-final\lib\python\OFS\Application.py, line 698, in import_product product=__import__(pname, global_dict, global_dict, silly) File C:\Zope-Instance\Products\TextIndexNG3\__init__.py, line 20, in ? import TextIndexNG3 File C:\Zope-Instance\Products\TextIndexNG3\TextIndexNG3.py, line 18, in ? from textindexng.index import Index File C:\Zope-Instance\Products\TextIndexNG3\src\textindexng\index.py, line 20, in ? from evaluator import Evaluator File C:\Zope-Instance\Products\TextIndexNG3\src\textindexng\evaluator.py, line 18, in ? from stemmer import getStemmer File C:\Zope-Instance\Products\TextIndexNG3\src\textindexng\stemmer.py, line 11, in ? from zopyx.txng3 import stemmer ImportError: No module named zopyx.txng3 -- [ ... snip ... ] -- 2006-02-17T15:48:05 ERROR Zope Couldn't install Five Traceback (most recent call last): File C:\Program Files\Zope-2.8.5-final\lib\python\OFS\Application.py, line 775, in install_product initmethod(context) File C:\Program Files\Zope-2.8.5-final\lib\python\Products\Five\__init__.py, line 29, in initialize zcml.load_site() File C:\Program Files\Zope-2.8.5-final\lib\python\Products\Five\zcml.py, line 45, in load_site _context = xmlconfig.file(file) File C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py, line 439, in file include(context, name, package) File C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py, line 375, in include processxmlfile(f, context) File C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py, line 245, in processxmlfile parser.parse(src) File C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py, line 107, in parse xmlreader.IncrementalParser.parse(self, source) File C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\xmlreader.py, line 123, in parse self.feed(buffer) File C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py, line 207, in feed self._parser.Parse(data, isFinal) File C:\Program Files\Zope-2.8.5-final\bin\Lib\xml\sax\expatreader.py, line 348, in end_element_ns self._cont_handler.endElementNS(pair, None) File C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\xmlconfig.py, line 225, in endElementNS self.context.end() File C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\config.py, line 518, in end self.stack.pop().finish() File C:\Program Files\Zope-2.8.5-final\lib\python\zope\configuration\config.py, line 665, in finish actions =
Re: [Zope] TextIndexNG3 install problem
--On 17. Februar 2006 16:01:34 -0500 Owen K [EMAIL PROTECTED] wrote: Hi all, I am trying to install TextIndexNG 3.1.5 on Windows. I recompiled the pyd files successfully using MinGW. However TextIndexNG3 setup fails to find them, traceback included below. There are three instructions from the fine manual and elsewhere that I am trying to follow: 1. README says Plone users must remove comments from configure.zcml . 2. Release notes say: rebuild *and* reinstall . Rebuild works, but reinstall does not. Why not? Errors? Tracebacks? -aj pgp5K9SRozSwU.pgp Description: 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 )