[Zope] does xml-rpc work with zope and pcgi/apache?
I'm having problem getting xml-rpc calls to work with zope running on apache/pcgi. I'm using the python xml-rpc module to send an xml-rpc request that looks like this (when captured at the socket level): POST /asdf/1/ HTTP/1.0 User-Agent: xmlrpclib.py/0.9.5 Host: localhost: Content-Type: text/xml Content-Length: 107 ?xml version='1.0'? methodCall methodNamelistServices/methodName params /params /methodCall What I get back from a zope running zserver only is: HTTP/1.0 200 OK Server: Zope/Zope 2.3.0a2 (source release, python 1.5.2, linux2) ZServer/1.1b1 Date: Thu, 11 Jan 2001 04:44:21 GMT Connection: close Content-Type: text/xml Content-Length: 229 ?xml version='1.0'? methodResponse params param valuearraydata valuestringtroubleTickets/string/value valuestringopenTicket/string/value /data/array/value /param /params /methodResponse When I send the exact same request through the same zope server running with apache/pcgi the response I get is a 404 (not found) error. I have an apache rewrite rule set up that works fine - I can go to /manage and so forth, and it works. The 404 makes a little sense, as the above posts to /asdf/1 which doesn't have an index_html in it, so in apache land this would be a bit like posting to a directory, but I thought that zope would have taken care of this some how. I have included the full error message sent back from the zope/apache below. We are working on a flash application that we were planning on having talk to zope via xml-rpc, but if xml-rpc won't work through apache, I guess we'll have to come up with some other way of talking to zope. Any help is greatly appreciated. ^Roman HTTP/1.1 404 Not Found Date: Thu, 11 Jan 2001 04:46:45 GMT Server: Apache/1.3.14 (Unix) mod_snake/0.4.1 Bobo-Exception-File: /home/Zope2/lib/python/ZPublisher/HTTPResponse.py Bobo-Exception-Line: 528 Bobo-Exception-Type: NotFound Bobo-Exception-Value: HTMLHEADTITLEasdf/TITLE/HEADBODY BGCOLOR="#F F" HTML HEADTITLEZope Error/TITLE/HEAD BODY TABLE BORDER="0" WID TH="100%" TR VALIGN="TOP" TD WIDTH="10%" ALIGN="CENTER" nbsp; /TD TD W IDTH="90%" H2Zope Error/H2 X-Powered-By: Zope (www.zope.org), Python (www.python.org) Content-Length: 1591 Connection: close Content-Type: text/html HTMLHEADTITLEasdf/TITLE/HEADBODY BGCOLOR="#FF" HTML HEADTITLEZope Error/TITLE/HEAD BODY TABLE BORDER="0" WIDTH="100%" TR VALIGN="TOP" TD WIDTH="10%" ALIGN="CENTER" nbsp; blah blah blah... ___ 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] LDAP won't work - yes I've applied the patch
"DM" == Dieter Maurer [EMAIL PROTECTED] writes: DM Maybe, you can contact the author, or try it yourself. There DM is documentation from Brian decribing what products need to do DM in order to be compatible with the new Zope 2.2 security DM policy. DM Dieter I've already littered the whole ldap productg with _allow_access_to_unprotected_subobjects=1's, to no avail. Besides, with the patch applied, the product claims to work with 2.2. I guess my next step will be to email the author. ^Roman ___ 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] SQLRelay vanish ??
"DG" == Didier Georgieff [EMAIL PROTECTED] writes: DG Hello, Since several days, the {HYPERLINK DG "http://www.firstworks.com/"}http://www.firstworks.com/ web DG site is unavailable. (SQLRelayDA and SQLRelayDA). DG Any information about the SQLRelay future, and download site ? DG Thanks. Didier. sqlrelay is still very much alive. I'm gonna do a new release of the DA soon, with a lot of important fixes. The lead devloper for sqlrelay moved and had to take down the site for a while. There are some sourceforge pages that are available in the interim. You can get sqlrelay at: http://sourceforge.net/projects/sqlrelay/ And you will also need the rudiments library from: http://sourceforge.net/projects/rudiments/ There is also now a sqlrelay mailing list at egroups.com. ^Roman ___ 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-dev] DCOracleStorage: problems running Full.sql
I'm trying to get DCOracleStorage up and running, but I'm getting errors trying to run Full.sql. I know didly about plsql, so I apalogize if this is obvious. When I run Full.sql I get the following errros. Does this mean my oracle installation is missing something? Thanks, ^Roman ... Table created. Table created. Index created. Commit complete. Package created. No errors. Warning: Package Body created with compilation errors. create package body zodb_methods as * ERROR at line 1: ORA-01041: internal error. hostdef extension doesn't exist No errors. ORA-24323: value not allowed Error accessing package DBMS_APPLICATION_INFO ERROR: ORA-03114: not connected to ORACLE ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope] suggestions for what to run in front of ZEO'ed zopes for failover?
I'm wondering if anyone can suggest something good to run in front of 2 zopes talking to a zeo server - for failover and load balancing. I have been using a tool called 'balance' which works really well - but for failover it only works if the socket to one of the zope servers doesn't connect. We occasionally have a situation where the socket will still answer but the zope server hanges and never returns an answer. So, I'm looking for something with configurable timeouts on responses. Does any one know of anything like that? Thanks, ^Roman ___ 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] Question on OpenTicket
"MP" == Mario Premke [EMAIL PROTECTED] writes: MP Hi, can anybody tell me what exactly the openticket product MP does as there is no detailed description in the docs ... It's a general purpose trouble ticketing system. You can actually see it running on the home page at http://openticket.pointone.com. ^Roman ___ 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] Connect String for mysql with SQLRELAY
You will need to have a sqlrelay server running somewhere that is connected to your mysql database. A given sqlrelay server running on a given port will only be connected to one database - so the informaiton below is all that is needed by the sqlrelay adapter. The sqlrelay xml config file (usually /usr/local/firstworks/etc/sqlrelay.conf) is where you will configure what database you want to connect to and what the mysql auth info is. ^Roman "HK" == Harald Koschinski [EMAIL PROTECTED] writes: HK Hallo, does anybody know how to connect to a mysql database HK with SQLRELAY (the brand new adapter?) The form-help says: HK The connection string used for Z SQLRleay Database Connections HK are as follows: HK hostname portnumber username password HK but that´s not enough - where is the Database connecting to. ___ 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] 2.2.0 zclass weirdness
I've created a ZClass call HomeDirContainer that inherits from ObjectManager. In that ZClass I created another ZClass called HomeDir. The idea being that HomeDirs can only exist in HomeDirContainers. So, I add an instance of HomeDirContainer, then go into it and click "Add" - which is attempting to post to the current object and pass it :method=HomeDir_factory. And I get the following error: Zope Error Zope has encountered an error while publishing this resource. Resource not found Sorry, the requested Zope resource does not exist. Check the URL and try again. Troubleshooting Suggestions The URL may be incorrect. The parameters passed to this resource may be incorrect. A resource that this resource relies on may be encountering an error. For more detailed information about the error, please refer to the HTML source for this page. If the error persists please contact the site maintainer. Thank you for your patience. Traceback (innermost last): File /home/Zope-2.2.0b1-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/Zope-2.2.0b1-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/Zope-2.2.0b1-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: RoleManager) File /home/Zope-2.2.0b1-src/lib/python/ZPublisher/Publish.py, line 162, in publish File /home/Zope-2.2.0b1-src/lib/python/ZPublisher/BaseRequest.py, line 427, in traverse File /home/Zope-2.2.0b1-src/lib/python/AccessControl/User.py, line 414, in validate (Object: RoleManager) File /home/Zope-2.2.0b1-src/lib/python/ZPublisher/HTTPResponse.py, line 520, in notFoundError NotFound: (see above) Is there something new I need to do in 2.2.0 to make this work - or is this a bug? Help is greatly appreciated. ^Roman ___ 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] 2.2.0 zclass weirdness
Well, I figure this out. HomeDir_factory was getting its Use Factory permission set to (disabled). I think this was becuase HomeDirContaine didn't automatically have "Add HomeDirs" in its list. Is this a bug? ^Roman "RM" == Roman Milner [EMAIL PROTECTED] writes: RM I've created a ZClass call HomeDirContainer that inherits from RM ObjectManager. In that ZClass I created another ZClass called RM HomeDir. The idea being that HomeDirs can only exist in RM HomeDirContainers. RM So, I add an instance of HomeDirContainer, then go into it and RM click "Add" - which is attempting to post to the current RM object and pass it :method=HomeDir_factory. And I get the RM following error: ___ 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] perl for zope: a few last comments and then I'm done
OK, I just wanted to say a couple more things about this and then I'll shut up. I've given it a lot of thought - trying come up with a way of looking at it that still makes zope attractive. So, I started thinking - what if it had been a language that I like instead of perl. (lisp, java...) Also, many people pointed out that zope already allows methods in other languages. (sql, dtml, xslt). The thing is - the other languages currently supported address specific domains. AFAIK, python is the only "general purpose" language that zope allows methods in. And I don't really think there is much to gain from two tools that do the same thing. It is sort of like the perl vs. python philosophy. Perl - do one thing many different ways, python - one obvious way to do something. So, if this had been a language more pleasing to me, I still think I would be against it. IMHO, I think zope should be developled with the python philosphy as much as possible. That is one of the reason I chose it. Also, I don't really think this is about getting access to all the perl modules. In truth, python can talk to perl in the same way it can talk to java, or any language. Corba, sockets, xml-rpc, any number of ways. So, if there was something that perl could talk to that python can't, or something written in it that you didn't want to write in python - you could get to it one of these ways, without having to have actual perl code (or any other language) *inside* your zope application - which seems to add unneeded complexity. I agree that this will certainly grow the zope community and that many perl coders are highly intelligent and helpful. But I don't think growth at the expense of complexity is necessarily good. The idea of perl "black boxes" is nice - but I think not realistic. People love their favorite languages (including me) and are going to use it for everything they possible can. I I apologize for the emotional bases of my earlier posts. It attests to my love of zope/python. About 8 months ago I left a job at a large corporation where perl was mandated, for a job at a startup where I was basically allowed to decide what would be used for web development. That startup now has the largest voice over ip network in the world, and we are feverishly trying to give our customers a web interface to the network - using zope. This announcement made me question my decision to go with zope - something I thought I would never do. The fact is, I think we have too much code written for zope to switch at this point. Shutting up now, ^Roman ___ 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: [Zope-Annce] ANN: Perl For Zope - why I'm bummed
"KD" == Kevin Dangoor [EMAIL PROTECTED] writes: KD I think Zope offers a ton of features that I wouldn't want to KD give up. (And I've been watching what the other servers out KD there are doing, and I still appreciate the power given by KD Zope.) I don't question at all that zope is awesome. KD I haven't heard of anyone standing up and saying "I'm not KD going to use Linux, because people might write tools in perl KD [or awk, or C, or lisp, or sh, or yacc or postscript, or ...]" KD Perhaps that's a better way to look at Zope... not as a python KD web application, but as a high-level OS extension for dynamic KD web applications. Well, I don't think that analogy applies directly. People will ask, "do you know zope", and in order to say yes - I will need to know perl. The answer "yes except for the perl bits" won't fly with an employer. Linux is different. Saying "I know linux" generally means you know how to administer it - not how to code in every language available to it. When looking for a coding job - they hire based on what language you know - not what OS. For zope, you will just have to "know zope" - employers will see "zope" and a language just like parents see "understanding computers" as knowing how to fix their windows boxes :) We have a lot of former perl coders here and they won't be able to resist the new fancy perl methods. And within a short while we will have a body code dung. Perhaps this is a disadvantage to the DC company-owned open-source project model. They will make bad decisions based on potential profit. XEmacs has managed to fend of perl (and python) support. I have heard close to the same argument there that I have made here, basically. Another language adds little benefit and much complexity for someone who will have to maintain code on the platform. I don't buy this bit about being able to access 1000's of wonderful perl modules. Most people that I know who have made the switched at how much better the python library is the perl's. ^Roman Sorry for being a tad emotional here. I'm sure I will calm down - it's just that yesterday I was one of the most adamant Zope evangelist around. Today... ___ 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: [Zope-Annce] ANN: Perl For Zope - why I'm bummed
"KM" == Ken Manheimer [EMAIL PROTECTED] writes: KM I have some misgivings with this outlook. It sounds like KM people who seek job security by having expertise with a system KM that closes out unfamiliar options - whether the options are KM better or worse. I'm not in any way unfamiliar with perl. If this had been a language that I didn't know or, or any technology that I didn't know - I would have an opened mind. I've been down the perl road, and have made a personal choice never to do it again. KM For all of you that love Python, and testify to either leaving KM perl with great relief or not being willing to learn it in the KM first place - why don't you trust your judgement? Python KM *does* offer better a better foundation for persistence, KM acquisition, general object-oriented applications, etc - you KM should not be frightened of a level, open zope playing field KM that admits both python and perl! Yes, *I* should. I'm trying to make the point that it's nieve to believe that I will be able to just ignore the perl bits. Yes, I can avoid writing anything original in perl but sooner or later, if I'm working with zope, I will be asked to do something with one of the perl methods. They are going to be prevalent and hard to avoid. So, if my goal is to entirely avoid maintaining perl code, I will have to avoid Zope. KM I never really learned C - but that doesn't mean i won't use KM other people's C extensions! Many many people have found KM Python to be the best way to get acquainted with Java, with KM jpython - and i wonder how many java folks got turned on to KM python's advantages, though the ability to use java KM interactively via jpython. Access to other languages via KM python isn't a problem, it's a solution - why should it be any KM different with Zope? I wouldn't mind using someone else's perl module either. But it just isn't going to be limited to that. Developers get hit by buses, and managers assign the code to other people. I think that anyone who wants to claim Zope expertise will need to know and be willing to code in perl. ^Roman ___ 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 )