Re: [Zope] Zope, Apache/NT, Reliability issues
On Thu, Jun 08, 2000 at 07:25:15PM -0300, Fabio Akita wrote: > I´ve used the ZServer in stand alone mode and I also have implemented > the easy Proxy Reverse trick in Apache. I will try FastCGI and PCGI as > soon as possible, but I have some doubts now. > > My test platform is a Windows NT 4 running Apache 1.3.12. The first > doubt comes to the fact that I could not find the pcgi module for NT (I > do not have any kind of C compiler, so I´ll be very glad if anyone know > a binare version). So I´d like to know where can I find informations > about installing Zope using PCGI in an NT Apache installation. It could be someone else has already compiled it and used it. > The second doubt: what exactly are the differences of running it in PCGI > mode or in ZServer? I do understand the concept of forking a process and > interfacing a web server and a process through a CGI interface as PCGI > and I also understand the fact of the multithreading feature in ZServer. > > Basically it would mean that each connection request will fork a new > Zope connection and then maintain it in some kind of a connection pool > (as databases do)? Or will there be only one process running Zope and a > queue of requests to access it? What are the performance impacts, what > are the hardware (memory/CPU) impacts? Personally I do not like the > concept of CGI but know nothing about the Persistent CGI concept. PCGI passes on requests to Zope, where Zope can handle multiple requests at the same time. Basically, requests are handed over to ZServer ass if the request came in directly. PCGI takes some care of waiting for ZServer to become available if it is congested. So, there is one Zope instance running that can listen to normal HTTP requests, FTP requests and PCGI requests (any combination of that). The PCGI CGI's are fielded on requests coming though Apache and hand back the results to the client. > And what about the method of "masquerading" the ZServer through Apache? > I have read solutions using the Rewrite module and the Proxy module, but > it actually means (roughly speaking) that if there are 10 requests > made to Apache then it will make 10 requests to ZServer so, considering > only the reliability issue of the server even if Apache can handle > millions of requests per second, the ZServer would fall down much faster > than that so I cannot see any advantage of using Apache in front of it. > Of course I understand the other advantages of Apache as it´s many > configuration options, robustness as a web server, etc, but can the > ZServer stay up and running in pair with Apache? Maybe there´s any way > to configure Apache to cache the pages -- as a Squid would -- so it can > "filter" the requests and low the requests level that it will do to > ZServer? People generally use Apache for combining Zope with other content. Zope is good at serving dynamic content, Apache at static, so if you serve Zope behind Apache, you can mix and match. Also, when you have existing CGI, PHP or other Apache dependant content that you want to make available from the same base URL, you will need to use Apache in front of Zope. You can, IIRC, use tge ProxyPass trick together with caching as well,but I have no experience with that. There is one big disadvantage to using ProxyPass at the moment, which is that you need to use the SiteAccess product to make it work correctly. The SiteAccess product has some known issues and causes regressions in parts of Zope, like the ZCatalog. These issues _shold_ be solved with the upcoming 2.2 release of Zope. > And what about it´s object oriented database? I also have some doubts > about it. I worked a lot with relational databases as MS SQL and MySQL > but never tried to study an OO approach to DB. How fast it is? How much > requests can it handle without hanging, collapsing or corrupting data? I > mean, anyone tried to do some study of a database that changes everytime > and have queries everytime, I mean, searches in a database where it´s > data changes constantly (searching a static database is much different > than searching on a mutable one). Row level locking, transaction, > consistency, etc, all these concepts apply here? Can it be substituted > by a traditional relational database and have it´s contentes interfaced > to "looks like" object oriented? The ZODB, Zope's Object Database, is an integral part of Zope. As soon as you look at Zope through the management interface, you are looking at objects stored in the ZODB. Zope is inherently OO, and you generally use object instances to build your site. The ZODB is transactional, is optimized for high reads, low writes, and takes care of access conflicts not by locking, but invalidating all connections that use an object that has been altered by another connection. Zope reacts to this by retrying the requests whose connection was invalidated. Because everything is transactional, this works great. There is detailed documentation on ZODB available at: htt
Re: [Zope] Unless not quite the opposite of if?
On Fri, 09 Jun 2000, Dieter Maurer wrote: > Curtis Maloney writes: > > On Thu, 08 Jun 2000, Curtis Maloney wrote: > > > ... > > > The problem is, when i test the page, it seems to pass over that that, > > > and go right on with the page. So, I tried to be a little more > > > explicit: > > > > > > > > > ... > > > > > > > > > > > > > > > (as I have done in MANY cases), it always evaluates true if 'parmName' > > > exists in the current context. > > That is consistent! > > "unless" is equivalent to "if not". > When "if" evaluate to "true", "unless" will skip its body and > vice versa. > > 'if var' evaluates to "true", if "var" exists and has a (Python) true > value. > > Seems that your request really has a key 'parmName'. It doesn't. Really. I'm certain of this. The key was not there, and yet the unless was not rendered. This is why I'm posting. It's not working as it should. I guess I'm funny like that. I only post problems when they exist. > > > And worse still, I've now decided to use the FSSession, and the > > following line is evaluating true when it shouldn't: > > > > > > > > Since no FSSession keys have been set, this should evaluate FALSE. > > The "FSSession.has_key('ReturnerID')" should of cause yield "false". > This means, the "dtml-unless" body is rendered. > Well, this is my point. The body was NOT being rendered. Just to follow this, I'm now using and it is working fine. However, since the stuff is a redirect, I'd much rather just use an unless at the start of my page. > > Dieter -- Have a better one, Curtis. ___ 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] WorldPilot - Regular messages are attachments? (PatchFix)
Excellent, thanks Bryan. I have another question? Do you have problems with browsers not obtaining the correct filenames of attachments when they are downloaded, i.e. the file becomes ATT0002.DAT or similar? I have this problem and also if I choose to download a file and then cancel the dialog, everything seems to get stuck, and I have to close the browser and start again. Regards Paul - Original Message - From: Bryan Stillwell <[EMAIL PROTECTED]> To: Paul Gresham <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, June 09, 2000 12:15 AM Subject: Re: [Zope] WorldPilot - Regular messages are attachments? (PatchFix) > On Thu, 8 Jun 2000, Paul Gresham wrote: > > > Be careful here ... I think you'll also find that should you try to download > > the attachement, It'll kill Zope. If you're running Zope with -D it'll > > restart, otherwise you'll find you have no web site after trying to > > download. I'm not sure what it does to kill Zope as there is no error, just > > death. It seems to be a bit intermittent as well, which doesn't help. > > Actually that traceback was from when I tried to view the > message(attachment), and it didn't kill my Zope process. > > > > I'm trying to fix the problem and will post the patch once it's ready, > > hopefully next week when I get back from China. (I'm nothing to do with the > > WorldPilot chaps, I just want to use the s/ware) > > I'm already ahead of you there. I went ahead and debugged it myself and > was able to fix the problem! Here's the patch I came up with: > > CUT > --- WorldPilot.py~ Fri Mar 10 13:04:29 2000 > +++ WorldPilot.py Thu Jun 8 10:01:04 2000 > @@ -648,8 +648,8 @@ > )) > else: > offset=0 > - BodyType=ST[0] > -BodySubtype=ST[1] > +BodyType=string.upper(ST[0]) > +BodySubtype=string.upper(ST[1]) > BodyParameterList=ST[2] > BodyId=ST[3] > BodyDescription=ST[4] > CUT > > > Enjoy! I hope you had fun in China! > > Bryan > > ___ 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] ANN: ZUBB 0.3.2 (Zope Ultimate Bulletin Board)
on 6/8/00 10:59 PM, J. Atwood at [EMAIL PROTECTED] wrote: >> How about default sorting the message threads so that the thread with >> the most recent reply is at the top? > > This would be possible but I think it would be confusing to the user > (posts would jump to the top). See below... I've customized Squishdot myself to add this feature, which is very useful in collaborative work. The effect is that topics (threads) which have ongoing activity stay near the top of the list. Threads that become quiet slide down the list until they fall off the bottom. This serves to highlight active discussions and works nicely in support of workgroups and committees. I'd recommend that you make this an option in ZUBB. Jim Harrison University of Pittsburgh ___ 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] generic user folder 1.2.4
On Thu, 8 Jun 2000 [EMAIL PROTECTED] wrote: > today I have installed Generic user folder 1.2.4 > Zope version 2.1.6 > redhat 6.1 > on apache with zope.cgi Have you installed SiteAccess? I can't think of other products that might cause wierd stuff like this. It would be worth testing with a fresh Zope install to see if the problem is being triggered by another 3rd party product. > When I go to Zope management and "add new item" + "Generic user folder" > > I get to the "add a generic user folder" html page. > > I leave all the settings at defualt wich includes the "cookie based" > authentication radio button selected. > Error type:KeyError > Error Value:Parent_url You will need to post the traceback. Parent_url isn't used in GUF anywhere, so I'm guessing it is another product that is barfing. -- Stuart Bishop Work: [EMAIL PROTECTED] Senior Systems Alchemist Play: [EMAIL PROTECTED] Computer Science, RMIT University ___ 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] Getting a specific user role
On Thu, 8 Jun 2000, Mabe, Brad wrote: > Forgive me if this has been covered before. > > I am implementing a login/security scheme through the use of GUF and SQL > methods. My user and role information is kept in a SQL database and a user > can have more than one role assigned to him/her. > > What I would like to do is check if a specific role has been assigned to the > current user, and then display some additional menu items if that role has > been assigned. I haven't been able to figure out how to get and check the > roles that have been assigned to the current user. > > As usual, any help will be greatly appreciated. (untested) User has the myrole role getRoles is also there if you don't want to check for local roles. -- Stuart Bishop Work: [EMAIL PROTECTED] Senior Systems Alchemist Play: [EMAIL PROTECTED] Computer Science, RMIT University ___ 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] ANN: ZUBB 0.3.2 (Zope Ultimate Bulletin Board)
At 11:31 AM +1300 6/9/2000, Graham Chiu wrote: >How about default sorting the message threads so that the thread with >the most recent reply is at the top? This would be possible but I think it would be confusing to the user (posts would jump to the top). See below... >And instead of just having the number of messages in a thread in >brackets at the end of the thread header, also include the last date, or >the number of new messages since the visitor last was at the ZUBB ( >since you're using a persistent cookie )? I would love to add the ability to include the "last viewed" cookie feature. I will add it to the future feature list. The big thing on my plate though, is how to limit the amount of threads shown. Once you get beyond 100 or so I am worried about performance and download size. If anyone has any knowledge about limiting tree views that would be great. Thanks, J ___ 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 and Search Results
Jason, At 11:41 pm 6/8/00 +, Jason Spisak wrote: >You have the dtml-if statement in the wrong place if you want the object to >be created and then redirect. First, try it without the dtml-if statement >like so. > > > > > Add Coupon ZClass > > > > >> REQUEST)"> > > > REQUEST)"> > > > > > > I tried this in the add method. Actually, both the old and the new method reindexed the instance. The problem occurs when I try to search the catalog after adding the zclass. After adding an instance, the catalog search fails to find the new coupon or even the the old coupons. Only when I manually update the catalog in the mangament interface will it return any matches. >Does it index it? > >Jason Spisak Thanks, Aaron ___ 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] user contributions to Zope.org
Grahm, We're definitely going to have things that are more like this. We are definately going to allow you to "hook" your members items into different parts of zope.org and even, possibly, allowing people who use the built-in help of zope.2.2 to see your howto. There's going to be more discussion, and action, in the zope-web mailing list: http://lists.zope.org/mailman/listinfo/zope-web I'd really appreciate it if further suggestions & discussion along these lines occurred there. Thanks for your input, ethan mindlace fremen Zopatista Community Liason ___ 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: [ZCommerce] Secure storage of credit card info
-> I'd like to also have a one-box solution, though. Ooh, that's bad JuJu. Keeping CC#s on the same box as your webserver? a) Pray there are no overflows/misconfigurations/etc. on the webserver daemon. b) Turn off EVERY other service on that box (even ssh has had a buffer overflow). This means no remote system management (i.e. buy another keyboard and monitor). c) [After the Fact]: Wonder why you didn't choose to spend another mere $1200 for a separate (Linux Oracle) server In short, if you're worried enough to encrypt the database files on disk, you're worried enough to have a separate database server. --Derek ___ 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] Re: [ZCommerce] Secure storage of credit card info
-> > You have a ZCommerce site. You accept credit cards, and securely -> > communicate with a CC processor to verify the transacton. Now, Besides Bill's suggestion, keep all your servers behind a good firewall. One option is to use Linux IP Masquerading, having your webserver *and* database server use 192.168.0.??? IP Addresses. Then, turn on port forwarding on your Masq server, so that all incoming requests on port 80 go to (something like) port 8080 on your webserver, which then responds to the request. You could just use an encrypted filesystem on the database server, although that may be too slow (and possibly overkill?). At that point --assuming your firewall is secured-- you'd more or less need physical access to your internal network to see those CC#s. The only real danger left is a misconfiguration (or bad code) in your webserver software. (read: don't use IIS :) --Derek ___ 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: [ZCommerce] Secure storage of credit card info
On Thu, 8 Jun 2000, Bill Anderson wrote: > Personally, I would store the actual data on a seperate server, not > accessible to the public. Mmm. Yes, that makes it more secure. Still leaves the question of encryption/decryption of the data and key management, but it makes the cracking a lot less likely. And Steve's EMarket product is designed for that scenario. I'd like to also have a one-box solution, though. Based on some comments by one of the eTailor folks I'm now trying to see if I can structure the user/merchant interface so that the server doesn't need to decrypt the stuff without human intervention. --RDM ___ 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] Re: [ZCommerce] Secure storage of credit card info
"R. David Murray" wrote: > > OK, any of you out there who have thought about ecommerce, cryptography, > and zope, I've got a design question for you. Actually, this question > is independent of zope, but I need to solve it in a zope context. > > You have a ZCommerce site. You accept credit cards, and securely > communicate with a CC processor to verify the transacton. Now, > you want to save the CC# and other info in case something needs > to be done with it later, and probably store the CC# so this > customer doesn't have to type it in again later. Regardless > of whether you are storing this info in a relational database > or in the ZODB, how do you secure that information? Step one, prepare for a fight with Amazon <0.5 wink> Personally, I would store the actual data on a seperate server, not accessible to the public. When you need to place the order/verify funds/etc, your ZopeApp talks to the private server, which returns either the data needed, or a yes or no result. I prefer the latter, since the actual processing with the CC clearinghouse can be done from there, thus largeley eliminating the threat (though not destroying it entirely of couse) at the webserver. ___ 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] Secure storage of credit card info
OK, any of you out there who have thought about ecommerce, cryptography, and zope, I've got a design question for you. Actually, this question is independent of zope, but I need to solve it in a zope context. You have a ZCommerce site. You accept credit cards, and securely communicate with a CC processor to verify the transacton. Now, you want to save the CC# and other info in case something needs to be done with it later, and probably store the CC# so this customer doesn't have to type it in again later. Regardless of whether you are storing this info in a relational database or in the ZODB, how do you secure that information? Ideally I'd like it to be encrypted on disk. Now, storing it in a database probably makes it pretty hard to grep out even if a hacker manages to snarf the database file, but I'd like to encrypt it. But if I encrypt it, I have to have a decryption key somewhere. Where do I store the decryption key so that the cracker who snarfs the database file can't get it (just in memory somewhere?), and yet have the system be able to boot itself, including having the key, without human intervention? It seems to me like this is a Hard Problem, but I'm not up on the current cyrptography practice. So if there is a well known general solution, I'd love to hear about it. Otherwise, does anyone know what current Best Practice is? --RDM ___ 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] PARENTS
Chris Withers wrote: > > Bill Anderson wrote: > > > > Tom Scheidt wrote: > > > > > > Hi All, > > > > > > I can't get > > > > > > > > > > Have you tried ? > > I dont recall why ATM, but my rule-of-thumb is that if you are calling > > ALLCAPS (ie. REQUEST,PARENTS...) wrap it in quotes. > > The all-caps things isn't the problem, will work fine > :-) Yeah, I recalled why I made that rule of thumb being python related in a private email to Tom. Guess I forgot to Cc the list. :) I don't think I've ever used PARENTS or REQUEST alone (except for the occasional debugging with REQUEST), so I always wind up needing to call them the pythonic way. ___ 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] FW: troubles with installing zope
Thank you for your replys. Andy > I could then point my browser at the server on 9080 and get the introductory Andy > page. However, if I try to do anything else, like go to admin page or quick Andy > start documentation, the server raises the following debug message and the Andy > browser says that the document returned no data, try again later or contact Andy > system administrator : Andy > Stack overflow: pid 23282, proc python, addr 0x14085ffe8, pc 0x120038c18 Ethan> Which zope did you get? from source, I assume. If so, what python are you Ethan> running? It's Zope source version 2.1.6. Python version 1.5.2 configured with --with-dec-threads. Dieter> It seem that the thread stack is not large enough and that Dieter> Python (one of the Python threads) gets a stack overflow. Dieter> You may try to look into the OS documentation to find, whether Dieter> you can specify a default thread stack size. We uped the settings and rebooted, but to no avail. The current settings are: proc: maxusers = 512 max-proc-per-user = 512 max-threads-per-user = 1024 per-proc-stack-size = 33554432 max-per-proc-stack-size = 67108864 Dieter> If Python uses Posix threads on your machine, you may find the information Dieter> in the "pthread_create" documentation. Where abouts is this documentation kept ? Andy. ___ 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] user contributions to Zope.org
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 In article <[EMAIL PROTECTED]>, Shane Hathaway <[EMAIL PROTECTED]> writes > >Not to put down your idea, but in what way is this not addressed? Because you can comment directly on the object in question - Eg. point out some Zope Zen, or errors in products etc. >There are already free accounts for everyone to submit their own >content (not just comments, but anything that can be put in a member >folder) and access to wikis for everyone. > Rule of thumb - 3 clicks to anywhere in a web site. And, how would I redirect a user to my commentary when they were at User XYZ's product page? >For a site devoted to advancement of a product, aren't wikis more >useful than comment pages? Quite disorganised. I've left comments on people's wikis and a month later, nada. Now, if you were to make a Wiki page that attached to the bottom of the relevant page, then that would be better. > >New ideas are, of course, encouraged. > I'll don my thinking cap! - -- Regards, Graham Chiu gchiucompkarori.co.nz http://www.compkarori.co.nz/index.php Powered by Interbase and Zope -BEGIN PGP SIGNATURE- Version: PGPsdk version 1.7.1 iQA/AwUBOT+MLrTRdIWzaLpMEQKt8ACgjk6R4h2dVRlCuV+HBIh7OWQ5bBgAoK4K M6yBTgzUP9ptkaIIe79Rk7Rt =K73y -END PGP SIGNATURE- ___ 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] ANN: ZUBB 0.3.2 (Zope Ultimate Bulletin Board)
In article <[EMAIL PROTECTED]>, J. Atwood <[EMAIL PROTECTED]> writes >Take a look and email me with your comments. If you are using it and would >like to be linked to as an "example" site please send me the url. Hi, Looks good. A couple of comments: How about default sorting the message threads so that the thread with the most recent reply is at the top? And instead of just having the number of messages in a thread in brackets at the end of the thread header, also include the last date, or the number of new messages since the visitor last was at the ZUBB ( since you're using a persistent cookie )? -- Regards, Graham Chiu gchiucompkarori.co.nz http://www.compkarori.co.nz/index.php Powered by Interbase and Zope ___ 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] Getting a specific user role
Mabe, Brad writes: > Forgive me if this has been covered before. There's no real great documentation on using the security API, and it's changing a bit anyway. > > I am implementing a login/security scheme through the use of GUF and SQL > methods. My user and role information is kept in a SQL database and a user > can have more than one role assigned to him/her. > > What I would like to do is check if a specific role has been assigned to the > current user, and then display some additional menu items if that role has > been assigned. I haven't been able to figure out how to get and check the > roles that have been assigned to the current user. > > As usual, any help will be greatly appreciated. > > -=Brad=- try: My stuff Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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] redirecting from inside a frame
Chad, Before I attempt an answer to your question, can I ask you a favour? Please don't send HTML encoded mail to the list, lesser mortals use crappy mailers and have trouble reading it 8¬) Thanks in advance. If I understand you correctly you want the form to goto a full browser rather than remain in the frame set? If so then something like, untested, should do the trick: . . . . the some_page script should then be in a full browser window and you can the do whatever you need there, redirect etc. hth Phil [EMAIL PROTECTED] - Original Message - From: Fusion Group To: [EMAIL PROTECTED] Sent: 09 June 2000 00:03 Subject: [Zope] redirecting from inside a frame I'm attempting to submit a form from inside of a frame, and depending on the information submitted, redirect to a new page which I no longer want displayed inside of that frame. I want the new page to displayed in the full browser window, but not a new window. Any help would be greatly appreciated. Regards, Chad ___ 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 and Search Results
Aaron Payne: > Hi all, > Hi Aaron. > I have a zcatalog. I use the methods generated by Z Search Interface to > search the catalog. These methods will not recognize new additions to the > catalog. After adding a coupon instance, the catalog search fails to find > the new coupon or even the the old coupons. > > The add method of the zclass does have the statement: reindex_object>. The ZClass is subclassed catalogaware. > > There is a bug in Zope documented in the mailing lists. I found and tried > the following code for my zclass add method: > You have the dtml-if statement in the wrong place if you want the object to be created and then redirect. First, try it without the dtml-if statement like so. > > Add Coupon ZClass > >REQUEST)"> > REQUEST)"> > > > Does it index it? Jason Spisak CIO HireTechs.com 6151 West Century Boulevard Suite 900 Los Angeles, CA 90045 P. 310.665.3444 F. 310.665.3544 Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email address may not be added to any commercial mail list with out my permission. Violation of my privacy with advertising or SPAM will result in a suit for a MINIMUM of $500 damages/incident, $1500 for repeats. ___ 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] worldpilot and imap: readonly access
worldpilot has issues with imap when the INBOX is open by some other application . . . . . should be able to display and allow composition of email (pine does this, for example, if I have my mail open in another imap client). Zope Error Zope has encountered an error while publishing this resource. readonly Sorry, a Zope error occurred. Traceback (innermost last): File /usr/local/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/local/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/local/Zope-2.1.6-linux2-x86/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: RoleManager) File /usr/local/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/local/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: prog) File /usr/local/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: prog) File /usr/local/Zope-2.1.6-linux2-x86/lib/python/Products/WorldPilot/WorldPilot.py, line 1910, in prog (Object: RoleManager) File /usr/local/Zope-2.1.6-linux2-x86/lib/python/Products/WorldPilot/WorldPilot.py, line 1831, in displayIfLoggedOn (Object: RoleManager) File /usr/local/Zope-2.1.6-linux2-x86/lib/python/Products/WorldPilot/WorldPilot.py, line 369, in callResource File /usr/local/Zope-2.1.6-linux2-x86/lib/python/Products/WorldPilot/Resource.py, line 137, in callResource File /usr/local/Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: ) File /usr/local/Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_In.py, line 633, in renderwob (Object: Logon.getIMAPFoldersList(REQUEST)) File /usr/local/Zope-2.1.6-linux2-x86/lib/python/DocumentTemplate/DT_Util.py, line 335, in eval (Object: Logon.getIMAPFoldersList(REQUEST)) (Info: Logon) File , line 0, in ? File /usr/local/Zope-2.1.6-linux2-x86/lib/python/Products/WorldPilot/WorldPilot.py, line 446, in getIMAPFoldersList File /usr/local/Zope-2.1.6-linux2-x86/lib/python/Products/WorldPilot/WorldPilot.py, line 410, in getIMAPFolders File /usr/local/Zope-2.1.6-linux2-x86/lib/python/Products/WorldPilot/WorldPilot.py, line 384, in getConnection File /usr/local/Zope-2.1.6-linux2-x86/lib/python/Products/WorldPilot/WPimaplib.py, line 468, in select readonly: INBOX is not writable -- Paul Beard / 206 728 4282 x138 Fizzylab / 2025 First Ave, Suite 1150 Seattle WA 98121 ___ 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] redirecting from inside a frame
I'm attempting to submit a form from inside of a frame, and depending on the information submitted, redirect to a new page which I no longer want displayed inside of that frame. I want the new page to displayed in the full browser window, but not a new window. Any help would be greatly appreciated. Regards, Chad
Re: [Zope] Several users having problem accessing field names of a ZSQL Method
Below is the dtml code for a DTML document I have written to return the results of any SQL query as an html table in groups of 50. Query.QuickSQL() takes as an argument a complete SQL statement. "sqlStatement" is the REQUEST variable with the SQL statement. You can replace the query with your own ZSQL query. getRes is an external python method, here it is: def getRes(self, zQry) : tvar1 = 'res=self.'+zQry exec tvar1 tc1=res._schema.items() return tc1 this came out of a function module I wrote that has all the imports at the top. You may need to "import sys" for this to work. I don not recall. __ Jim Sanford . Database Engineer / \ / Accelerated Technology, Inc. / / 720 Oak Circle Drive East / / \Mobile, AL 36609 / / \ Voice: 334-661-5770 fax: 334-661-5788 / \ E-Mail: [EMAIL PROTECTED] Web: http://www.atinucleus.com Nucleus. All You NEED in an RTOS. Royalty Free __ DTML Document Code below _ SQLResult (Previous results) (Next results) ___ 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] user contributions to Zope.org
Graham Chiu wrote: > This has been mentioned before, but some sites like the main PHP one > allow visitors to add comments to web pages. > > My thought was that this should be relatively easy to implement with the > Zope.org site. A small form at the bottom of each page, URL0 indexed in > a SQL table, and when a page is accessed, commentary is returned ordered > by submission date. > > You may wish to allow only members rather visitors to make comments. > > Anything wrong with this scenario ( apart from comments not being > Catalogued ) ? Not to put down your idea, but in what way is this not addressed? There are already free accounts for everyone to submit their own content (not just comments, but anything that can be put in a member folder) and access to wikis for everyone. For a site devoted to advancement of a product, aren't wikis more useful than comment pages? New ideas are, of course, encouraged. Shane ___ 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, Apache/NT, Reliability issues
Hello I am a developer and we are studying the possibility of adopting Zope as a production platform for our clients. Actually I use PHP, Perl and ASP as server-side "platforms" and I will also be testing WebObjects although I have to say that Zope interested me much more as a programmer ^_^ Until now I have read lots of documentations, DTML looks good enough and I learned a lot about Python. But there are still some doubts that no online document could solve easily. Concerning the installation I´d like to know if anyone knows (or knows some document that details about) the essencial differences between the many ways of installing Zope. I´ve used the ZServer in stand alone mode and I also have implemented the easy Proxy Reverse trick in Apache. I will try FastCGI and PCGI as soon as possible, but I have some doubts now. My test platform is a Windows NT 4 running Apache 1.3.12. The first doubt comes to the fact that I could not find the pcgi module for NT (I do not have any kind of C compiler, so I´ll be very glad if anyone know a binare version). So I´d like to know where can I find informations about installing Zope using PCGI in an NT Apache installation. The second doubt: what exactly are the differences of running it in PCGI mode or in ZServer? I do understand the concept of forking a process and interfacing a web server and a process through a CGI interface as PCGI and I also understand the fact of the multithreading feature in ZServer. Basically it would mean that each connection request will fork a new Zope connection and then maintain it in some kind of a connection pool (as databases do)? Or will there be only one process running Zope and a queue of requests to access it? What are the performance impacts, what are the hardware (memory/CPU) impacts? Personally I do not like the concept of CGI but know nothing about the Persistent CGI concept. And what about the method of "masquerading" the ZServer through Apache? I have read solutions using the Rewrite module and the Proxy module, but it actually means (roughly speaking) that if there are 10 requests made to Apache then it will make 10 requests to ZServer so, considering only the reliability issue of the server even if Apache can handle millions of requests per second, the ZServer would fall down much faster than that so I cannot see any advantage of using Apache in front of it. Of course I understand the other advantages of Apache as it´s many configuration options, robustness as a web server, etc, but can the ZServer stay up and running in pair with Apache? Maybe there´s any way to configure Apache to cache the pages -- as a Squid would -- so it can "filter" the requests and low the requests level that it will do to ZServer? And what about it´s object oriented database? I also have some doubts about it. I worked a lot with relational databases as MS SQL and MySQL but never tried to study an OO approach to DB. How fast it is? How much requests can it handle without hanging, collapsing or corrupting data? I mean, anyone tried to do some study of a database that changes everytime and have queries everytime, I mean, searches in a database where it´s data changes constantly (searching a static database is much different than searching on a mutable one). Row level locking, transaction, consistency, etc, all these concepts apply here? Can it be substituted by a traditional relational database and have it´s contentes interfaced to "looks like" object oriented? The reliability issue is important as I would´t like to have to write a cron to verify if the server is up and running and, if not, kill all of it´s processes and start all over again. It´s not professional, it´s just an ugly band-aid. Actually the PCGI module for NT is not that important as I do prefer working with Apache on Linux but some of our clients prefer working on NT as much of it´s products are already up and running on NT, so Zope on NT would be the preferred option (is Zope+NT as stable as Zope+Linux, only talking about the web server robustness). Well, these are my doubts for now. Thanks for the attention. I hope we can do some interesting discussion. []´s Fabio Akita - DeveloperF/Nazca S&S / Adversiting
Re: [Zope] Problems uploading large attachments
On Thu, 8 Jun 2000, Cary O'Brien wrote: > Also, couldn't seem to run strace on the zope process. I > started under strace but the system went bezerk opening > sockets or something. Is there any way to start a > single-process non-threaded zope server? I've noticed this, too, under BSDI 4.1 and FreeBSD 3.4. When Zserver starts up, something (presumably in a Python library) opens a separate listen socket on every possible port number (or something like that). Then they all go away except the ones actually in use. I observed this by the simple expedient of doing a ./start; lsof >tempfile, and seeing all those open sockets. I discovered this because running with a generic 3.4 kernel I was getting a 'too many open files' message every time I started Zope. It hasn't kept anything from working, so I haven't bothered to track this any further yet. Oh, and you can start Zope single threaded by using the -D switch, I believe. I'm not sure that will help with the socket berzerkness . --RDM ___ 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] ZSearch interface
Hi, I tried to add a zsearch interface as per the zcatalog tutorial. When I type a keyword in the raw field, I get the message "There was no data matching this Catalog query." How do I create a search form in my folder? Hope someone can help. Regards.
Re: [Zope] search on search results, dynamically
On Thu, 8 Jun 2000, Philipp Dunkel wrote: > amount of results, e.g. if my ZClass would handle Cars, > they first see 500 car-objects, then they specify only reds, > they get 200 results from the 500. Now they can specify a price > and again the amount goes from 200 to say 50. > This means I have to search on the results. When you build the result page, put any searches already done into hidden input fields in the form. Then make sure those search criteria get passed into Catalog as well as the new search selection. Or depending on your interface model, you could put the searches into normal fields, and the programming would become quite simple . --RDM ___ 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] Guide to writing a Python Product for Zope?
"Dan L. Pierson" wrote: > Sounds pretty good. Setting 'default_content_type' can then be > another item in the unwritten Guide to Writing a Zope Product. Well, hopefully this will actually get written sometime and we can all stop scratching our heads everytime we want to know how to do something. ...that, or hacking it till it works and finding the thing we used was being deprecated in the next point release... ;-) cheers, 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] Re: FSSession newbie problem
--- In [EMAIL PROTECTED], Marcello Lupo <[EMAIL PROTECTED]> wrote: >and macically i obtain the same error. >this is the code i used: > > > > > > I have tried your code with 'cart' everywhere, and it worked just fine. Can you print out the form variables? Are all the statements inside the same DTML file? It really works fine. Also, make sure that FSSession is in a parent folder of your DTML method. (Root folder is usually a good idea.) Is your machine cookie-enabled? If you still have problems, you can try SQLSession or HappySession. For beginners I would recommend HappySession so you don't need to worry about the details of FSSession or SQLSession. Download HappySession from http://www.zope.org/Members/hungjunglu/Products/HappySession Add an HappySession instance in your Zope hierarchy. Then try: regards, Hung Jung Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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 )
Re: [Zope] Wrong mime type sent by Zope on every page
Brian Lloyd wrote: > What if we change this to: > > if a 'content_type' attribute exists, it is used > > else if the object's id seems to have a file extension > (. in the id), try to use guess_content_type > > > else if there is a 'default_content_type' attribute, use that It would be cool if this could be acquired :-) > > else fall back to the hated application/octet-stream >(or, I've seen x-unknown-content-type used before, > but I don't know if this is really any better). > > Then we could put a 'default_content_type' attribute in the > class of dtml documents and methods, which would take care of > the most common case. Thoughts? Looks great otherwise :-) 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] PARENTS
Bill Anderson wrote: > > Tom Scheidt wrote: > > > > Hi All, > > > > I can't get > > > > > > Have you tried ? > I dont recall why ATM, but my rule-of-thumb is that if you are calling > ALLCAPS (ie. REQUEST,PARENTS...) wrap it in quotes. The all-caps things isn't the problem, will work fine :-) The problem is the [1] which is a python way of saying give me the 1st element in the list object called PARENTS. It being python, it need to be wrapped in " ";-) cheers, 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] FW: troubles with installing zope
Andy Gayton writes: > I'm trying to install zope on an alpha box running CompaqTrue64 4.0F. I've > created a seperate account to run zope under. I've installed zope > under this user's home directory. > > This seemed to bring up the server ok, however there was a PROBLEM > statement: > 2000-06-08T06:12:23 PROBLEM(100) ZServer Computing default hostname You can ignore the PROBLEM statement. It always comes and apparently has no effect. > I could then point my browser at the server on 9080 and get the introductory > page. However, if I try to do anything else, like go to admin page or quick > start documentation, the server raises the following debug message and the > browser says that the document returned no data, try again later or contact > system administrator : > > Stack overflow: pid 23282, proc python, addr 0x14085ffe8, pc 0x120038c18 It seem that the thread stack is not large enough and that Python (one of the Python threads) gets a stack overflow. You may try to look into the OS documentation to find, whether you can specify a default thread stack size. If Python uses Posix threads on your machine, you may find the information in the "pthread_create" documentation. If you find nothing, I fear, you will have to fetch the Python sources, provide large enough stack size and recompile. Dieter ___ 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] Several users having problem accessing field names of a ZSQL Method
Jones, David H writes: > For example, when I use the code: > > > vvalue="SQL()[0][_['sequence-index']]"> > , > > > > > I get the error: > Error Type: KeyError > Error Value: SQL.names Look careful at the error information. It tells you, that "SQL.names" is the problem. Because, you did not enclose it in "...", it is treated as a variable name (i.e. equivalent to ) and such a variable does not exist ==> KeyError. What you probably wanted was: Note the double quotation marks. In this case, "SQL.names" is not treated as a variable name but as a Python expression. Probably, this will not work, either. There are 2 further problems: 1. "SQL" must probably be called 2. "names" is a method and not an attribute; it must be called, too. Try something like: Dieter ___ 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] Q: Accessing ZSQL methods from Python
[EMAIL PROTECTED] writes: > my question is what type or value is returned by a ZSQL method that is > invoked from Python? ZSQL methods return "Shared.DC.ZRDB.Results.Results" instances. Such an instance essentially behaves like a sequence of objects each describing one result row. These objects have been set up such that a column value can be accessed as attribute with the column name. Thus, "results[i].column" gives the value of "column" of the i.th row. How to determine, how "Null" values are recognized, is less a Zope than a database adapter question. I would expect, that most (if not all) database adapters will map SQL Null to None. However, even some well established SQL databases do not treat Null standards-conform but represent it as the empty string. Then, the database adapter has no chance to map this to None but must use '', too. Dieter ___ 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] Help on synchronous methods?
Craig Allen writes: > How can I synchronize external method completion with DTML method invocation? > [and do I need to?] A single request is executed by a single thread. Inside this thread, all invocations are serial (and therefore synchronized). Different requests may be executed by different threads. The operations in different threads are usually not synchronized. You may use services of the Python threading module (in external methods) to provide explicite synchronization. Dieter ___ 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] Unless not quite the opposite of if?
Curtis Maloney writes: > On Thu, 08 Jun 2000, Curtis Maloney wrote: > > ... > > The problem is, when i test the page, it seems to pass over that that, and > > go right on with the page. So, I tried to be a little more explicit: > > > > > > ... > > > > > > > > > > (as I have done in MANY cases), it always evaluates true if 'parmName' > > exists in the current context. That is consistent! "unless" is equivalent to "if not". When "if" evaluate to "true", "unless" will skip its body and vice versa. 'if var' evaluates to "true", if "var" exists and has a (Python) true value. Seems that your request really has a key 'parmName'. > And worse still, I've now decided to use the FSSession, and the following > line is evaluating true when it shouldn't: > > > > Since no FSSession keys have been set, this should evaluate FALSE. The "FSSession.has_key('ReturnerID')" should of cause yield "false". This means, the "dtml-unless" body is rendered. Dieter ___ 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] sort_order???
hey that worked perfectly! thanks! most of my problems always seem to have solutions right under my nose. ;) -- -Original Message- From: Charlie Derr [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 07, 2000 11:25 PM To: [EMAIL PROTECTED] Subject: FW: [Zope] sort_order??? You saw this one, right? ~c -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Phil Harris Sent: Tuesday, June 06, 2000 6:35 PM To: michael angelo ruberto; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [Zope] sort_order??? Try: hth phil [EMAIL PROTECTED] - Original Message - From: "michael angelo ruberto" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: 06 June 2000 23:18 Subject: [Zope] sort_order??? > hello, > > ok, here is my code: > > > > | | URL> | | > > > what's wrong - nothing, it works fine. however, the result is sorted by date > ascending and i need it to be reversed. i found a reference to an attribute > "sort_order" which can be given an arg such as "sort_order=reverse". the > problem here is that it won't work and i can't find any usage info on > "sort_order". it isn't mentioned in the DTML Reference and after hours of > searching the Zope website i am empty handed. does anyone know how to use > this? thanks in advance. > > -- > > > ___ > 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 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] user contributions to Zope.org
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 This has been mentioned before, but some sites like the main PHP one allow visitors to add comments to web pages. My thought was that this should be relatively easy to implement with the Zope.org site. A small form at the bottom of each page, URL0 indexed in a SQL table, and when a page is accessed, commentary is returned ordered by submission date. You may wish to allow only members rather visitors to make comments. Anything wrong with this scenario ( apart from comments not being Catalogued ) ? - -- Regards, Graham Chiu gchiucompkarori.co.nz http://www.compkarori.co.nz/index.php Powered by Interbase and Zope -BEGIN PGP SIGNATURE- Version: PGPsdk version 1.7.1 iQA/AwUBOT9hrLTRdIWzaLpMEQLFfwCdFcoOFImah9VotLJuCGOw12KxIEkAn2+5 Cdhy/TF81iDBrBgC1l8Ao6Lb =oVHM -END PGP SIGNATURE- ___ 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] PARENTS
-Original Message- From: Tom Scheidt <[EMAIL PROTECTED]> To: Rik Hoekstra <[EMAIL PROTECTED]> Date: donderdag 8 juni 2000 22:27 Subject: Re: [Zope] PARENTS >The wierd thing is: > > gives me the parent folder. (notice no quotes) ? strange > gives me "Error Type: KeyError, Error Value: >PARENTS[1]" > gives me the parent folder. > >None give me the parent-parent folder. which wasn't your original question. So use PARENTS is a list of parent objects, from the nearest parent to the root. The root is always the last element in the PARENTS (that is written as PARENTS[-1]) hth Rik ___ 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] Wrong mime type sent by Zope on every page
> -Original Message- > From: Dan L. Pierson [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 08, 2000 3:47 PM > To: Brian Lloyd > Cc: 'Chris Withers'; Martijn Pieters; Andrew Diller; [EMAIL PROTECTED] > Subject: RE: [Zope] Wrong mime type sent by Zope on every page > > Brian Lloyd writes: > > What if we change this to: > > > > if a 'content_type' attribute exists, it is used > > > > else if the object's id seems to have a file extension > > (. in the id), try to use guess_content_type > > > > > else if there is a 'default_content_type' attribute, use that > > > > else fall back to the hated application/octet-stream > >(or, I've seen x-unknown-content-type used before, > > but I don't know if this is really any better). > > > > Then we could put a 'default_content_type' attribute in the > > class of dtml documents and methods, which would take care of > > the most common case. Thoughts? > > Sounds pretty good. Setting 'default_content_type' can then be > another item in the unwritten Guide to Writing a Zope Product. That's right - I expect that it could be useful for a few products. I can see XMLDocuments having a default of 'text/xml', but I suspect that a lot of products won't really have to care. Things that have no real similarity to conventional "pages" (like database connection objects, etc.) are probably useless to a robot that works with "pages" anyway, so they are better off sending a default non-committal response like "application/octet-stream". Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.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 )
RE: [Zope] Wrong mime type sent by Zope on every page
Brian Lloyd writes: > What if we change this to: > > if a 'content_type' attribute exists, it is used > > else if the object's id seems to have a file extension > (. in the id), try to use guess_content_type > > > else if there is a 'default_content_type' attribute, use that > > else fall back to the hated application/octet-stream >(or, I've seen x-unknown-content-type used before, > but I don't know if this is really any better). > > Then we could put a 'default_content_type' attribute in the > class of dtml documents and methods, which would take care of > the most common case. Thoughts? Sounds pretty good. Setting 'default_content_type' can then be another item in the unwritten Guide to Writing a Zope Product. ___ 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: ZUBB 0.3.2 (Zope Ultimate Bulletin Board)
http://www.zope.org/Members/BwanaZulia/ZUBB/ A few bugs fixed. A few more features added. Almost ready for prime time. Take a look and email me with your comments. If you are using it and would like to be linked to as an "example" site please send me the url. The idea is to make sure the release works and then submit it for cataloging on Zope.org. Thanks, J ___ 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] PARENTS
Tom Scheidt wrote: > > Hi All, > > I can't get > > Have you tried ? I dont recall why ATM, but my rule-of-thumb is that if you are calling ALLCAPS (ie. REQUEST,PARENTS...) wrap it in quotes. ___ 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] Wrong mime type sent by Zope on every page
> > But what if there are side effects to calling the document? > What should > > happen? I don't want a counter to go up or anything just > because a HEAD was > > called on the object. > > > > This is not as black-and-white and simple an issue. > > The web is an imperfect medium, but returning a junk content > type isn't > good. I'll throw out a proposal on this. It also is not perfect, but seems to strike a happier balance. When HEAD is called on an object, what currently happens is: if a 'content_type' attribute exists, it is used else if the object's id seems to have a file extension (. in the id), try to use guess_content_type else fall back to the hated application/octet-stream (or, I've seen x-unknown-content-type used before, but I don't know if this is really any better). What if we change this to: if a 'content_type' attribute exists, it is used else if the object's id seems to have a file extension (. in the id), try to use guess_content_type > else if there is a 'default_content_type' attribute, use that else fall back to the hated application/octet-stream (or, I've seen x-unknown-content-type used before, but I don't know if this is really any better). Then we could put a 'default_content_type' attribute in the class of dtml documents and methods, which would take care of the most common case. Thoughts? Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.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 )
Re: [Zope] PARENTS
-Original Message- From: Tom Scheidt <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: donderdag 8 juni 2000 22:07 Subject: [Zope] PARENTS >Hi All, > >I can't get > > > >to work. > >I want it reference the folder containing the folder >containing the document, but i get: > >Error Type: KeyError >Error Value: PARENTS[1] > try: (untested) Rik ___ 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] PARENTS
Hi All, I can't get to work. I want it reference the folder containing the folder containing the document, but i get: Error Type: KeyError Error Value: PARENTS[1] Thanks. Tom Scheidt | www.falsemirror.com | [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] Re: dtml-tree with data from multiple tables
>>I'd like to generate a tree with data from different >>SQL tables depending on the tree level. In other >>words, the first level data comes from one table, >>second level comes from another. >> >>How can the branches_expr expression determine what >>the current tree level is? Can I pass a parameter to >>let me know the current level? I tried the following, >>but it didn't work... >> >> > > >I think Anthony baxter's "Some neat tricks with dtml->tree" http://www.zope.org/Members/anthony/tree-coding->tricks > will help you out That How-To uses the same SQL table to define children at all levels of the tree. How can I use different tables at different levels? Am I able to determine the current level in my child_lookup() method? Thanks, Lance __ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.yahoo.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 )
Re: [Zope] Wrong mime type sent by Zope on every page
You are correct. I see it now: 3:56pm imp:[~] : %; telnet www.HOST.upenn.edu 8080 Trying XXX.91.72.121... Connected to XXX.XXX.UPENN.EDU (XXX.91.72.121). Escape character is '^]'. GET /pn21/secnet/section_text HTTP/1.0 HTTP/1.0 200 OK Server: Zope/Zope 2.1.6 (source release, python 1.5.2, linux2) ZServer/1.1b1 Date: Thu, 08 Jun 2000 19:56:24 GMT Connection: close Content-Type: text/html Content-Length: 27119 Why does Server: return linux2? This is an Compaq Alpha running Tru64!?! -andy On Thu, Jun 08, 2000 at 07:33:47PM +0200, Martijn Pieters wrote: > On Thu, Jun 08, 2000 at 11:51:03AM -0400, Andrew Diller wrote: > > It was just brought to my attention that Zope (using Zserver) is sending the wrong >MIME > > type of all its pages. > > > > Here is the header from zope: (some lines have been cut) > > -- > > > > HTTP/1.0 200 OK > > Server: Zope/Zope 2.1.6 (source release, python 1.5.2, linux2) ZServer/1.1b1 > > Date: Thu, 08 Jun 2000 15:45:23 GMT > > Ms-Author-Via: DAV > > Content-Type: application/octet-stream > > Last-Modified: Thu, 8 Jun 2000 15:45:07 GMT > > > > > > Here is one from apache: > > - > > > > HTTP/1.1 400 Bad Request > > Date: Thu, 08 Jun 2000 15:29:59 GMT > > Server: Apache/1.3.6 (Unix) > > Content-Type: text/html > > > > I want Zope to be sending text/html, as some browsers want to download the page >rather > > than view it. > > You probably did a 'HEAD' request, at which point Zope doesn't render the > page, but rather only acknowledges it's existence by returning above (bogus) > response. > > If you do a 'GET' on your Zope resource, it _will_ be called, at which point > Zope can determine what content type to send. Zope will guess the content type > for you, usually this is text/html, but you can use the How-To you mentioned > to tell Zope otherwise. > ___ 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] dtml-tree with data from multiple tables
>I'd like to generate a tree with data from different >SQL tables depending on the tree level. In other >words, the first level data comes from one table, >second level comes from another. > >How can the branches_expr expression determine what >the current tree level is? Can I pass a parameter to >let me know the current level? I tried the following, >but it didn't work... > > branches_expr="child_lookup(_['tree-level'])"> I think Anthony baxter's "Some neat tricks with dtml-tree" http://www.zope.org/Members/anthony/tree-coding-tricks > will help you out Rik ___ 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: ZSQL Bug in 2.1.6 [patch]
> >The zope list ([EMAIL PROTECTED]) is great for this sort of question ;-) > >Phill Hugo wrote: >> Sorry to bother you. I've a quick question regarding acqusition in ZSQL >> methods. When I pass args the method ignores the REQUEST stuff unless I >> specify it in the args list. Is there a way to pass one arg specifically >> while allowing the others to be seen in the aquired namespace? > >So you're calling ? > >If so, you want: > > >If you're doing that already, I can't help you, it's probably a bug :/ Hm I'm afraid Phill was bitten by the SQLMethod only accepting named parameters and fiddling with the namespace in ways I now can't remember. Perhaps your solution helps, though hth Rik ___ 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] Wrong mime type sent by Zope on every page
Martijn Pieters wrote: > But what if there are side effects to calling the document? What should > happen? I don't want a counter to go up or anything just because a HEAD was > called on the object. > > This is not as black-and-white and simple an issue. The web is an imperfect medium, but returning a junk content type isn't good. I don't know the answer to the sideeffects thing, but I would come down on the site of 'if you expose something through the web, you should expect to have it spidered...' but that's cause I value search engine hits a lot. The trick would be to set the content type when the object is created and have it stored in the object, not computed for each request. Would a property suffice for that? Then, say, if you knew your DTML method was going to return plain text, you could set the content-type property to text/plain. Thsi could be returned in the head without having to evaluate the object to return the head, which is a bit innefficient. I'm sure that's possible and better than it is now, but at the absolute least the junk should cover the most likely outcome, ie text/html instead of application/octet-stream, which is possibly the worst one I can think to choose ;-) cheers, 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] dtml-tree with data from multiple tables
I'd like to generate a tree with data from different SQL tables depending on the tree level. In other words, the first level data comes from one table, second level comes from another. How can the branches_expr expression determine what the current tree level is? Can I pass a parameter to let me know the current level? I tried the following, but it didn't work... Thanks, Lance __ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.yahoo.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] search on search results, dynamically
Hi out there, I have a Catalog that indexes ZClasses (only one type). Now I want to show the user all Instances in a list when they come to the page. The user should be able to use a search form to tailor down the amount of results, e.g. if my ZClass would handle Cars, they first see 500 car-objects, then they specify only reds, they get 200 results from the 500. Now they can specify a price and again the amount goes from 200 to say 50. This means I have to search on the results. Does anyone have an idea how to do this? TIA Philipp Dunkel * Philipp DunkelICQ# 60149094 * * zReal Productions* * meet me at DALNet chan #phidu* ___ 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] Problems uploading large attachments
I am using confera to help coordinate some development work I would like people to be able to upload large (100k) attachments into the system so the documents can be shared by people at different sites. I find that things work fine for small attachments, but for larger attachments, Zope is very slow in reading from the socket, and the browser often times out. Any ideas? Also, couldn't seem to run strace on the zope process. I started under strace but the system went bezerk opening sockets or something. Is there any way to start a single-process non-threaded zope server? (Oh, Zope 2.1.6, Linux glibc/2.0.something kernel,ix86). -- cary ___ 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] Wrong mime type sent by Zope on every page
On Thu, Jun 08, 2000 at 06:59:29PM +0100, Chris Withers wrote: > Martijn Pieters wrote: > > You probably did a 'HEAD' request, at which point Zope doesn't render the > > page, but rather only acknowledges it's existence by returning above (bogus) > > response. > > That's not very search engine friendly :( > The head should return the same type as the real document otherwise > what's the point of returning a head at all?! But what if there are side effects to calling the document? What should happen? I don't want a counter to go up or anything just because a HEAD was called on the object. This is not as black-and-white and simple an issue. -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server - ___ 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] Re: SQLSession and lexical token problems
--- In [EMAIL PROTECTED], Jason Lee <[EMAIL PROTECTED]> wrote: >I'm trying to use SQLSession, and not having much luck. The other two choices are FSSession and HappySession. FSSession is File-System-based. HappySession is RAM-based. HappySession is very easy to install and use. You don't need to worry about setting up database tables or file folder, you don't need to worry about cleaning up old session data, and you don't need to worry about initializing the session object in each REQUEST. If you (1) don't need to store the session data forever, (2) are willing to use cookie, (3) don't store gigantic session data, then you may consider using HappySession. http://www.zope.org/Members/hungjunglu/Products/HappySession regards, Hung Jung Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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 )
RE: [Zope] Plea: sequence-item and sequence_item in 2.2?
> >Hi all, > >Can I make a plea that the .diff patch that Jonothan Farr posted a > >while back be included into the 2.2 release? > >http://www.zope.org/Members/jfarr/Patches/dtml-in-sv > > I have yet to hear a downside to this patch. I second that motion. > The patch has allowed me to clean up my code signifigantly. While I understand your wanting this, the problem is a little deeper than just naming consistency. The sequence-* names were done that way intentionally to avoid consuming possible names and avoid clashes in the standard namespace, and changing the convention could cause clashes to become effective. Have you looked at the "named dtml in loop" proposal on the DTML wiki on Zope.org? http://www.zope.org/Members/4am/DTMLWiki/NamedDTMLInLoop I think that this proposal would go a long way toward easing the spelling issue as well as solving some other pains involving using nested dtml-in loops... Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.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] LocalFS from DTML
Hi, how can I use the LocalFS product programmatically, i.e. add new files using DTML, then get back to the index_html of the calling folder, instead of using manage_upload? I do the same thing with images using my own form and this DTML code: thanks --Oliver ___ 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] Wrong mime type sent by Zope on every page
Martijn Pieters wrote: > You probably did a 'HEAD' request, at which point Zope doesn't render the > page, but rather only acknowledges it's existence by returning above (bogus) > response. That's not very search engine friendly :( The head should return the same type as the real document otherwise what's the point of returning a head at all?! I think this is in the collector already, but if it isn't, it should be... cheers, 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] Wrong mime type sent by Zope on every page
On Thu, Jun 08, 2000 at 11:51:03AM -0400, Andrew Diller wrote: > It was just brought to my attention that Zope (using Zserver) is sending the wrong >MIME > type of all its pages. > > Here is the header from zope: (some lines have been cut) > -- > > HTTP/1.0 200 OK > Server: Zope/Zope 2.1.6 (source release, python 1.5.2, linux2) ZServer/1.1b1 > Date: Thu, 08 Jun 2000 15:45:23 GMT > Ms-Author-Via: DAV > Content-Type: application/octet-stream > Last-Modified: Thu, 8 Jun 2000 15:45:07 GMT > > > Here is one from apache: > - > > HTTP/1.1 400 Bad Request > Date: Thu, 08 Jun 2000 15:29:59 GMT > Server: Apache/1.3.6 (Unix) > Content-Type: text/html > > I want Zope to be sending text/html, as some browsers want to download the page >rather > than view it. You probably did a 'HEAD' request, at which point Zope doesn't render the page, but rather only acknowledges it's existence by returning above (bogus) response. If you do a 'GET' on your Zope resource, it _will_ be called, at which point Zope can determine what content type to send. Zope will guess the content type for you, usually this is text/html, but you can use the How-To you mentioned to tell Zope otherwise. -- Martijn Pieters | Software Engineermailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | The Open Source Web Application Server - ___ 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] OReilly Open Source conference
Hi Zopistas, Anyone else in this list going to the OReilly Open Source SW convention July 17-20?. Anyone interested in having an informal Zopista.party.dinner.beerfest.splunge (or whatever...) one night during the con or perhaps Sunday nite July 16? If enough people are interested I'll try to set something up. Might be fun to hang out and share experiences &stuff; Since this is Off-Topic- probably you should respond via email to: Jeff Sasmor [EMAIL PROTECTED] I'll post a summary to this list if enough people respond. PS: People from Digital Creations are welcome too! ___ 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 user folder 1.2.4
Hello guys: today I have installed Generic user folder 1.2.4 Zope version 2.1.6 redhat 6.1 on apache with zope.cgi I have untared the tgz into the top level in /home/Zope I have restarted the zope several times. When I go to Zope management and "add new item" + "Generic user folder" I get to the "add a generic user folder" html page. I leave all the settings at defualt wich includes the "cookie based" authentication radio button selected. I click add. Error type:KeyError Error Value:Parent_url I try this in different folder levels in zope to make sure it isnt a path issue. I downloaded 1.2.2 and same thing. I did this on two different zope boxes similer configuration. thanks [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] localFS for existing files
Hi, I've a folder tree on the filesystem with around 75 sub-folders and 3000 image (jpg) files arranged in these folders. When I make a localFS object to mapto this folder, I'm able to browse the tree, but clocking on the individual files fail giving an error message saying "set_objTime failed"... However, if I upload something through localFS' upload feature, there is no problem. Any clues? Thanks Babu http://vsbabu.csoft.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 )
[Zope] Getting a specific user role
Forgive me if this has been covered before. I am implementing a login/security scheme through the use of GUF and SQL methods. My user and role information is kept in a SQL database and a user can have more than one role assigned to him/her. What I would like to do is check if a specific role has been assigned to the current user, and then display some additional menu items if that role has been assigned. I haven't been able to figure out how to get and check the roles that have been assigned to the current user. As usual, any help will be greatly appreciated. -=Brad=- ___ 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] creating objects... and change properties..
- Original Message - From: "Pierre Rougier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 08, 2000 12:19 PM Subject: [Zope] creating objects... and change properties.. > > > EntryType=REQUEST['Type'], >author=Author, >title=Title, >year=Year, >publisher=Publisher, >volume=Volume, >adress=Adress, >edition=Edition, >month=Month, >note=Note > )"> > > > (Author, Title. are knowed because in a dtml-let flag) > Well, livre1 is a object created by a SFactory (a product contening a > ZClass with a propertysheet) When working with propertysheets, you need to let Zope know which propertysheet to change. All you need to do is change the above to: 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] WorldPilot - Regular messages are attachments? (PatchFix)
On Thu, 8 Jun 2000, Paul Gresham wrote: > Be careful here ... I think you'll also find that should you try to download > the attachement, It'll kill Zope. If you're running Zope with -D it'll > restart, otherwise you'll find you have no web site after trying to > download. I'm not sure what it does to kill Zope as there is no error, just > death. It seems to be a bit intermittent as well, which doesn't help. Actually that traceback was from when I tried to view the message(attachment), and it didn't kill my Zope process. > I'm trying to fix the problem and will post the patch once it's ready, > hopefully next week when I get back from China. (I'm nothing to do with the > WorldPilot chaps, I just want to use the s/ware) I'm already ahead of you there. I went ahead and debugged it myself and was able to fix the problem! Here's the patch I came up with: CUT --- WorldPilot.py~ Fri Mar 10 13:04:29 2000 +++ WorldPilot.py Thu Jun 8 10:01:04 2000 @@ -648,8 +648,8 @@ )) else: offset=0 - BodyType=ST[0] -BodySubtype=ST[1] +BodyType=string.upper(ST[0]) +BodySubtype=string.upper(ST[1]) BodyParameterList=ST[2] BodyId=ST[3] BodyDescription=ST[4] CUT Enjoy! I hope you had fun in China! Bryan ___ 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] mssql system dsn hangs causing zope to be no more
Julio: what version of zope do you run? harald - Original Message - From: "julio dinis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 08, 2000 1:49 PM Subject: [Zope] mssql system dsn hangs causing zope to be no more > Hi Zopistas! > > After some time of heavy use of the site the > zserver goes zombie, and even restarting will put zope > automatically zombie, never more. > > If I remove the system dsn I use with zodbc and restart zope, > then zope runs like a ferrari. I than create again the odbc system > dsn and everything is back again. > > But some time after the zombie arise from the grave :-( > > I'm looking at logs. > Anyone with this problem? > > Júlio Dinis Silva > > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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 )
[Zope] Importing/Exporting ZClasses
Hi, I know I've read this somewhere before but I can't seem to find it at all on zope.org or the mail archives. I need help importing a ZClass. I successfully export a python product called 'Gateway' and then I successfully export my ZClass 'ZGateway' which is based on the 'Gateway' product. But when I go to another machine, I can't successfully import my ZClass 'ZGateway'. I get this error: Error Value: Failed to import class _ZClass_for_Pool from module Products.Gateway I've already loaded my product. Does anyone know what I'm doing wrong? Or could you just point me to the doc that I'm 90% sure I've read sometime ago. Thanks, Pete ps I'm using 2.2.0a1 if that matters. -- Peter Kazmier http://www.kazmier.com PGP Fingerprint 4FE7 8DA3 D0B5 9CAA 69DC 7243 1855 BC2E 4B43 5654 ___ 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] Wrong mime type sent by Zope on every page
Hello: It was just brought to my attention that Zope (using Zserver) is sending the wrong MIME type of all its pages. Here is the header from zope: (some lines have been cut) -- HTTP/1.0 200 OK Server: Zope/Zope 2.1.6 (source release, python 1.5.2, linux2) ZServer/1.1b1 Date: Thu, 08 Jun 2000 15:45:23 GMT Ms-Author-Via: DAV Content-Type: application/octet-stream Last-Modified: Thu, 8 Jun 2000 15:45:07 GMT Here is one from apache: - HTTP/1.1 400 Bad Request Date: Thu, 08 Jun 2000 15:29:59 GMT Server: Apache/1.3.6 (Unix) Content-Type: text/html I want Zope to be sending text/html, as some browsers want to download the page rather than view it. I haven't discovered anywhere to configure this. I read the Setting the MIME Type of a DTML Method http://www.zope.org/Members/anser/howto_dtml_mimetype which claims that you can set the mime type of a method by putting it at the top of the method. I did this on a test page, but still received the same header from Zope. Can someone shed some light on this? 1. how to set the mime type for all methods and documents of Zope 2. What is the Ms-Author-Via: DAV in the Zope header? WebDAV? thanks, andy diller ___ 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] R: [Zope] dtmll-in variables
> > > line: > > > WHOOP WHOOP > > > > There are ten lines returned by this query but zope sees the line: > > > > and thinks I am trying to say sequence minus length, > rather than refer to the dtml var sequence-length > But maybe is better to use: ... ... This must be faster, I suppose... PM ___ 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] SQLSession and lexical token problems
I'm trying to use SQLSession, and not having much luck. I currently have it using a gadfly db. I tried using oracle, but all kinds of odd OCI errors, so I went back to gadfly to simplify things a bit before I tried Oracle again. When I try to access a page that sets a session variable, I get this error: Lexical token not found near :: "Xw'\012AND name = "*"'\012\012 The DTML is with in my standard header. That's a goofy session var, but I'm just trying to get it to work. It appears to be creating the session, but getting sesion data into it is causing problems. What am I doing wrong? -- Jason Lee - Programmer/Analyst The Fox and the Grapes: I'm not sure what the point is here. The moral is "It is easy to despise what you cannot get," but from experience I can tell you it's easy to despise what you do get as well, especially in terms of cable channels. -- The Brunching Shuttlecocks ___ 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] ZCatalog and Search Results
Hi all, I have a zcatalog. I use the methods generated by Z Search Interface to search the catalog. These methods will not recognize new additions to the catalog. After adding a coupon instance, the catalog search fails to find the new coupon or even the the old coupons. The add method of the zclass does have the statement: . The ZClass is subclassed catalogaware. There is a bug in Zope documented in the mailing lists. I found and tried the following code for my zclass add method: Add Coupon ZClass When I try to and an instance I get this error: Error Type: AttributeError Error Value: _u I am not sure how to restructure the method. I've been working on this for a while and I am stuck. Peacefully, Aaron ___ 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] creating objects... and change properties..
Well, I am sorry to send three messages a day, but I am really desappointed... I use the following code: (Author, Title. are knowed because in a dtml-let flag) Well, livre1 is a object created by a SFactory (a product contening a ZClass with a propertysheet) Zope do not give me any error, instantiate the new object, but does not change the properties of the new object. :^( does anybody can tell me why? I have seen a function "manage_afterClone" in the ZQR... do u know what is it? Thanks... and sorry for all my emails... ___ 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] stupid question I guess
> but I can't find the answer... > > can I set a local variable in zope on a dtml page > eg > > I had a few thoughts on creating writeable local variables so I put them down in a HowTo. See http://www.zope.org/Members/Duncan/LocalVars for instructions on a different way to manipulate local variables in Zope. Basically, by addinga small python method, it lets you write code like: and get: 1 a string 3 a str as output. -- Duncan Booth [EMAIL PROTECTED] int month(char *p){return(124864/((p[0]+p[1]-p[2]&0x1f)+1)%12)["\5\x8\3" "\6\7\xb\1\x9\xa\2\0\4"];} // Who said my code was obscure? http://dales.rmplc.co.uk/Duncan ___ 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] dtmll-in variables
Hi, I am trying to only perform a task if there are less than a certain amount of records returned by a query. Jonothan gave me the variable name for the record count: > > is there an easy way to get a record count of total number of items or > > iterations returned by a dtml-in tag? > > > --jfarr But I am struggling to put that into an if statement: line: WHOOP WHOOP There are ten lines returned by this query but zope sees the line: and thinks I am trying to say sequence minus length, rather than refer to the dtml var sequence-length Could anyone help me ut with this? josh on On another smaller note how do I write a greater than sign in this context? ___ 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] creating object from method
Take a look at: http://www.zope.org/Members/taz/addZClasses Kevin - Original Message - From: "Pierre Rougier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 08, 2000 6:57 AM Subject: [Zope] creating object from method > Well, I didn't find it in the ZQR, > I have a product which is able to create instantiate an object of a > ZClass (using a factory). > (so, I can add my special object from the Add list) > > In a dtml method, I want to create (instantiate) a new object of this > ZClass.. > I tried manage_addProduct... a little by hazard, but I don't find the > right primitive to do that > isn't there something like > manage_addObject(ZClass, id...)? ___ 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] ZCatalog and plurals (wordnet?)
does ZCatalog support plurals? zope.org is not, maybe its not running thew latest n' greatest version of ZCatalog (for good reasons?). anyway - if search for 'logo' on zope.org you get nothing, but if you search for 'logos' you get what I was looking for (to make some .ico files :) does someone have an idea of the potential to put plurals into ZCatalog? is it in the future of ZCatalog. in the presentation slides this is all that is said (thus far): Cool features (Boolean, synonym/stopwords, field/keyword/text, wildcards) would plurals fall under the catagory of, 'synonym/stopwords'? sorry for my ignorance but what is a stopword? this is new feature (?) in CVS. how is this configured? can ZCatalog and word.net be somehow integrated, this I believe would incorporate natural language queries into ZCatalog, as well as plurals! what would be the integration point to this? has anyone thought about this? it would probably be *REALLY* easy for someone familiar w/ the ZCatalog to plug this in in less than a few hours. not necessarily practical (?) -- but I believe its an interesting idea. again, where ~ would this be integrated? any ideas? wordnet: http://www.cogsci.princeton.edu/~wn/ python module: http://www.cs.brandeis.edu/~steele/sources/wordnet-python.html george runyan ___ 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 Hidden Stats
On Thu, 8 Jun 2000, Tony McDonald wrote: > 1) Zope + Apache redirected to Zope.cgi with PCGI_PUBLISHER = > pcgi/pcgi_publisher.py = single threaded server. No ZServer activity. > Uses ZPublisher? > > 2) Zope + Apache redirected to Zope.cgi with PCGI_PUBLISHER = > ZServer/PCGIServer.py = ZServer based multi-threaded server. Implies > better throughput. > > If I'm anywhere near close, can someone please point out any > resources that will show me how to get option (2) working? There should not be any difference from (1) - when you ./start ZServer, its builtin PCGI server will create a socket - just point Zope.cgi to the socket as usual (as in 1). Actually, I think you don't need to do anything special at all - the socket will be in a place where Zope.cgi expects to find it. To speed things a bit up - replace Zope.cgi with mod_pcgi2. Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ 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-dev] possible security flaw? - and, request for a phone conference. conference.
> > Basically, if a user with manager privileges to a folder changes > > their > > password to be empty, then anyone (from permitted domains) > can access the > > management screen for that folder Without Logging On... > Zope assumes that > > you are the user without the password and treats you as if > you have those > > rights. > > This is a feature, but I don't know if or where it is > documented besides > the source code (which is a bug if it isn't I guess). You're right - it is a feature. You are also right that it isn't documented anywhere that I can find :( I would suggest adding this to the Collector (as a 'Documentation Request'). Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.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 )
Re: [Zope] dtmll-in variables
> > is there an easy way to get a record count of total number of items or > > iterations returned by a dtml-in tag? > > > --jfarr great, thanks a lot! I think that this page should be updated with this info: http://www.zope.org/Documentation/Guides/DTML-HTML/DTML.7.2.html unless I am wrong. josh on ___ 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 Hidden Stats
At 10:52 am + 8/6/00, Oleg Broytmann wrote: >On Thu, 8 Jun 2000, Tony McDonald wrote: >> If you're running Zope from behind Apache/PCGI then you *have* to run >> Zope single threaded. Am I correct? > >No, you r not! Yoy can run multithreading ZServer and connect Apache to >it via PCGI. There are two PCGI servers in Zope - single-threaded and >builtin (as a component) in ZServer. > >Oleg.(All opinions are mine and not of my employer) Thanks for that Oleg, Well you live and learn... To the zope list, I'm going to go really slowly here, as this is something that has been bugging me for yonks! (I have read doc/WEBSERVER.txt ... again and again). 1) Zope + Apache redirected to Zope.cgi with PCGI_PUBLISHER = pcgi/pcgi_publisher.py = single threaded server. No ZServer activity. Uses ZPublisher? 2) Zope + Apache redirected to Zope.cgi with PCGI_PUBLISHER = ZServer/PCGIServer.py = ZServer based multi-threaded server. Implies better throughput. If I'm anywhere near close, can someone please point out any resources that will show me how to get option (2) working? Additionally, can I ask that if (2) *is* correct, then with the 2.2 release another script (w_zserver_pcgi.py ?) be released. cheers, tone -- Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 ___ 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] WorldPilot - Regular messages are attachments?
Be careful here ... I think you'll also find that should you try to download the attachement, It'll kill Zope. If you're running Zope with -D it'll restart, otherwise you'll find you have no web site after trying to download. I'm not sure what it does to kill Zope as there is no error, just death. It seems to be a bit intermittent as well, which doesn't help. I'm trying to fix the problem and will post the patch once it's ready, hopefully next week when I get back from China. (I'm nothing to do with the WorldPilot chaps, I just want to use the s/ware) Gresh From: Dieter Maurer <[EMAIL PROTECTED]> Date: Wed Jun 7, 2000 9:03pm Subject: Re: [Zope] WorldPilot - Regular messages are attachments? Bryan Stillwell writes: > Here's the traceback I received: > > Sorry, a Zope error occurred. >
Re: [Zope] FW: troubles with installing zope
Andy Gayton wrote: > > Hi, > > I'm trying to install zope on an alpha box running CompaqTrue64 4.0F. I've > created a seperate account to run zope under. I've installed zope > under this user's home directory. > Stack overflow: pid 23282, proc python, addr 0x14085ffe8, pc 0x120038c18 Which zope did you get? from source, I assume. If so, what python are you running? ~ethan ___ 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] FSSession newbie problem
Pavlos Christoforou wrote: > > Hi Marcello > > On Wed, 7 Jun 2000, Marcello Lupo wrote: > > > and macically i obtain the same error. > > this is the code i used: > > > > > > > > > > > > > > > Shouldn't the above be: > > > > Pavlos Sorry ... Yes I use "carrello" in italian stay for cart and to send the e-mail i have changed it in cart and in that point i forgotten to change carrello in cart for the e-mail. In few words i use everywhere "carrello". Sorry form the mistake but the problem is not there :-) Thanks, Marcello ___ 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] www.zope.org cataloging server problem?
ethan mindlace fremen wrote: > > Hung Jung Lu wrote: > > > > I have been trying to catalog a "News Item" and a "Product Release" inside > > www.zope.org, but I get the error > > I'm working on this one. Now fixed. ethan mindlace fremen zopatista community liason ___ 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] Plea: sequence-item and sequence_item in 2.2?
At 6/8/00 11:43:00 AM, you wrote: >Hi all, >Can I make a plea that the .diff patch that Jonothan Farr posted a >while back be included into the 2.2 release? >http://www.zope.org/Members/jfarr/Patches/dtml-in-sv I have yet to hear a downside to this patch. I second that motion. The patch has allowed me to clean up my code signifigantly. ___ 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] mssql system dsn hangs causing zope to be no more
Hi Zopistas! After some time of heavy use of the site the zserver goes zombie, and even restarting will put zope automatically zombie, never more. If I remove the system dsn I use with zodbc and restart zope, then zope runs like a ferrari. I than create again the odbc system dsn and everything is back again. But some time after the zombie arise from the grave :-( I'm looking at logs. Anyone with this problem? Júlio Dinis Silva Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] create object...
hi, following my question of this morning, I tried that: which create me the object, but in the Control_Panel.Products.Objet_BIB_Product Folder I would like it to be created in the current Folder (the one from which I try to create the object)... and don't see how, if I try: , zope tells me that ObjetBIB does not work... any idea??? ___ 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] Plea: sequence-item and sequence_item in 2.2?
Tony McDonald wrote: > Can I make a plea that the .diff patch that Jonothan Farr posted a > while back be included into the 2.2 release? > http://www.zope.org/Members/jfarr/Patches/dtml-in-sv Pretty Please :-) 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] Re: ZSQL Bug in 2.1.6 [patch]
Phill, The zope list ([EMAIL PROTECTED]) is great for this sort of question ;-) Phill Hugo wrote: > Sorry to bother you. I've a quick question regarding acqusition in ZSQL > methods. When I pass args the method ignores the REQUEST stuff unless I > specify it in the args list. Is there a way to pass one arg specifically > while allowing the others to be seen in the aquired namespace? So you're calling ? If so, you want: If you're doing that already, I can't help you, it's probably a bug :/ cheers, 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 URLS
Rik Hoekstra wrote: > so what is the use of the /? Couldn't all Zope URLs end without a /? I'm afraid this is the whole problem and it's caused by relative urls. Say you're at http://host/x/y where y is a container that renders index_html to be displayed, and in that index_html you haev a ref: b Now what you mean by that is http://host/x/y/b but because there's no / on the end, you actually get http://host/x/b How Zope handles this is by sticking in that godawful base tag: http://hosy/x/y/"> which makes relative URLs work properly. BUT, from what Gregor said earlier is a 'non-standard' way of doing it: > traditionally in a static web server, if you try > to access a URL like 'http://host/xyz' (without trailing slash), the server > will return you an error '301 Moved permanently' and will point you to the > new location 'http://host/xyz/ which is why I suggested all Zope URLs should end in / as all zope objects can be containers in the 'traditional' sense. Or we could just re-write HTTP to provide more useful information in the first place ;-) cheers, 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 Hidden Stats
On Thu, 8 Jun 2000, Tony McDonald wrote: > If you're running Zope from behind Apache/PCGI then you *have* to run > Zope single threaded. Am I correct? No, you r not! Yoy can run multithreading ZServer and connect Apache to it via PCGI. There are two PCGI servers in Zope - single-threaded and builtin (as a component) in ZServer. Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ 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 URLS (was re: WebObjects)
On Thu, 8 Jun 2000, Rik Hoekstra wrote: > so what is the use of the /? Couldn't all Zope URLs end without a /? This effectiveley stops all websuckers. Oleg.(All opinions are mine and not of my employer) Oleg Broytmann Foundation for Effective Policies [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ___ 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] Plea: sequence-item and sequence_item in 2.2?
Hi all, Can I make a plea that the .diff patch that Jonothan Farr posted a while back be included into the 2.2 release? http://www.zope.org/Members/jfarr/Patches/dtml-in-sv I believe it would help a lot of newbies and delay the (inevitable :) day when they *really* need to use the _ namespace and python expressions Cheers, Tone -- Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 ___ 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 Hidden Stats
Hi all, under /Software this is shown. The machine is running RedHat 6.1. The Zope installation is a CVS checkout with fairly conservative updating. The content is served completely out of the Zope database. Apache is used as the web server in front of Zope.org, using PCGI to integrate with the Zope server. Soon we will migrate to using FastCGI. Can someone please clarify something for me here. (I've been Zoping for 15 months and *still* don't know the correct answer) If you're running Zope from behind Apache/PCGI then you *have* to run Zope single threaded. Am I correct? Therefore, that implies that Zope org is not using ZServer to serve up documents. Still correct? If this is the case then I'm even more impressed, but would like to ask why not use Ansers 'Apache/ZServer HowTo' and get the best of both worlds? TIA Tone. -- Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 ___ 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 URLS (was re: WebObjects)
>Gregor Hoffleit wrote: >> Regarding wget: >> >> AFAICS, the problem is that traditionally in a static web server, if you try >> to access a URL like 'http://host/xyz' (without trailing slash), the server >> will return you an error '301 Moved permanently' and will point you to the >> new location 'http://host/xyz/'. Zope instead (if 'xyz' is a folder and >> there's a document 'xyz/index_html') immediately returns the rendered >> index_html if you request 'http://host/xyz'. >> >> Now whenever the 301 to the URL with a trailing slash happens, wget takes >> this as a hint that this path must have been a directory, and saves the >> result as index.html. With Zope, wget doesn't get this hint. >> >> Reading this again, I wonder if this qualifies as a bug in Zope, or is there >> a good reason for this behavior ? > >It's not so much a bug as a complication caused by the fact that Zope >isn't a filesystem server, but an orb presented through the web (correct >me if I'm slightly out ;-) > >For example http://host/x/y/z > >Could be: >-A container object z (which should have a / after it?) >-A dtml-document in folder /x/y/ >-The result of executing the z method on the y object in the /x/ folder. >-The result of executing the z method on the result of executing the y >method on the x object in the root folder. > >I'm sure acquisition adds some more options/confusions to this... ;-) > >So, that's the problem, I don't know what the solution is :( > >I do think there must be a better way than Zope's kludgey BASE tag >thing. >Maybe all Zope URLs should end in a / ? so what is the use of the /? Couldn't all Zope URLs end without a /? > >Quite radical, but maybe the most sensible and least confusing? :/ > Rik ___ 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] creating object from method
Hi all, Well, I didn't find it in the ZQR, I have a product which is able to create instantiate an object of a ZClass (using a factory). (so, I can add my special object from the Add list) In a dtml method, I want to create (instantiate) a new object of this ZClass.. I tried manage_addProduct... a little by hazard, but I don't find the right primitive to do that isn't there something like manage_addObject(ZClass, id...)? Does anyone can help me? :^) thanks by advance Piotr. ___ 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] stupid question I guess
At 7:07 pm +0100 7/6/00, josh on wrote: > > sure - where is it? :) > >great question, it took me ages to finds this again, I think it could be >linked from zope resources, or documentation, > >it is in in the zdp: > >http://zdp.zope.org/projects/zfaq/faq/DTML#951171060 > >this is a link to the appropriate section, there is an answer to the >question, how do I define variables in zope, which has the dtml-let answer, >but it is less explicit and fleshed out than yours. > >josh on Ok, I've uploaded it to the FAQ, but 'cos I didn't read the docs. it's uploaded as the contents of the email I sent ;) - it's readable, just seems a little out of context.. tone -- Dr Tony McDonald, FMCC, Networked Learning Environments Project http://nle.ncl.ac.uk/ The Medical School, Newcastle University Tel: +44 191 222 5888 Fingerprint: 3450 876D FA41 B926 D3DD F8C3 F2D0 C3B9 8B38 18A2 ___ 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 )