Re: [Zope-dev] Specify a domain and leave the password for a user blank
It's not a bug, in fact it's a cool way to allow different types of anonymous users. That's not to say that it's a fool-proof way of doing it, but it generally works, as long as you don't rely on it for any sort of security ;) . The thing is that in later zope versions the functionality has been turned off by default, and (at least for 2.6.2) you have to turn it on manually, like so: http://your.server/acl_users/setDomainAuthenticationMode?domain_auth_mode=1 The docstring for this method (from a zope 2.7.0 install) is as follows: Set the domain-based authentication mode. By default, this mode is off due to the high overhead of the operation that is incurred for all anonymous accesses. If you have the 'Manage Users' permission, you can call this method via the web, passing a boolean value for domain_auth_mode to turn this behavior on or off. btw, the method is in zope/lib/python/AccessControl/User.py hth Phil Andreas Jung wrote: I think you are describing a flaw that had been removed in older versions. Does not sound like a feature but like a bug... -aj --On Dienstag, 9. März 2004 13:31 Uhr +0100 Juan Javier Carrera Obrero [EMAIL PROTECTED] wrote: Hi, In Zope 2.4 or older versions when a user is created, if you specify a domain and leave the password for a user blank, then anyone from the permitted domains automatically gets the user's roles without having to log in. However, it is not possible in Zope 2.7. I have created a user specifying a domain and leave the password for this user blank, and although I am in the domain, I have to log in. Anybody help me about it ? How can I create a user, specifying a domain, and if the user is in the domain does not have to log in? Thanks.- ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope 2.7 broken on Windows
Better would be to install Python 2.3.3 and use that to run zope. This also gives the advantage of allowing easier installation of third party extensions to Python. Michael Long wrote: Has there been any progress on this? Or is there a sensible work-around I can give to our users - other than to switch to Linux! The workaround is to install python 2.3.2 onto a windows machine and copy the datetime.pyd from the python installion to the appropriate location in your zope installation. I don't have my windows box in front of me but IIRC it goes in the Zope-2.7.0-b3/bin folder. hth, Mike ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope + Jabber?
Gary, It's been on my mind from time to time. What sort of things can you see in your minds eye? Phil On Mon, 31 Mar 2003 10:08:41 -0500, Gary Poster [EMAIL PROTECTED] wrote: Is anyone working on Jabber integration with Zope? I can think of some nice use cases for this. Gary ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope ) -- Phil Harris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
[Zope-dev] slightly offtopic: Publish/Subscribe mechanisms and Zope.
All, Some time ago a Zope developer (a Zope Corp employee) contacted me with regards to my pyKnowNow microserver that allowed Python to be a fully fledged part of a KnowNow (http://developer.knownow.com) network. Since I can't remember who that was, typical, I'm posting this in the hope that it jogs a few memories. It may also be of interest to others :). The point of this mail is that a newish project on SourceForge, http://mod-pubsub.sf.net, is now available via cvs. This is basically a repackaging as opensource of an earlier, but it seems quite complete, version of KnowNow. The best part is that as well as the Apache Perl cgi based server there is also a complete alpha quality version of a server written in Python based on asyncore. This seems like a good opportunity to start looking at Zope and pubsub again. The mod_pubsub stuff also has a Javascript microserver. This has huge possibilities for interactive web apps, presence, instant messaging, chat, et al. I apologise if this is too far off topic but thought that people may be interested :). Phil Harris [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] Re: Zope-Dev -- confirmation of subscription -- request 616673
On Wed, 27 Nov 2002 05:54:27 -0500 [EMAIL PROTECTED] wrote: Zope-Dev -- confirmation of subscription -- request 616673 We have received a request from 193.63.123.17 for subscription of your email address, [EMAIL PROTECTED], to the [EMAIL PROTECTED] mailing list. To confirm the request, please send a message to [EMAIL PROTECTED], and either: - maintain the subject line as is (the reply's additional Re: is ok), - or include the following line - and only the following line - in the message body: confirm 616673 (Simply sending a 'reply' to this message should work from most email interfaces, since that usually leaves the subject line in the right form.) If you do not wish to subscribe to this list, please simply disregard this message. Send questions to [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Open Letter to zope-dev
He's also on #zope, chatting and supporting :) On Saturday 01 December 2001 02:02, Paul Everitt wrote: Chris was just drinking a beer with us at Orbit's twenty minutes ago, and now he's responding to email on a Friday night. That's just sick. I don't think your boss fully appreciates you, number 27. :^) --Paul Chris McDonough wrote: The session management framework (formerly known as CoreSessionTracking, now it is in the core and just called Session) is another example, if my first look was right. The API seems to have changed a lot between the last CST and the final Session release that is part of 2.5 beta. O.k., there still seems to be some backwards-compatibility, but why can't those projects be more public? The tools are there (like CVS) ... Mea culpa. One of the problems is that that nothing gets by the BDFL here (Jim), and he required some of the changes. But I admit that I should have kept the fishbowl project more updated. I did update it (lamely), but not well enough. -= C ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] A modest proposal: Replace medusa with Twisted
Been there, done that. JPE (as it was originally known, Java Python Extensions), has a fatal flaw, at most one JVM can be attached to a Python script at any one time, this single instance attaches itself to a single thread, and is not available in any other thread. I've had this working with Zope, even serving pages with Java stuff creating the content, but only intermittently. When Zope serves from the thread with the JVM attached everything is great, as soon as the thread changes, all hell breaks loose. That said, I think JPE/PJE is the best way forward, but this problem needs to be solved (if it hasn't already). Phil - Original Message - From: Tim Hoffman [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, October 11, 2001 4:32 PM Subject: Re: [Zope-dev] A modest proposal: Replace medusa with Twisted There is another approach however for getting Java and Zope together A few weeks back I was mucking around with the Python Java Extension (see Python 9 proceedings) and was able to interact with Java classes/instances directly from Zope by calling ExternalMethods. PJE basically allows the Java vm to be loaded into the python interpreter. Tim I can speak about this one... The difficult part of getting Zope to w ork on Java, IMHO, is not the server. Without too terribly much work, I think you could get a servlet in front of Zope (once you've taken care of all of the other things). We've made some progress toward getting Zope running on Java (http://www.phabric.org). The past few weeks, phabric has been on the back burner at Web Elite because of unrelated paying work. There are two main areas of work in getting Zope on top of Java: the C modules and differences between C Python and Jython. We've made quite a bit of progress in both of those areas, but there's still more to be done before Zope will fire up and answer a request. Kevin Tim Hoffman Zute Pty Ltd mobile: 0411 06 fax:+61 8 6210 1883 email: [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] A modest proposal: Replace medusa with Twisted
Hmhm, that is cool, I'll take another look then :) - Original Message - From: Itamar Shtull-Trauring [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 11, 2001 5:39 PM Subject: Re: [Zope-dev] A modest proposal: Replace medusa with Twisted Phil Harris wrote: That said, I think JPE/PJE is the best way forward, but this problem needs to be solved (if it hasn't already). Latest CVS README says: Multithreading == Multithreading issues are taken care of. There is still a known issues concerning process termination (non-deamonic thread hang out) that can require that the process be interrupted or killed explicitely. Some more work need to be done on process termination and cleanup conditions of the virtual machines. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] A modest proposal: Replace medusa with Twisted
But kosh, we all know your hatred of all things Microsoft. You're absolutely right, it could be fixed, and probably should be as well. Thing is that from what I see win32 is the most popular platform for Zope (I'm including experimenters here though, not just production sites). Anyone from ZC want to comment on that. - Original Message - From: [EMAIL PROTECTED] To: Phil Harris [EMAIL PROTECTED] Cc: Chris Withers [EMAIL PROTECTED]; Itamar Shtull-Trauring [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, October 10, 2001 12:21 PM Subject: Re: [Zope-dev] A modest proposal: Replace medusa with Twisted On Wed, 10 Oct 2001, Phil Harris wrote: I'd say the fact that it doesn't work on Win32 is a bit of a downer. Just a bit but overall I expect that could be changed if it where really important. From what I have seen under high load and python program will kill windows after a few days with some VM problems so this does not seem that important to me. I have seen on irc and the lists a good deal of problems to do with windows and zope with VM issues over time. I have not done much testing with that though since it seems like kind of a silly thing to spend a few thousand on an OS to run a free server on when you can run it on a free os also and just pay for the hardware. Designing the webpages of tomorrow http://webme-eng.com Designing the MMORPGS of tomorrow http://worldforge.org ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope Cygwin
I had a brief conversation with the Cygwin Python maintainer a little while back, supposedly the next release of Cygwin will have a threaded Python (2.1.1 or maybe even higher). Phil On Wed, 10 Oct 2001 13:17:22 -0400 Chris McDonough [EMAIL PROTECTED] wrote: FYI I finally have a Cygwin compiled Zope running in a Cygwin enviroment. This is with the very latest Cygwin distribution augmented by a locally compiled Cygwin as represented by the current Cygwin CVS files. Cool! This is excellent. This means that I stand a shot at getting rid of 200 miserable MB of VC++ on my machine. I presume this means that Cygwin Python ships with threads enabled? - C ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] WEBDav error?
All, I'm in the process of creating a Python based equivalent for Cadaver. I think there is a minor but very annoying bug in the Zope WebDav server. I don't think the contents of the properties are being quoted. For instance: One object in my ZODB has a title of 'Declare interfaces for MIMEtype - Type object registry objects.' The '-' is what causes the problem when parsed by xml.dom.minidom. Any ideas whether I'm right, and if so what can be done. Phil [EMAIL PROTECTED] +1 family member. The nuclear family is now ready.
[Zope-dev] WebDav Bug?
All, I'm in the process of creating a Python based equivalent for Cadaver. I think there is a minor but very annoying bug in the Zope WebDav server. I don't think the contents of the properties are being quoted. For instance: One object in my ZODB has a title of 'Declare interfaces for MIMEtype - Type object registry objects.' The '-' is what causes the problem when parsed by xml.dom.minidom. Any ideas whether I'm right, and if so what can be done. Phil [EMAIL PROTECTED] +1 family member. The nuclear family is now ready. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] More on WebDAV properties.
Andreas/all, hmm, now I'm confused. Looking at PropertySheets.py, it seems as if the properties are quoted, a call to xml_escape is made with the value of the property as the parameter. This call is made in dav__allprop, it seems as if it's in the proper place and all, so what is going wrong? Any other ideas? Phil ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Spell checking module
Somewhere on the xmlrpc.com site there is reference to a spell checker that can be used via xmlrpc, this could be used in Zope quite easily. http://www.stuffeddog.com/speller/ I think is the place to look. Phil - Original Message - From: Remi Delon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 9:35 AM Subject: [Zope-dev] Spell checking module Hello, I have a website where users can post messages (using a textarea). I would like to be able to spell-check what they submit and notify them of possible mistakes. (much like the online spell-checker of hotmail that I'm using right now :-)) Has anybody ever written anything for zope that does something similar ? I was thinking of using ispell, maybe through a pipe ? A search on ispell or even spell on the zope.org website doesn't give any interesting result (same on python.org). Thanks. Rémi. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] SOAP again (or, xml-rpc client for MSIE)
Brad, There are a few COM/COM+ components around that do xml-rpc. I use them with MS Word to write Word files directly to Zope for instance. Some are better than others, but ymmv so I'll hesitate to recommend one. At least one of them is listed on xmlrpc.com. Having them you could script them via jscript, and basically open up the connection easily. hth Phil [EMAIL PROTECTED] - Original Message - From: Brad Clements [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 30, 2001 9:16 PM Subject: [Zope-dev] SOAP again (or, xml-rpc client for MSIE) Hate to bring this up again. 1999 Press release from DC http://www.prnewswire.com/cgi-bin/stories.pl?ACCT=104STORY=/www/story/12-02 -1999/0001087563 An early 2000 Zope release will include support for two protocols heavily supported by Microsoft, the Simple Object Access Protocol (SOAP) and Web Distributed Authoring and Versioning (WebDAV) protocol We have WebDav.. How's SOAP look? I'm looking for a decent RPC mechanism for MSIE 5.5 to talk to Zope. MS has their webService behavior that supports SOAP. But without SDL or WSDL in Zope it's gonna take a lot of code to get working. Otherwise, I could use an XML-RPC client for IE5.5, but I can't find one! Brad Clements,[EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com AOL-IM: BKClements ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope hanging on startup
Weird, same thing just starting happening to me a few minutes ago?!?! Win2k Zope 2.3.2 Phil - Original Message - From: Andy McKay [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 26, 2001 12:53 AM Subject: [Zope-dev] Zope hanging on startup Anyone else getting occasional hangs from Zope on start up? Sometimes it starts, sometimes it seems to just hang from command line or service. Windows 2k Zope 2.3.0 Cheers. -- Andy McKay. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope 2.3.2 and win32 python 2.1
Richard, Try search for extensionbuilder.py, this is the magic. If you can't find it let me know and I'll send it to you. Be warned though that there are some things it doesn't cope with, the new btree stuff springs to mind. hth Phil - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 21, 2001 5:36 AM Subject: [Zope-dev] Zope 2.3.2 and win32 python 2.1 Are there plans for building a python 2.1 compatible Zope 2.3.2 binary release for windows? If not, could someone please let me know what the magic is for building it? I did a search on zope.org, but found little of use... Richard -- Richard Jones [EMAIL PROTECTED] Senior Software Developer, Bizar Software (www.bizarsoftware.com.au) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] How to handle special sub-directories
Remi, What I ended up doing was to use a Python Script (Internal) or whatever thy're called now. I then used the Traversal Path thingy in there to create the same effect. Naming that index_html worked for me, YMMV. Phil - Original Message - From: "Remi Delon" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, April 17, 2001 6:53 PM Subject: Re: [Zope-dev] How to handle "special" sub-directories I tried creating the pathhandler at the root and naming it index_html, but it still doesn't do what I want. If I try to access the url www.website.com, then the path_handler is indeed "called" and my DTML method is called (and the variable "path_to_handle" is empty). If I try to access the URL www.website.com/index_html/a/b/c/d, it works too (path_to_handle is ['a', 'b', 'c', 'd']). But if I try to access the URL www.website.com/a/b/c/d (which is what I want), then it fails (Zope says it cannot find the url), which means the pathhandler index_html doesn't get "called". What can I do ? Thanks, Rémi. PS: I'm using Zope 2.2.2. I hope this has nothing to do with it ! Create the pathhandler in the root and name it index_html. - Original Message - From: "Remi Delon" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, April 15, 2001 9:39 PM Subject: Re: [Zope-dev] How to handle "special" sub-directories Thanks Chris. PathHandler is indeed what I needed. But I have one last problem: It looks like I need to create a PathHandler object (called "ph" for instance), and then the url is www.website.com/ph/member_name What if I want it to work at the root of my website, like this: www.website.com/member_name ? Thanks. Remi. From: "Chris Withers" [EMAIL PROTECTED] To: "Remi Delon" [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [Zope-dev] How to handle "special" sub-directories Date: Sat, 14 Apr 2001 18:54:53 +0100 This is like transforming the URL www.website.com/member_name into www.website.com/unique_document?arg=member_name How can I do that ? Look at the PathHandler product on zope.org. Python Scripts on theri own might be able to do this too. Futz with the sub-traversal path or whatever it's called :-) cheers, Chris _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] How to handle special sub-directories
Create the pathhandler in the root and name it index_html. - Original Message - From: "Remi Delon" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, April 15, 2001 9:39 PM Subject: Re: [Zope-dev] How to handle "special" sub-directories Thanks Chris. PathHandler is indeed what I needed. But I have one last problem: It looks like I need to create a PathHandler object (called "ph" for instance), and then the url is www.website.com/ph/member_name What if I want it to work at the root of my website, like this: www.website.com/member_name ? Thanks. Remi. From: "Chris Withers" [EMAIL PROTECTED] To: "Remi Delon" [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [Zope-dev] How to handle "special" sub-directories Date: Sat, 14 Apr 2001 18:54:53 +0100 This is like transforming the URL www.website.com/member_name into www.website.com/unique_document?arg=member_name How can I do that ? Look at the PathHandler product on zope.org. Python Scripts on theri own might be able to do this too. Futz with the sub-traversal path or whatever it's called :-) cheers, Chris _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] how can I stop zope through ftp?
My take is that you won't be able to restart Zope via FTP, but you can do it with a normal URL link. The URL would be http://yourmachine/Control_Panel/manage_restart to restart it or http://yourmachine/Control_Panel/manage_shutdown to close Zope down. Obviously you will need to authenticate in some way, and this depends on what sort of user management you have set up. You could for instance, if using normal web authentication, pass the user/password on the url like so http://user:pass@mymachine/Control_Panel/manage_restart. hth Phil [EMAIL PROTECTED] - Original Message - From: "robert at rocad" [EMAIL PROTECTED] To: "zope-dev" [EMAIL PROTECTED] Sent: Monday, April 09, 2001 9:41 AM Subject: [Zope-dev] how can I stop zope through ftp? Hi there, I am looking for a way to stop zope through FTP. Why? I would like to have a button on my (Windows) desktop I can push to restart zope without leaving Zopes current setup. thanks Robert ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] MySQL-python-0.3.5 with ZMySQLDAMike
Mike, Is your Zope one of the standard installs or did you build it yourself? If it's one of the standard installs then it was built with Python 1.5.2. This means that your build of _mysql.pyd won't work with Zope as it was built with Python2.0. You will need to get Python 1.5.2 and rebuild _mysql.pyd. At least that's my take on it. Phil [EMAIL PROTECTED] - Original Message - From: "Mike Blake" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 05, 2001 10:20 AM Subject: [Zope-dev] MySQL-python-0.3.5 with ZMySQLDAMike Hello! There are two copies of the _mysql.pyd file on my disk: the one I built yesterday is here C:\Python20\win32comext\MySQL-python-0.3.5\build\lib.win32-2.0 and there's another one here that I didn't know about here: C:\Python20 I'm not sure where that one came from... Anyway, I took the _mysql.pyd from C:\Python20\win32comext\MySQL-python-0.3.5\build\lib.win32-2.0 and tried putting it in zopedirbin/lib But then when I tried to startup zope, it died. No error messages. It just tried to start and then died (on win, this is a console window that opens and closes itself) I then tried putting it in C:\zopes\chikoon\lib\python\Products\ZMySQLDA but had the same results. Sorry to continue with the saga, but at least there's no copy in html this time! I apologize to everyone for that... bye! mike blake phil wrote: RE: [Zope-dev] MySQL-python-0.3.5 with ZMySQLDAMike, You need to put the file _mysql.pyd into your PYTHONPATH. Try putting it into the same folder as the ZMySQLDA or into zopedirbin/lib. Either should work OK. mike wrote: Ok, I installed Microsoft Visual C++ from Studio 6, and after I did a successful build and install of the setup.py file for the MySQL-python-0.3.5 I installed it in a folder in my python directory: C:\Python20\win32comext\MySQL-python-0.3.5 the error reads as follows: Traceback (innermost last): File C:\zopes\chikoon\lib\python\OFS\Application.py, line 536 in import_products (Object: string) File C:\zopes\chikoon\lib\python\Products\ZMySQLA\__init__.py, line 91, in ? File C:\zopes\chikoon\lib\python\Products\ZMySQLA\DA.py, line 91, in ? File C:\zopes\chikoon\lib\python\Products\ZMySQLA\db.py, line 89, in ? ImportError: No module named _mysql -- [[EMAIL PROTECTED] chikoon]$ whoami Mike Blake ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] cl.exe with MySQL-python-0.3.5
cl.exe with MySQL-python-0.3.5Mike, Can I ask a favour of you first? Please don't send HTML formatted mail to the list, thanks. Now onto your problem. You need Microsoft Visual C (6.x?) to compile what you want. If you haven't got it, give me a few hours and I'll comple it for you. Phil - Original Message - From: Mike Blake To: '[EMAIL PROTECTED]' Sent: Wednesday, April 04, 2001 12:56 PM Subject: [Zope-dev] cl.exe with MySQL-python-0.3.5 Hi! I just tried a build of the MySQL-python-0.3.5 module and I get a file not found error because I don't have a cl.exe, which is apparently something I need to finish the build. Does anyone know what I'm missing? I have Python 2.0 and MySQL 3.23.33 on win2000 Thanks, mike -- [[EMAIL PROTECTED] chikoon]$ whoami [whoami] Mike Blake Web Developer / CellNetwork, Spain [e-mail] [EMAIL PROTECTED][icq] 103631268 [mobile] 678 642 392 [direct office phone] 91 761 4913 [office] Plaza Alonso Martinez 3, 4 Planta, 28004 Madrid ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Compiling Zope from source on Windows
This is too cool, works great! Compiled first time and run first time. Serving pages already, too cool. - Original Message - From: "Chris McDonough" [EMAIL PROTECTED] To: "Brian Lloyd" [EMAIL PROTECTED]; "Andy McKay" [EMAIL PROTECTED]; "Chris Withers" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, March 26, 2001 7:51 PM Subject: Re: [Zope-dev] Compiling Zope from source on Windows Oh my god. ;-) - Original Message - From: "Brian Lloyd" [EMAIL PROTECTED] To: "Andy McKay" [EMAIL PROTECTED]; "Chris Withers" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, March 26, 2001 1:24 PM Subject: RE: [Zope-dev] Compiling Zope from source on Windows FYI: I've finally had time to finish my present :) http://www.zope.org/Members/Brian/Misc/ExtensionBuilder/ Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations http://www.digicool.com -Original Message- From: Andy McKay [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 22, 2001 12:58 PM To: Chris Withers; Brian Lloyd Cc: [EMAIL PROTECTED] Subject: Re: [Zope-dev] Compiling Zope from source on Windows Wouldnt be anything to do with SQL would it? Brian did help me a while ago, I will have a look and see if I can find anything helpful... ;) -- Andy McKay. - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Brian Lloyd" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, March 22, 2001 9:47 AM Subject: Re: [Zope-dev] Compiling Zope from source on Windows Brian Lloyd wrote: What I'm really looking for is how to compile Zope from source on Windoze. Anybody? I sent some info to Chris Withers recently, who promised to make it into a how-to. I'd say it's time to call him on it :) I haven't got it to work yet ;-) cheers, Chris PS: You'll see one of the things that's been sucking my time in a minute or two on [EMAIL PROTECTED] ;-) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Zope 2.3.1b3 problem
Andy, Try print container.getId() return printed hth Phil - Original Message - From: "Andy Dawkins" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 26, 2001 10:29 AM Subject: [Zope-dev] Zope 2.3.1b3 problem People I have found this small problem but I don't know where it is coming from or why. If you create a Python Script in a folder: --- print container.id return printed --- If fails with this error: Error Type: TypeError Error Value: call of non-function (type list) Traceback (innermost last): File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/zope/zope-2_3_1b3/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: Traversable) File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: h) File /usr/zope/zope-2_3_1b3/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: h) File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/Scripts/Bindings.py, line 324, in __call__ (Object: h) File /usr/zope/zope-2_3_1b3/lib/python/Shared/DC/Scripts/Bindings.py, line 353, in _bindAndExec (Object: h) File /usr/zope/zope-2_3_1b3/lib/python/Products/PythonScripts/PythonScript.py, line 336, in _exec (Object: h) (Info: ({'script': PythonScript instance at 83c9878, 'context': Folder instance at 874b608, 'container': Folder instance at 874b608, 'traverse_subpath': []}, (), {}, None)) File Script (Python), line 2, in h (Object: lambda) TypeError: (see above) I have managed to reproduce this on Zope 2.3.1b2 and Zope 2.3.1b3 but it works fine on Zope 2.3.1b1 Any Ideas/Assistance? -Andy ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] ZPT trials and tribulations
All, I'm in the process of trying out the ZPT stuff(thanks to Duncan Booth for the win32 stuff). Anyway up, It's all going according to plan but I have a few issues, maybe someone has a better idea than me what's wrong here. code starts here ?xml version="1.0" ? html xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns:metal="http://xml.zope.org/namespaces/metal" head title tal:insert="here/title"The title/title /head body h2 tal:insert="here/title_or_id"the title/h2 div tal:define="ui python:container.userInfo()" b tal:replace="python:ui['dn']"crap/b b tal:replace="python:ui['sn']"crap/b b tal:replace="python:ui['cn']"crap/b /div hr / a href="index_html"click here to refresh/a /body /html /code ends here The problem is that I'm getting a traceback (I won't bore you with the details unless I have to) to the effect of 'ui' being unknown. If I replace the 'div' in the code above with: b tal:replace="python:container.userInfo()['dn']"crap/b b tal:replace="python:container.userInfo()['sn']"crap/b b tal:replace="python:container.userInfo()['cn']"crap/b then all works according to design, but with a lot more overhead. btw, the userInfo method returns a dictionary of LDAP information, it works in all other contexts, so I don't think the problem is there. Anyone got any ideas? Phil [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Alumni in zope ?
Yes - Original Message - From: "Muhammad Jahanzeb" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 13, 2001 9:27 AM Subject: [Zope-dev] Alumni in zope ? Can we implement an alumni in zope or through zope ? ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope-dev] InterbaseStorage, Win32 anyone?
Hi all, I'm trying to get InterbaseStorage working on Win32. I've got all the requisite parts and they all seem to be working OK (well, kinterbasdb and mxDateTime do) outside Zope in plain Python. When I try and import _kinterbasdb.dll, from within Zope I'm getting an error message: Unable to initialize mxDateTime Traceback (innermost last): File "D:\Zope230b2\z2.py", line 565, in ? exec "import "+MODULE in {} File "string", line 1, in ? File "D:\Zope230b2\lib\python\Zope\__init__.py", line 113, in ? m=imp.load_module('Zope.custom_zodb', m[0], m[1], m[2]) File "D:\Zope230b2\custom_zodb.py", line 1, in ? from Products.InterbaseStorage.InterbaseStorage import InterbaseStorage File "D:\Zope230b2\lib\python\Products\InterbaseStorage\InterbaseStorage.py", line 94, in ? import kinterbasdb File "D:\Python\Lib\kinterbasdb.py", line 4, in ? import _kinterbasdb AttributeError: mxDateTimeAPI Obviously (to me), since Zope has it's own DateTime module, kinterbasdb is looking there for something and not finding what it expects. I've tried monkeying with the Python path to resolve it, but even when it's searching in the right place I'm still getting the error, so I'm at a loss. Has anyone else tried this, and did you get any joy? Is anyone else using mxDateTime (I think it's a pre-requisite of mxODBC)? I've seen one other post about the exact same problem, but with no resolution. Anyone got any ideas? Phil [EMAIL PROTECTED] ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope] Editors [OT]
On Saturday 27 January 2001 03:26, Tres Seaver wrote: In the neverending "perfect Zope editor" jihad, "Phil Harris" [EMAIL PROTECTED] wrote on the side of the angels of light: I just did a search on google and came up with some interesting Win32 versions of Vim 5.7.11: See http://vim.sourceforge.net/bin_download/00index.txt Since the Python and TCL interpreters are built in it should be possible to add seamless FTP/WebDAV clients into Vim, cool! Even more insidious, consider: :py import Zope; app=Zope.app() ZEO + VIM is a r00ling IDE :) Tres. Hmm, never thought of that, hmm. (Phil starts thinking nice thoughts) Phil ___ 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] Editors [OT]
You could use STunnel to wrap Zope in SSL, www.stunnel.org. Works fine for me. Phil - Original Message - From: "A.J. Rossini" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 26, 2001 2:53 PM Subject: Re: [Zope] Editors [OT] "GLW" == Geoffrey L Wright [EMAIL PROTECTED] writes: GLW I'm (hopefully) just about to run into a situation where I'm GLW going to start off-site development on another Zope project, GLW but I need a more secure way of editing than XEmacs/efs... One possible approach (unfortunately no code) -- (X)Emacs can speak SSL (uses it, at least, for imap communication :-), so if Zope's ftp server could be SSL wrapped...? A related question -- is there any way to get Zope to listen to scp (ssh's copy)? (I'm interested in exactly the same thing, sigh...). best, -tony -- A.J. Rossini Rsrch. Asst. Prof. of Biostatistics UW Biostat/Center for AIDS Research [EMAIL PROTECTED] FHCRC/SCHARP/HIV Vaccine Trials Net [EMAIL PROTECTED] (friday is unknown) FHCRC: M--W : 206-667-7025 (fax=4812)|Voicemail is pretty sketchy CFAR: ?? : 206-731-3647 (fax=3694)|Email is far better than phone UW:Th : 206-543-1044 (fax=3286)|Change last 4 digits of phone to FAX ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] subtransactions
Now that's a good question ;) - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED] Cc: "Ian Sealy" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, January 26, 2001 3:35 PM Subject: Re: [Zope] subtransactions Chris McDonough wrote: Because most databases don't have the notion of a subtransaction. Hang on... how come, if a file upload needs to commit a subtransaction, that means that an SQL method you call while processing the same request also needs to support sub-transactions? confusedly, 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 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] Editors [OT]
Vim, seconded apart from the FTP and WebDAV bits ;), but using cadaver sounds like a good option. See also http://www.zope.org/Members/philh/vim_html for a small howto on using Vim with FTP. - Original Message - From: "Oleg Broytmann" [EMAIL PROTECTED] To: "Zope Mailing List" [EMAIL PROTECTED] Sent: Thursday, January 25, 2001 12:31 PM Subject: Re: [Zope] Editors [OT] On Thu, 25 Jan 2001, Chris Withers wrote: Hmmm... interesting, maybe it's time to find a new editor... My wishlist would be: - Runs nicely on NT4 - Syntax highlighting for Python, C, XML, HTML (and, although this is dreamworld stuff, DTML ;-) - FTP or WebDAV editing built in as standard (or alternative solution, like cadaver making it work ;-) - Regular Expression search replace - search replace of multiple files www.vim.org Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [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 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] Editors [OT]
I just did a search on google and came up with some interesting Win32 versions of Vim 5.7.11: See http://vim.sourceforge.net/bin_download/00index.txt Since the Python and TCL interpreters are built in it should be possible to add seamless FTP/WebDAV clients into Vim, cool! http://vim.sourceforge.net/bin_download/gvim57ole.zip Gvim for win32 with ole support http://vim.sourceforge.net/bin_download/vim5.7.11-win32-perl-tcl.zip Vim/GVim with Perl 5.6 and TCL 8.3.2 support http://vim.sourceforge.net/bin_download/vim5.7.11-win32-perl.zip Vim/GVim with Perl 5.6 support http://vim.sourceforge.net/bin_download/vim5.7.11-win32-python-perl-tcl.zip (G)Vim with Python 1.5.2, Perl 5.6, and TCL 8.3.2 http://vim.sourceforge.net/bin_download/vim5.7.11-win32-python-perl.zip Vim/GVim with Python 1.5.2 and Perl 5.6 support http://vim.sourceforge.net/bin_download/vim5.7.11-win32-python-tcl.zip Vim/GVim with Python 1.5.2 and TCL 8.3.2 support http://vim.sourceforge.net/bin_download/vim5.7.11-win32-python.zip Vim/GVim with Python 1.5.2 support http://vim.sourceforge.net/bin_download/vim5.7.11-win32-tcl.zip Vim/GVim with TCL 8.3.2 support - Original Message - From: "Phil Harris" [EMAIL PROTECTED] To: "Oleg Broytmann" [EMAIL PROTECTED]; "Zope Mailing List" [EMAIL PROTECTED] Sent: Thursday, January 25, 2001 12:43 PM Subject: Re: [Zope] Editors [OT] Vim, seconded apart from the FTP and WebDAV bits ;), but using cadaver sounds like a good option. See also http://www.zope.org/Members/philh/vim_html for a small howto on using Vim with FTP. - Original Message - From: "Oleg Broytmann" [EMAIL PROTECTED] To: "Zope Mailing List" [EMAIL PROTECTED] Sent: Thursday, January 25, 2001 12:31 PM Subject: Re: [Zope] Editors [OT] On Thu, 25 Jan 2001, Chris Withers wrote: Hmmm... interesting, maybe it's time to find a new editor... My wishlist would be: - Runs nicely on NT4 - Syntax highlighting for Python, C, XML, HTML (and, although this is dreamworld stuff, DTML ;-) - FTP or WebDAV editing built in as standard (or alternative solution, like cadaver making it work ;-) - Regular Expression search replace - search replace of multiple files www.vim.org Oleg. Oleg Broytmann http://www.zope.org/Members/phd/ [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 maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Editors [OT]
Boa already has a Zope interface via FTP. - Original Message - From: "Tom Deprez" [EMAIL PROTECTED] To: "Dario Lopez-Ksten" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, January 25, 2001 1:23 PM Subject: Re: [Zope] Editors [OT] Hi, What about http://freshmeat.net/projects/boa-constructor/?highlight=boa ? I heard about this yesterday from Godefroid. With some changes we perhaps could add a Zope interface? Tom. - Original Message - From: "Dario Lopez-Ksten" [EMAIL PROTECTED] To: "Chris Withers" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, January 25, 2001 11:56 AM Subject: Re: [Zope] Editors [OT] Textpad www.textpad.com EditPluswww.editplus.com I am using TextPad mostly now. Of course, given the choice, I'd much rather use BBEdit or Alpha on a Mac /dario - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Tres Seaver" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, January 25, 2001 11:08 AM Subject: [Zope] Editors [OT] Tres Seaver wrote: I'm liking it a lot -- the last reason to even consider using emacs is gone :) Hmmm... interesting, maybe it's time to find a new editor... My wishlist would be: - Runs nicely on NT4 - Syntax highlighting for Python, C, XML, HTML (and, although this is dreamworld stuff, DTML ;-) - FTP or WebDAV editing built in as standard (or alternative solution, like cadaver making it work ;-) - Regular Expression search replace - search replace of multiple files and my dream list would be: - can run multiple copies of the editor at once - class browser for python, with expand/collapse of code (like the editor for Python 2) Any ideas? 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 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 )
Re: [Zope] Change Permissions via FTP
Matthias, First thing is that your not looking at files when you ftp into Zope, your looking at objects. Secondly Zope uses it's own permissions/security system, that is far more comprehensive than *nix permissions. I really rather doubt that you can set permissions on Zope using a 'simple' chmod. Basically I'm saying that to change permisions for Zope objects, you need to use the TTW (through the web) managment interface. hth Phil - Original Message - From: "Matthias Fsting" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 25, 2001 4:40 PM Subject: [Zope] Change Permissions via FTP Hi, is there any possibility to change permissions of files via ZOPE-FTP? Every time I try this with the command "chmod", I get following error message: 500 'SITE': command not understood. What is the problem? Thanks. Matthias Fsting ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Opensource DBMS for WIN?
Try: http://www.mysql.com http://firebird.sourceforge.net (was Borland Interbase, Firebird is the open-source version). hth Phil - Original Message - From: "Paul Zwarts" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 23, 2001 9:35 AM Subject: [Zope] Opensource DBMS for WIN? Greetings, Was wondering if there was an open source dbms to use with Zope on a Win2k machine...? I found references of using cygwin to run PGSQL (which we have on our unixbox) but would prefer something that doesnt run over an extender-shell... TIA, Paz ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Some help required but no sarcastic comments this time please
Alan, So what are the errors, are there any tracebacks, does the thing your trying to do work when outside of Zope? What version of MySQL is it? Can you run any queries, or is it one particular query? What versions of the MySQLDB and MySQLDA are you using? Answering some/all of these questions will get you closer to an answer. I can give you some hope though. I have a Zope+MySQL site that has been running non-stop for about 7-8 months with no problems at all, so it can be done. One final note, the people on the list are, as I'm sure you are, busy people. They do their best to help and generally do. Some posts slip through the net though, I wouldn't take offence at not getting answered. hth Phil [EMAIL PROTECTED] On Tuesday 23 January 2001 23:17, alankirk wrote: Hi there, i sent an email the other week regarding problems i've been experiencing with zope and MySQL. I've set up a database connection for zope and mysql and it sort of works. I can send queries to add data to my database ok but when i send a query to get data from my database i get one of 3 errors and my python server that zope runs from stops. The errors i get are Python experienced an error in (either nothing,MYSQL.DLL or PYTHON15.DLL). I am using Zope 2.2.2 on windows(this time i'd appreciate no sarcastic comments this time) I've sent a few emails about this problem to various people (including to this address) and the response has been pretty poor, i've even tried to email people involved with the mysql database adaptors and got no response. It is really important that i get this problem sorted now if possible as my final year project for university depends on this 'bug' getting fixed. If you can give me help on this or point me in the direction of someone who can, i'd be grateful Cheers Alan Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1" Content-Transfer-Encoding: quoted-printable Content-Description: ___ 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] Adding roles in 2.3b2 and CVS
All, Has anyone else had trouble adding roles when using 2.3b2 and CVS versions of Zope? There seems to be a consistent bug in ZopeDIR/lib/python/AccessControl/role.py. The calls to self.manage_access(self,REQUEST) seem to have too many arguments, am I right? I 'fixed' my version of the file ut someone with more nouse will need to check this out. Would this be better reported in the collector? Phil [EMAIL PROTECTED]
Re: [Zope] Re: Tools used for programming Zope
Andreas, see www.webdav.org and the w3 pages on it (www.w3.org) Phil - Original Message - From: "Andreas Tille" [EMAIL PROTECTED] Cc: "Zope user list" [EMAIL PROTECTED] Sent: Monday, January 22, 2001 2:25 PM Subject: [Zope] Re: Tools used for programming Zope On Fri, 19 Jan 2001, Steve Spicklemire wrote: 2) When you are 'editing' a Zope object you use an editor that knows about FTP (e.g., emacs), WebDAV or a web browser. Sorry for my ignorance. I tried using emacs with ange-ftp and it works. But what is WebDAV? I've read this word first time in this thread and don't have the slightest idea what it is. Kind regards Andreas. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Adding roles in 2.3b2 and CVS
btw, follow on from my last post, looks like the original problem is already fixed in CVS. - Original Message - From: "Mayers, Philip J" [EMAIL PROTECTED] To: "'Martijn Pieters'" [EMAIL PROTECTED]; "Phil Harris" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, January 22, 2001 3:57 PM Subject: RE: [Zope] Adding roles in 2.3b2 and CVS I've got this problem as well - who wants to report it? Zope Version Zope 2.3.0b2 (source release, python 1.5.2, linux2) Python Version 1.5.2 (#1, Dec 21 2000, 15:29:32) [GCC egcs-2.91.66 19990314/Linux (egcs- System Platform linux-sparc Process Id 23242 (1024) Running For 18 hours 53 min 23 sec Error Type: TypeError Error Value: too many arguments; expected 2, got 3 Traceback (innermost last): File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope23/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope23/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_defined_roles) File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_defined_roles) File /usr/local/Zope23/lib/python/AccessControl/Role.py, line 489, in manage_defined_roles (Object: ApplicationDefaultPermissions) TypeError: (see above) Regards, Phil +--+ | Phil Mayers, Network Support | | Centre for Computing Services| | Imperial College | +--+ -Original Message- From: Martijn Pieters [mailto:[EMAIL PROTECTED]] Sent: 22 January 2001 12:02 To: Phil Harris Cc: [EMAIL PROTECTED] Subject: Re: [Zope] Adding roles in 2.3b2 and CVS On Mon, Jan 22, 2001 at 11:31:27AM -, Phil Harris wrote: Has anyone else had trouble adding roles when using 2.3b2 and CVS versions of Zope? There seems to be a consistent bug in ZopeDIR/lib/python/AccessControl/role.py. The calls to self.manage_access(self,REQUEST) seem to have too many arguments, am I right? I 'fixed' my version of the file ut someone with more nouse will need to check this out. Would this be better reported in the collector? Reporting to the Collector is a good idea, especially if you can reproduce the problem. -- Martijn Pieters | Software Engineer mailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Adding roles in 2.3b2 and CVS
Looks like it could be the same problem, just in a different place. - Original Message - From: "Mayers, Philip J" [EMAIL PROTECTED] To: "'Martijn Pieters'" [EMAIL PROTECTED]; "Phil Harris" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, January 22, 2001 3:57 PM Subject: RE: [Zope] Adding roles in 2.3b2 and CVS I've got this problem as well - who wants to report it? Zope Version Zope 2.3.0b2 (source release, python 1.5.2, linux2) Python Version 1.5.2 (#1, Dec 21 2000, 15:29:32) [GCC egcs-2.91.66 19990314/Linux (egcs- System Platform linux-sparc Process Id 23242 (1024) Running For 18 hours 53 min 23 sec Error Type: TypeError Error Value: too many arguments; expected 2, got 3 Traceback (innermost last): File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope23/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope23/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_defined_roles) File /usr/local/Zope23/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_defined_roles) File /usr/local/Zope23/lib/python/AccessControl/Role.py, line 489, in manage_defined_roles (Object: ApplicationDefaultPermissions) TypeError: (see above) Regards, Phil +--+ | Phil Mayers, Network Support | | Centre for Computing Services| | Imperial College | +--+ -Original Message- From: Martijn Pieters [mailto:[EMAIL PROTECTED]] Sent: 22 January 2001 12:02 To: Phil Harris Cc: [EMAIL PROTECTED] Subject: Re: [Zope] Adding roles in 2.3b2 and CVS On Mon, Jan 22, 2001 at 11:31:27AM -, Phil Harris wrote: Has anyone else had trouble adding roles when using 2.3b2 and CVS versions of Zope? There seems to be a consistent bug in ZopeDIR/lib/python/AccessControl/role.py. The calls to self.manage_access(self,REQUEST) seem to have too many arguments, am I right? I 'fixed' my version of the file ut someone with more nouse will need to check this out. Would this be better reported in the collector? Reporting to the Collector is a good idea, especially if you can reproduce the problem. -- Martijn Pieters | Software Engineer mailto:[EMAIL PROTECTED] | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ - ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] OT: Browsers
Chris, It's worse, Mozilla 0.7 also has some issues, Mozilla 0.6 is probably the best so far. I use it as my main browser. You might also want to check out the Beonex Communicator (based on Mozilla, but with bug/security fixes) http://www.beonex.com. hth Phil - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Shane Hathaway" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, January 18, 2001 9:37 AM Subject: Re: [Zope] OT: Browsers Shane Hathaway wrote: But I hope this will soon become a moot point. Go Mozilla! Hmmm :-( Mozilla has been even more buggy in my experience... Anyone know how Netscape 6 (Mozilla in Netscape clothing ;-) does on stability and reliability? 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 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-dev] recent DynPersist.dll for windows
Steve, I've got one on a box at work, I'll check back with you tomorrow, and if you still need it it's yours. I may even be persuaded to compile a new one ;) Phil On Wednesday 17 January 2001 23:13, Steve Alexander wrote: Hi Folks, Does anyone have a recently compiled DynPersist.dll from ZPatterns, compiled for Windows ? Thanks. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope] Flat-style
CSS - Original Message - From: "Tom Deprez" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 4:15 PM Subject: [Zope] Flat-style Not really zope specific, but I hope nobody minds me asking. How do you implement flat-looking input boxes? Does somebody knows this? Thanks in advance, Tom. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Session
Seconded, the docs are good and the product sems to work 8) - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "peter bengtson" [EMAIL PROTECTED] Cc: "Anderson Ami" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, January 16, 2001 12:07 PM Subject: Re: [Zope] Session Im using the Happy Session, but I heardy bad things about this product, Which one do you think is better ? Thanks a lot Anderson Anderson, Why not try Zope's own session product: http://www.zope.org/Members/mcdonc/Products/CoreSessionTracking this will be in the Zope core from 2.3 onwards but is available for download now. It has great docs, so make sure you read them before posting here ;-) 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 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] MySQLDA and images beeing corrupted
Change your dtml to: dtml-in hent_bilde dtml-call "RESPONSE.setHeader('Content-Type', 'image/gif')" dtml-call "RESPONSE.setHeader('Content-Length', _.len(bildefil))" dtml-return bildefil /dtml-in hth Phil - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 12, 2001 12:18 PM Subject: [Zope] MySQLDA and images beeing corrupted I am using Zope 2.3a2, and MySQLDA 1.1.3, with one patch installed (it was supposed to fix problems with autoincrement fields) Everything is installed, with no apparent problems. I would like to store images as BLOBs in a MySQL database (version 3.22) I am able to store the images in the database, but somehow, along the way, they become corrupted, and show up in the browser as a corrupted image. I can, howover, recognize some of the features of the original image. The top part is mostly intact, and the colours seem right. The image is retreived from the database like this: method named "image", with everything *on one line*. dtml-in hent_bilde dtml-call "RESPONSE.setHeader('Content-Type', 'image/gif')" dtml-call "RESPONSE.setHeader('Content-Length', _.len(bildefil))" dtml-var bildefil /dtml-in With "hent-bilde" as follows: select * from bilder where dtml-sqltest id type=int The URL used is: "/image?id=10" The image is stored in the database as follows: insert into bilder (bildefil, kilde, kommentar, bildetype) values ( dtml-sqlvar "REQUEST['bildefil'].read()" type=string, dtml-sqlvar kilde type=string, dtml-sqlvar kommentar type=string, dtml-sqlvar bildetype type=string ); Any ideas? I feel like I am *so* close to making this work! smund Hjulstad ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope-dev] New UI for 2.3
Brian, Good answer, I for one would like to add a vote for the new UI. +1 Phil [EMAIL PROTECTED] On Thu, 11 Jan 2001, Brian Lloyd wrote: I think the new UI for 2.3 is great improvement over 2.2. I'm already finding the sorted tables of folder contents useful, and having the add new items select at the top saves time. However, I do not like the 3-frame interface. I feel that the top frame is wasted space. The Zope logo and "Logged in as username | Logout" | could as easily go at the bottom of the tree-view frame on the left. This would leave extra screen space for doing work. I realize that I can make the frame smaller by dragging it with my mouse. I do a lot of TTW development, and I think I might find that cumbersome, so I guess I'll be hacking the top frame out of my management interface :-) Are you guys working on 486's with 13in. monitors at 640x480 or something? :^) Seriously - Zope has been criticized for a very long time for being, ah, aesthetically challenged :) It is a valid criticism - we have been (and quite honestly, will continue to be) more concerned with function over form. But is it really so bad to make a 32 pixel-high concession to a small pittance of branding? I know that "branding" isn't important for those who are already believers, but Zope has grown enough that its reasonable to put some effort into "first impression factor". It doesn't help the community for reviews to come out that waste words on the visual appeal shortcomings of the UI and totally miss the point. A better first impression is a Good Thing. The top frame is also a place where we might want to put more "placeless" operations like logout in the future. You can only jam so much into the tree pane without it looking very much like way too much is being jammed into the tree pane :) FWIW, one of the things we may put there later is a way to do "browser preferences" via cookies to control things like default text area sizes. That could also have a "hide top frame" option for those who really can't spare the 32px. :^) Brian Lloyd[EMAIL PROTECTED] Software Engineer 540.371.6909 Digital Creations www.digicool.com ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] How do I create a folder with subfolders, docs etc?
Espen, How about untested, but similar works in Python External method: dtml-call expr="manage_addFolder('newfolder')" dtml-call "REQUEST.set('newf',_['newfolder'])" dtml-call expr="newf.manage_addFolder('anotherfolder')" maybe?!? Phil On Thu, 11 Jan 2001, Espen Sorbye Frederiksen wrote: Have tried the simplest way: dtml-call expr="manage_addFolder('newfolder')" dtml-call expr="newfolder.manage_addFolder('anotherfolder')" this does not work! Any solutions or alternative ways to do it? ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope] xmldocument
Chris, This occurs using the bog-standard ZODB as well, nothing to do with any other storage facility. Phil - Original Message - From: "Chris McDonough" [EMAIL PROTECTED] To: "Phil Harris" [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, January 10, 2001 9:27 AM Subject: Re: [Zope] xmldocument Relational database adapters (like ZOracleDA, etc.) are currently not compatible with subtransactions. I worked around this for a customer by adding dummy commit_sub and abort_sub methods to the database adapter's DB class, e.g. def commit_sub(*arg, **kw): pass def abort_sub(*arg, **kw): pass - Original Message - From: "Phil Harris" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, January 10, 2001 3:56 AM Subject: Re: [Zope] xmldocument Bak, I can't help you fix it but I can tell you what the problem is, the file is too big for Zope to cope with in one transaction so it starts a sub-transaction and there is a bug in the sub-transactioning engine. The same thing happens with a normal 'File' type as well. You should probably check the collector to see if this has been fixed or even reported. Phil - Original Message - From: "Bak@kedai" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 10, 2001 4:40 AM Subject: [Zope] xmldocument happy new year all i can't get xmldocument to work with zope2.2x i can install the product ok, but can;t add XML Document. i got attribute error. any insight into the error is appreciated. can anybody suggest ways of rendering xml documents in zope? thanks --8 PSTRONGAttributeError/STRONG/P Sorry, a Zope error occurred.p !-- Traceback (innermost last): File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/kdie/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 175, in publish File /home/kdie/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 235, in commit File /home/kdie/Zope/lib/python/ZODB/Transaction.py, line 261, in commit AttributeError: commit_sub -- -- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine We don't need no, no, no, no, no parental guidance here! ___ 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 )
Re: [Zope] xmldocument
Bak, I can't help you fix it but I can tell you what the problem is, the file is too big for Zope to cope with in one transaction so it starts a sub-transaction and there is a bug in the sub-transactioning engine. The same thing happens with a normal 'File' type as well. You should probably check the collector to see if this has been fixed or even reported. Phil - Original Message - From: "Bak@kedai" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 10, 2001 4:40 AM Subject: [Zope] xmldocument happy new year all i can't get xmldocument to work with zope2.2x i can install the product ok, but can;t add XML Document. i got attribute error. any insight into the error is appreciated. can anybody suggest ways of rendering xml documents in zope? thanks --8 PSTRONGAttributeError/STRONG/P Sorry, a Zope error occurred.p !-- Traceback (innermost last): File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/kdie/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /home/kdie/Zope-2.2.0-src/lib/python/ZPublisher/Publish.py, line 175, in publish File /home/kdie/Zope-2.2.0-src/lib/python/Zope/__init__.py, line 235, in commit File /home/kdie/Zope/lib/python/ZODB/Transaction.py, line 261, in commit AttributeError: commit_sub -- -- http://www.kedai.com.my/kk http://www.kedai.com.my/eZine We don't need no, no, no, no, no parental guidance here! ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] NEWBIE: Versions
Andy, Follow the instructions as J said and you won't go far wrong, *but* be aware that if you have any external methods these are not exactly subject to the versioning. The problem happens when you restart Zope and the new code is read into both the versioned and original 'External Method'. Phil [EMAIL PROTECTED] - Original Message - From: "J. Atwood" [EMAIL PROTECTED] To: "Andy Gates" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, January 08, 2001 1:10 PM Subject: Re: [Zope] NEWBIE: Versions At 12:43 PM + 1/8/2001, Andy Gates wrote: Hi folks, 'Tis time, think I, to use versioning: keep the live site running and work on a version with all changes, let the droids assess it, and then roll it live in one chunk. Congrats on getting a Zope site up and running (and working with marketing at all). Version is very simple. On the top root level add a version from the drop down and give it a name. I usually give it a capital name or start it with a number so it will float to the top of the list. Then go into it (click on it) and click on the "Start working in " button. This will put you into the version and anything you do will not be seen by anyone outside of the version. You can browse your sites, see the updates etc. When you are done with the changes and everything works just go back into the version, Leave it and click on the "save/discard" tab. At this point if you save your changes they go live, if you discard they are lost. If you drop a note in there you will see it in your undo log. Some notes: - You can have more than one version going but they cannot be working on the same item - A lot of people can join a version to work in it or view it - Try to make the name of your version match what you are doing and don't let changes sit in it too long or you will forget what you did Enjoy, 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 ) ___ 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] Core Session Tracking kudos namespaces
- Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Chris McDonough" [EMAIL PROTECTED] Cc: "Dieter Maurer" [EMAIL PROTECTED]; "Bob Sidebotham" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, January 04, 2001 9:57 AM Subject: Re: [Zope] Core Session Tracking kudos namespaces Chris McDonough wrote: So the question becomes: do we want DTML namespace lookup magic or no DTML namespace lookup magic for names that we attempt to look up in a session data object? I don't know the answer. I'm so sick of magic at this point that I'm apt to vote "no", but if it affords us some provable real-world benefits, I could change this vote. If someone would be kind enough to give me an example where having DTML namespace lookup magic for names out of a session data object would be very useful, I'd consider it carefully. Well, if you want to get something from the session, but it might not be there and you want to fall back to somethign that was submitted on the form or, more likely, is a property of some other object and hence acquirable. seconded. This would come in most handy right now for me. Of course, the best solution would be for the 'magic' lookup to be optional... That'd also be cool. 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 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] ZBabel translation to Postgres
Olaf, The left join is a notation that says to get all records from the left hand side of the join and only those records where the criteria matches from the right hand side. It is btw a part of most RDBMS engines I've ever used, so it's not that unusual a syntax. You can also do something similar by using unions. hth Phil [EMAIL PROTECTED] - Original Message - From: "Olaf Zanger" [EMAIL PROTECTED] To: "Zope Mailinglist" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, January 04, 2001 9:50 AM Subject: [Zope] ZBabel translation to Postgres Hi there, i'm using ZPyGreSQL successfully for my database. To keep it simple i don't want to use MySQL for ZBabel. ZBabel though uses some MySQL specific syntax which i am unsuccessfully translating to PostgreSQL syntax: Description "md5Hash" are the same fore entries with different "lang" fields. They are used to translate depending on selected language. SELECT Phrases.* FROM Phrases LEFT JOIN Phrases as b ON Phrases.md5Hash = b.md5Hash AND Phrases.lang b.lang WHERE b.md5Hash is NULL AND Phrases.lang=dtml-sqlvar srcLang type=nb What does the whole thing do anyway? How can you join "Phrases.md5Hash = b.mdf5Hash", while "md5Hash is NULL"? What is different in the LEFT JOIN ... ON ... statement to a normal WHERE clause? My try for translation to PostgreSQL (which I assume is completely ignorant): SELECT Phrases.* FROM Phrases as b WHERE Phrases.md5Hash *= b.md5Hash AND Phrases.lang b.lang AND b.md5Hash is NULL AND Phrases.lang=dtml-sqlvar srcLang type=nb Has anybody ported ZBabel already? Thanks for help Olaf -- soli-con Engineering Zanger Dipl.-Ing. (FH) Olaf Marc Zanger Lorrainestrasse 23 3013 Bern / Switzerland Fon: +41-31-332 9782 Mob: +41-76-572 9782 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.soli-con.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] WIN2k batch problem
The only thing I could think of is that the output is getting piped to more or similar!? Phil - Original Message - From: "Robin Becker" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 04, 2001 12:54 PM Subject: [Zope] WIN2k batch problem I'm trying to run Zope 2.2.2 under win2000 in a batch file. I'm just watching error messages and prints. I find that when zope has written a page to the cmd.exe window it locks further prints from python until I hit a key in the window and then it releases another page full. Is there a Win NT/2K guru who knows about such things and how to prevent this? -- Robin Becker ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope-dev] case insensitive sorts
See below (nothing earth shattering tho) ;) - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Shane Hathaway" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, January 03, 2001 10:58 AM Subject: Re: [Zope-dev] case insensitive sorts Shane Hathaway wrote: Python's sort() lets you sort based on not only strings but also tuples, lists, and numbers, which is a very useful feature. Thus sort() is intended to be a highly generalized method. It is useful but not ideal for sorting text strings. What you *really* want is a second method, perhaps in a new module (called "textops" or something similar) that would also include multilingual text splitters and other utilities for working with human-readable text. I agree that's a good idea, but all I'm talking about is the simple case of sorting strings, in which python's current implementation isn't very helpful and I don't see any situation where sorting: Andrew David Wayne bart sophie is better than sorting: Andrew bart David sophie Wayne That's only because you use NT (ach spit). ;) cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope] Advice on searching/indexing Word documents?
Alex, If your running Zope on Win32 you could use COM to snatch the text fairly easily and quickly. The COM interface to Word is well documented in the help files (if they're not installed, you'll find them on the CD). I used this technique to create XML from Word in the past and it works (was too slow for my needs tho, YMMV) hth Phil [EMAIL PROTECTED] On Tue, 02 Jan 2001, Bowyer, Alex wrote: Our company has a repository of staff CVs (Resumes) as Word Documents and I am about to embark on creating a new feature for our Zope Intranet to allow project managers to search those documents for keywords such as particular skills or projects. I am thinking about several possibilities such as a skills/CVs database linked in via ODBC, or some task that converts the Word documents to text files which can then be searched by Zope (I think Zope can do this, and I assume it can't search Word format directly?). Has anyone ever approached a similar problem, does anyone have any tips on how to index/search a load of documents in Zope? Any tips/suggestions/comments would be most welcome. Thanks, Alex == Alex Bowyer IT Consultant, Logica Australasia Tel: +61 2 9202 8130 Fax: +61 2 9922 7466 E-mail : [EMAIL PROTECTED] WWW: http://www.logica.com.au/ == ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Closer But No Cigar
Ben, Check the permissions on the var folder, it needs to be writable by the user that starts Zope. This being said if you start Zope as root then the user changes to nobody, so var needs to be writable by nobody. something like chmod -R nobody:nobody var works for me. - Original Message - From: "Ben Ocean" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 23, 2000 9:50 PM Subject: [Zope] Closer But No Cigar Hi; Well, I've finally got python-1.5.2 installed and running and Zope re-installed from the source code to the point where it gives me the good 'ol *Done!* line, but when I type ./start it chokes. Here's the print-out: thor:/apache/vhosts/Zope-2.2.4-src# ./start [1] 4983 thor:/apache/vhosts/Zope-2.2.4-src# -- 2000-12-23T21:44:24 PROBLEM(100) ZServer Computing default hostname -- 2000-12-23T21:44:24 INFO(0) ZServer Medusa (V1.16.4.3) started at Sat Dec 23 13:44:24 2000 Hostname: thor.galaxynet.com Port:8080 -- 2000-12-23T21:44:24 INFO(0) ZServer FTP server started at Sat Dec 23 13:44:24 2000 Authorizer:None Hostname: thor.galaxynet.com Port: 8021 -- 2000-12-23T21:44:24 INFO(0) ZServer Monitor Server (V1.8.4.1) started on port 8099 Traceback (innermost last): File "/apache/vhosts/Zope-2.2.4-src/z2.py", line 710, in ? pf = open(PID_FILE, 'w') IOError: [Errno 13] Permission denied: '/apache/vhosts/Zope-2.2.4-src/var/Z2.pid' What am I missing? TIA, BenO ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] mySQL DA on Win32
Lee, Have you read the MySQL on Win32 howto? btw, give my regards to Duncan. Phil [EMAIL PROTECTED] - Original Message - From: "Lee Reilly CS1997" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 14, 2000 2:46 PM Subject: [Zope] mySQL DA on Win32 Hi, Zope is currently being installed on the Unix machines at my uni but it won't be available for a while. However, I have set up a mySQL database in the Dept. and installed Zope on a Dept. machine (Windows 95). I can only access the database from uni so I must have a database adpater setup on this machine. I have seen the mySQL DA on Zope.org but I understand that it "does not support win32 platforms at this time". I need database access ASAP so can anyone offer any advice? Thanks very much, Lee ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] LoginManager broken?
Phil, Something that bit me when using the howto you referenced. When creating the methods, as soon as the authenticate method is created the LoginManager starts using it, but since the other methods don't yet exist it starts generating errors with the result that you are locked out of the LoginManager and any folders secured by it. My solution was to create all the methods needed but with bogus names, such as by sticking an x as the first character of each. This way you can test each in isolation and when satisfied that they are correct, rename them all in one fell swoop. Ipso facto, presto magico you have a working LoginManager. I've tried this procedure on 2.2.x with various versions of LoginManager/ZPatterns and it's worked every time. The latest Zope I've used it with is 2.2.4. hth Phil [EMAIL PROTECTED] - Original Message - From: "Mayers, Philip J" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 11, 2000 8:34 PM Subject: RE: [Zope] LoginManager broken? Thanks, I'll take a look. Re: LoginManager - After a fast turnaround (confirming my ample faith in Open Source software) Magnus Heino pointed me in the right direction - the dtml methods and SQL objects need to be inside the UserSource folder, *not* the LoginManager folder as the Howto implies (or maybe I just can't read...). Can someone confirm that the SQL methods need to be inside the UserSource folder? (which is mildly annoying, but there we go...) I'm still having some problems getting multiple roles working, but it's behaving itself for now. Now all I have to do is solve my LIMIT problem... Regards, Phil +--+ | Phil Mayers, Network Support | | Centre for Computing Services| | Imperial College | +--+ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 11 December 2000 20:18 To: Mayers, Philip J Cc: '[EMAIL PROTECTED]' Subject: Re: [Zope] LoginManager broken? You might look at http://www.zope.org/Members/dlpierson/sqlLogin for a different approach that works for me in early testing. Note that it needs additional work before being turned loose on a live site. Dan Pierson "Mayers, Philip J" [EMAIL PROTECTED] writes: Does it even *work*? Even a little bit? Because other than repeating the same process 12 damn times, so far I'm not convinced. Maybe I'll look in the source code to see if there's actually anything in the files (other than a HOWTO.txt, which is empty, which BTW is more annoying than there not being one). The "LoginManager with SQL database" on the Zope site seems to end up with me having a folder I can't access through the management interface (unless you count "management" as "this is the index_html" document) Wow, thanks! Now I have to delete it and start all over again... In all seriousness - there *must* be one person who has gotten an SQL-backed LoginManger working with 2.2.4 - surely? Thanks for all the great work (little bugs aside...) - Zope is a wonderful product! Now if only it could serve XML as well as Cocoon... Regards, Phil +--+ | Phil Mayers, Network Support | | Centre for Computing Services| | Imperial College | +--+ ___ 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 )
Re: [Zope] Relocating installed zope -- was LoginManager broken?
Oliver, I haven't been following this thread, but here's how I do it. It's quite simple. 1.Copy the folder with Zope in. 2.edit z2.py to change all references to the old folder to the new folder. 3.edit the start script in the same way. That should be it. hth Phil - Original Message - From: "Oliver Bleutgen" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 12, 2000 9:16 AM Subject: RE: [Zope] Relocating installed zope -- was LoginManager broken? Btw. can anybody tell me if and how it's possible to relocate an installed Zope? Hmm... perhaps I am not understanding what exactly you mean, but a thought might be to use tar (on a UNIX system at least) to preserve your setup. Assuming you are using ZServer, Try shutting down Zope with ./stop, then do Sorry if I wasn't clear. I wanted to make a functional copy of an existing zope installation. I wanted to "clone" a zope in order to be able to do an installation of some more "dangerous" products/patches and later on just change my apache/proxy pass to point to the new zope. I know the techniques w.r.t. shell commands etc. But very wired things happened with the new zope (old paths showed up in tracebacks etc.), although I had changed all installation paths... cheer ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Microsoft IIS 4.0 and Zope
That's exactly what I do, use Apache and ProxyPass to provide a unified URLspacebetween IIS and Zope. Works well! - Original Message - From: "Petter Enholm" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, December 08, 2000 3:17 PM Subject: Re: [Zope] Microsoft IIS 4.0 and Zope The easiest thing to do (for me now) is to add Apache as front-end web-server for both IIS and Zope. The access to documentation, well tested and documented rules for rewriting, lots of HOW-TO's, mailing lists etc makes this a good choice - open source rules! Any comments on running Apache as front-end for IIS 4.0 and Zope? I would gladly throw out the IIS server, but my customers has software that relies on this server. Best regards Petter Enholm - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, December 08, 2000 4:05 PM Subject: RE: [Zope] Microsoft IIS 4.0 and Zope Hi Petter, I have the same problem. Could you tell me if you find a way? I hope someone on this list have an answer! -Message d'origine- De : Petter Enholm [mailto:[EMAIL PROTECTED]] Envoyé : vendredi 8 décembre 2000 07:53 À : [EMAIL PROTECTED] Objet : [Zope] Microsoft IIS 4.0 and Zope Hi, This may be more of a Microsoft IIS questions than Zope question, but I give it a shot! I have installed Zope (on port 8080) on a Windows NT 4.0 server with IIS 4.0, followed to Howto that explains how to set up PCGI with IIS, and all works very well. I can access Zope through http://localhost/scripts/zope.pcgi Next step: I want to access the Zope site through a given DNS name, f eks www.mydomain.com. How can I do this with IIS 4.0? I find no way to redirect a virtual host and at the same time rewrite the URL so that the user gets http://www.mydomain.com in the browser, not .../scripts/zope.pcgi. Anybody out there with knowledge on this issue? Best regards Petter Enholm Snapper as ___ 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 )
Re: [Zope] Problems with list?
Maybe?!?!? - Original Message - From: "Tony McDonald" [EMAIL PROTECTED] To: "Zope List" [EMAIL PROTECTED] Sent: Tuesday, December 05, 2000 10:43 AM Subject: [Zope] Problems with list? I've had no email from this list since Friday at 06:50am. Is there anything wrong with it? Tone -- Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/ The Medical School, Newcastle University Tel: +44 191 222 5116 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/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 ) ___ 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] FTP in HTML-Kit? Sussed it!
Jason, Working on the HTML-Kit plugin as we speak. ;) Phil - Original Message - From: "Jason Cunliffe" [EMAIL PROTECTED] To: "Paul Browning" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, December 05, 2000 3:05 PM Subject: Re: [Zope] FTP in HTML-Kit? Sussed it! Paul Thanks for your notes, especially the "open as text" tip. Very fast and easy. HTML-Kit Preview is very useful too for changing forms in Zope. Now if only someone would create an HTML-Kit library Zope extension complete with all essential DTML and pythonisms for auto tag completion - Jason ___ Jason CUNLIFFE = NOMADICS['Interactive Art and Technology'] - Original Message - From: Paul Browning [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 05, 2000 8:04 AM Subject: RE: [Zope] FTP in HTML-Kit? Sussed it! 1. Go Workspace - Add FTP Server/Folder - Add FTP Server. Do the obvious (all familiar to Homesite users). A blue coloured ftp source will appear in the File pane on the RHS. Expand/collapse trees to navigate to the file you want to open. 2. Right-click and "Open As Text". Haven't yet fathomed the significance of this as opposed to other options. What I do know is that "Save" then does the business - saves it back to your FTP source. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Zope Beginner
Mark, Here's the line from my Zope start script, it may help: "D:\zope\bin\python.exe" "D:\zope\z2.py" -X -w20080 -f20021 %1 %2 %3 %4 %5 %6 %7 %8 %9 This line turns off 'debugging' mode (note the absence of -D), it also shuts down all servers by default (-X), then explicitly starts http on port 20080 (-w20080) and ftp on 20021 (-f20021). You should also look at the docstrings in zopedir/z2.py for more options. hth Phil [EMAIL PROTECTED] - Original Message - From: "Mark A. Pappas" [EMAIL PROTECTED] To: "Zope User Maillist" [EMAIL PROTECTED] Sent: Tuesday, December 05, 2000 9:56 PM Subject: [Zope] Zope Beginner Hi All, I'm new to Zope. Just installed it a few minutes ago. Everything installed fine. Logged in http://localhost:8080/manage worked great. I'm trying to figure out the web server portion of zope. I was reading the docs the chart that talks about ZServer Command Line Switches. It tells me the default port is 8080. To change that do a -w 80 after the -D. In the start.bat. I tried all kinds of things and never was able to get zope up on port 80 as a web server (www.whatever.com_ or XXX.XXX.XXX.XXX). What am I missing? Thanks Mark A. Pappas Ashecca Communications, Inc. 1550 Creighton, Rd. Suite 6 Pensacola, FL 32504 Phone: (850) 474-4027 Fax: (850) 474-3647 ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Large XML files
Paul, The XMLDocument type is rather 'expensive' and you may be able to 'get away' with using a simpler type such as DTMLDocument. If you don't need the DOMification of your XML when you put it into Zope this is something i'd look at.. I have done this with large documents and then used an external method to process them with XSLT, XPath etc. hth Phil [EMAIL PROTECTED] - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 05, 2000 10:01 PM Subject: [Zope] Large XML files I am testing the possibilities of delivering the content of XML Documents through the Zope environment. Unfortunately, some of the proposed file are rather large (up to 760KB) and just uploading them and viewing them on our current Zope server is prohibitively slow. Our server, running Z2 is a blazing P133 running NT 4.0 with 32 MB of RAM (I get the bottom feeders). Is the bottleneck the hardware; is there something I can do software-wise to improve performance; or is development not yet advanced enough to handle this scenario efficiently? Any opinions on this? Thanks, P. Johnson ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] ZSQLMethods
Depending on the number of records in the tables this could get *very* slow *very* quickly. Surely the ideal would be to move/copy the tables into the same DB. Phil - Original Message - From: "Chris Gray" [EMAIL PROTECTED] To: "Tom Deprez" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, December 04, 2000 3:21 PM Subject: Re: [Zope] ZSQLMethods Try something like: dtml-in selectFromTable1 dtml-in selectFromTable2 dtml-if idFromTable1 = idFromTable2 display parts of the two records /dtml-if /dtml-in /dtml-in This keeps it to two db queries and the join work is done by Zope. Chris On Mon, 4 Dec 2000, Tom Deprez wrote: Hi Chris, Thanks, is this code still efficient if the tables relate to 1:1 and you need to show a list of all records in a tabulare table? eg key, NAME, ALIAS, where NAME is from database1 and ALIAS is from database2 The code below would impact that for every record in database1, I've to query database2 Is there another way to do this? (more efficient?, ie less database query) Tom. - Original Message - From: "Chris Gray" [EMAIL PROTECTED] To: "Tom Deprez" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, December 04, 2000 3:45 PM Subject: Re: [Zope] ZSQLMethods You want something along these lines: dtml-in selectFromTable1 dtml-in expr="selectFromTable2(id=_['id'])" display record /dtml-in /dtml-in This would be more efficient than pulling out the whole of two tables. Chris On Mon, 4 Dec 2000, Tom Deprez wrote: Hi, I'm wondering how the following can be done. I've 2 databases. I want to do a 'join' with 2 tables, both in a different database. Is it possible to retrieve data of both tables with a ZSQLMethod and then do a programatically join? What's the easiest python way? Thanks, Tom. ___ 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 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] Running Zope
Norm, Calm down, take a deep breath, right that's better. The behaviour you see is again quite normal. The decision has been made that the superuser cannot own anything, apart from user objects and user folder type objects. So the first thing you need to do is to create another user that has management rights then use that user for all the tutorial work. This is mentioned in the docs somewhere, but it escapes me at the moment as to where that is. This should be your final major hurdle, and you'll be serving zope pages in no time ;) I would urge you to take a look at the upcoming Zope book, which is available from the front page of Zope.org. hth Phil [EMAIL PROTECTED] - Original Message - From: "Norm LaDuke" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, December 03, 2000 1:17 AM Subject: [Zope] Running Zope | Can anyone out there tell me why anyone would use a product whose tutorial won't | even run. You guys are either INFINITELY more patient than I or you all have | WAY too much time on your hands. I'm about 7 hours into this thing and we do | finally have zope up and running but of course the tutorial doesn't work. | Requires you to put in an ID then blows up and goes no further.What a piece | of garbage (Does my frustration show??) | | | ___ | Zope maillist - [EMAIL PROTECTED] | http://lists.zope.org/mailman/listinfo/zope | ** No cross posts or HTML encoding! ** | (Related lists - | http://lists.zope.org/mailman/listinfo/zope-announce | http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Installation and Startup
Norm, This is the right place to ask such questions so ask whatever you like. First off the docs are talking about Windows NT/2K as Zope won't run as a service on W95/98. If there is ever a problem starting Zope it will print a traceback, if you can send that to the list we'll get this problem solved asap. If your running start.bat from Explorer then you'll probably find the traceback disappears too quick to see. You'll need to run it from a command prompt. Since the batch file is called start.bat you can't run it by typing just 'start' you have to put '.\start' instead, as start is a 'reserved' word in W95/98/NT/2K. Try it from the command prompt, and if it still fails, send the traceback and we'll get it fixed for you. hth - Original Message - From: "Norm LaDuke" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 02, 2000 9:52 PM Subject: [Zope] Installation and Startup | I have installed Zope on a 300Mhz K6 machine with 92 Megs of RAM running Windows | 98. It seemed to install ok except that it didn't ask if I wanted to run as a | service (as the documentation said it would). As a result I had to start zope | with start.bat. It doesn't run. Who in the world can I talk to about this. I'd | love to use the product but it's not much use to me if there's no one I can | communicate with about problems - particularly problems like "It doesn't run!". | | Can anyone suggest a place for me to go or a way to get answers? | | | | ___ | Zope maillist - [EMAIL PROTECTED] | http://lists.zope.org/mailman/listinfo/zope | ** No cross posts or HTML encoding! ** | (Related lists - | http://lists.zope.org/mailman/listinfo/zope-announce | http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Help!!
Ot, I've seen this myself. Are you using IE5.5? It seems that on occasion when you have active desktop and outlook express running that win98/2K remembers the authentication details between instances of IE5.5. Realising that Outlook Express uses IE to display mail and active desktop is also based on IE then this starts to make some sense. It's only happened to me when using W2K but it definitely happened and made me doubt my sanity for a while ;) I reinstalled the machine and downgraded to IE5 to get rid of the problem. One ray of hope though is that IE5.5sp1 seems to cure the problem, at least for me. hth Phil [EMAIL PROTECTED] - Original Message - From: "Ot Ratsaphong" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 29, 2000 3:16 AM Subject: [Zope] Help!! Hi, I'm new to Zope and have just installed Zope on a Win98 PC. I'm trying to install squishdot and TinyTable, but Zope tells me that superuser has no permission to install the above products. I have created another user called 'admin' with Manager priviledges but I don't know how to logout of superuser and login as 'admin'. I have tried shutting down Zope and closed off internet explorer and restarting again but I still get into superuser. If I need to login as a non superuser, how do I do this? I have looked for all relevant documentation but can't find anything on this. Your help would be appreciated. TIA Ot Ratsaphong Canberra, Australia ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope-dev] Re: PathHandler: bug, readme.txt
To my mind it's the browser. This is a simple trick I use when egating the caching in IE for instance. Stick a space on the end of the url and IE thinks it's a new one but blindly strips them before getting the same refreshed page. This works with any server and any page on that server btw. Phil - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Willem Broekema" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, November 28, 2000 1:57 PM Subject: [Zope-dev] Re: PathHandler: bug, readme.txt | Willem and Zope-Dev'ers, | | Willem Broekema wrote: | | Hi Chris, | | PathHandler is a nice and really useful product! | | Thanks :-) | | A question though: is it on purpose that it ignores spaces at the end of | the url, as in: | | http://site/ph/%20d%20 -- path_to_handle == [' d'] instead of [' d '] | | (%20 is the escape code for a space) | | Although it's really a minor minor thing, letting the user decide how to | deal with spaces might be a tiny improvement. | | Well, it's not PathHandler that's stripping spaces, so either Zope is, | or maybe even your browser is. | Anyone got any ideas? | | That said, handling of spaces and %20's in URLs isn't very well defined | anyway, so I would avoid it if you can... | | And in the README.txt file, please replace | dtml-var path_to_handle with lt;dtml-var path_to_handlegt; so it | won't be ignored in the browsers. | | Well, I think this is a bug with Zope. README.TXT is a text file, | formatted so it will render nicely in structured text. | It does this in the management interface for the PathHandler product, | but the and aren't quoted properly. | I wonder why that is? | | Hmmm... anyone know what happened to StructuredTextNG? | | Anyway, README.TXT is primarily designed as a text file, and | lt;dtml-var path_to_handlegt; isn't very easy to read when viewing a | text file ;-) | So, I guess someone needs to fix Zope for at least one and maybe both of | your problems to go away. | | Any ideas? | | cheers, | | Chris | | ___ | Zope-Dev maillist - [EMAIL PROTECTED] | http://lists.zope.org/mailman/listinfo/zope-dev | ** No cross posts or HTML encoding! ** | (Related lists - | http://lists.zope.org/mailman/listinfo/zope-announce | http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope] html expertise anyone.
Robin, My educated guess is that what you want can't be achieved other than with css. The a tag has no properties for changing colors of one particular link. The body tag is the only place for this and as you know this changes them globally. This taken from the HTML reference Library: A HREF="link_destination" NAME="URL_fragment" TITLE="Title_of_destination" REL="Forward_relationship" REV="Reverse_relationship" URN="Uniform_Resource_Name" METHODS="Function_information" TARGET="Name_of_target_window_or_frameset" ACCESSKEY="Shortcut_setting" LANG="Document language" LANGUAGE="Script_language" INDEXSTRING="NetHelp_index_keyword" TOCSTRING="NetHelp_contents_entry" CLASS="className" ID="unique_id" STYLE="style_setting" DATAFLD="Column name" DATASRC="Data Source" From the horses mouth so to speak :(. If I needed to do this I'd use css in some way. Phil - Original Message - From: "Robin Becker" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 28, 2000 11:22 PM Subject: Re: [Zope] html expertise anyone. | In article 009c01c05961$a584d6a0$ae03a8c0@fork, Andy McKay | [EMAIL PROTECTED] writes | I think this is a css question and not related to DTML. Go to | http://freezope.nipltd.net/dna and you will see a simple style sheet that | shows use of active and visited links. | -- | ... | yes I know how to set up style sheets; what I want is to be able to use | inline definitions for the :link, :active, :visited (:hover) colours. I | just don't know the correct incantation. | -- | Robin Becker | | ___ | Zope maillist - [EMAIL PROTECTED] | http://lists.zope.org/mailman/listinfo/zope | ** No cross posts or HTML encoding! ** | (Related lists - | http://lists.zope.org/mailman/listinfo/zope-announce | http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] newbie question: Redirect from Python?
You need to be careful when redirecting from an external Python wotsit. RESPONSE.redirect raises an exception which can make the transaction get rolled back. This seems not to happen when called from dtml but I've seen it happen from an external Python wotsit. Note: My use of wotsit above in no way has a bearing on the new name for the Python Methods/ZMethods/Script or whatever the hell they are called now. ;) Phil [EMAIL PROTECTED] - Original Message - From: "Paul Winkler" [EMAIL PROTECTED] To: "Zope mailing list" [EMAIL PROTECTED] Sent: Monday, November 27, 2000 6:26 PM Subject: [Zope] newbie question: Redirect from Python? | I want the user to be sent to a particular URL after calling the | product's manage_add method. How can I do that? | The URL I want is REQUEST['URL3']. | | I've tried RESPONSE.redirect(REQUEST['URL3']) but that's not it - the | RESPONSE doesn't seem to exist here. | | | -- | .paul winkler.. | slinkP arts: music, sound, illustration, design, etc. |web page: http://www.slinkp.com | A member of ARMS: http://www.reacharms.com | | ___ | Zope maillist - [EMAIL PROTECTED] | http://lists.zope.org/mailman/listinfo/zope | ** No cross posts or HTML encoding! ** | (Related lists - | http://lists.zope.org/mailman/listinfo/zope-announce | http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope-dev] ANNOUNCE: PartitionedFileStorage
Chris, Any hints/tips on how you did this (just to save me from having to do any work of course ;)) Phil - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: "Shane Hathaway" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, November 23, 2000 10:31 AM Subject: Re: [Zope-dev] ANNOUNCE: PartitionedFileStorage Shane Hathaway wrote: What couldn't be tested by my limited resources: - Platforms other than Linux. I'm running this on my NT4 Workstation, not high load but I'll let you know if anything weird happens (that isn't caused by me ;-) I wonder if this will help with the conflict errors I've been getting? cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope] Question about security
You need to use the same method as you would to create a user, manage_users. If you look at the Zope Quick Reference you will see that it can take a parameter called submit which can be 'Add...','Add', 'Edit' or 'Change'. If you use the 'Change' variant you can change the password as you require. Take a look in zopedir/lib/python/AccessControl/User.py and then take a look at the manage_users method in the BasicUserFolder class. hth Phil [EMAIL PROTECTED] - Original Message - From: "Harris Peter" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 22, 2000 9:25 AM Subject: Re: [Zope] Question about security Dieter wrote: Joaldo Junior writes: Does anyone can inform if is there any kind of function, which a common user can change your password by the same way a superuser can do in ACL_User? Look at the built-in Zope API reference: User object. The User object has methods to read and change the information associated with a user. These methods are (of cause) protected such that only users with high priviledges can execute them. You will need to set a proxy role for the DTML object that calls them, in order to allow less priviledged users to call them. Dieter I'm sorry, I must be missing something. The API reference I have doesn't contain any such thing. Neither does the Zope book, before anyone else suggests that. The DTML on zope.org uses a method that isn't recognised by the standard User Folder, so no help there. If ANYONE has EVER successfully implemented a way for users to change their own passwords using standard 2.2 Zope then *please* - post your source code here or put a HOWTO on zope.org! It's a basic requirement of any system that uses passwords, but if it can't be done just admit it. After all, zope is still *quite* good without it. ;-) Peter Harris () This message and any files transmitted with it are confidential. The contents may not be disclosed or used by anyone other than the addressee. If you have received this communication in error, please delete the message and notify JBB (Greater Europe) Plc immediately on 0141-249-6285. The views expressed in this email are not necessarily the views of JBB (Greater Europe) PLC. As it has been transmitted over a public network, JBB (Greater Europe) PLC makes no representation nor accepts any liability for the email's accuracy or completeness unless expressly stated to the contrary. Should you, as the intended recipient, suspect that the message has been intercepted or amended, please notify JBB (Greater Europe) Plc immediately on 0141-249-6285. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] is it possible to see whether any user is using a perticular zope object
Have you tried using any other dbms to alleviate the problem. - Original Message - From: "subrahmanyan kalathur" [EMAIL PROTECTED] To: "Chris Withers" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, November 22, 2000 11:03 AM Subject: Re: [Zope] is it possible to see whether any user is using a perticular zope object hi I am n using gadfly database. This is not the problem of ZSQL method.(I think) Because when only one user is working there won't be any problem. It seems like when more than one users access the same table it gives the error message. That is why when more than one users try to access the same DTML method only one will be able to continue , others will get the error message. thanks yours, K.H.Subrahmanyan ( [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 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] is it possible to see whether any user is using a perticular zope object
In reality changing the dbms shouldn't cause too many problems (I'd give it a day to get the conversion done myself). Try MySQL or Interbase as they work fine on Win32 (which if I remember correctly is what you use?) Phil - Original Message - From: "subrahmanyan kalathur" [EMAIL PROTECTED] To: "Phil Harris" [EMAIL PROTECTED]; "Chris Withers" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, November 22, 2000 11:36 AM Subject: Re: [Zope] is it possible to see whether any user is using a perticular zope object No, I haven't used any other DBMS. I have almost finished working in this gadfly. So I can't change now. Because there is no time to change it now. So please give me the solution. thanks yours, K.H.Subrahmanyan ( [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 )
Re: [Zope] Multiple ZODBC sources
Link the SQL table into Access and then use both from Zodbcda connected to Access. hth Phil - Original Message - From: "Capesius, Alan" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 22, 2000 3:56 PM Subject: [Zope] Multiple ZODBC sources I need to join tables from two ODBC sources, one MS Access one SQL. ZODBC DA seems to be limited to one data source at a time. Is there any way to join tables from two different sources? Alan Capesius, MCSE+20 Technical Support Engineer Sysmex Corporation of America [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 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] External Methods
Wouldn't it be better to pass in self? As in: def my_method(self,REQUEST=None): '''my_method interpreting *REQUEST*.form.''' if REQUEST is None: REQUEST=self.REQUEST # safety_valve in case you forget to pass in REQUEST form= REQUEST.form # this is a dictionary containing form # variables and associated values - Original Message - From: "Dieter Maurer" [EMAIL PROTECTED] To: "Kini Natekar" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, November 22, 2000 8:43 PM Subject: Re: [Zope] External Methods | Kini Natekar writes: | I have got a html form which accepts an input from | the user. This input has to be passed to a Python | script, as a parameter, which is added as an external | method in zope. | Is there any way to do this ? | Your method: | | def my_method(REQUEST): | '''my_method interpreting *REQUEST*.form.''' | form= REQUEST.form # this is a dictionary containing form | # variables and associated values | . | | | If you like, you can directly use it as form action. | But probably, you will wrap it into a DTML method: | | DTML wrapper: | | . | dtml-call "my_method(REQUEST)" | . | | | 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 ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] How to get authentiedcated user name in pythong method?
self.REQUEST.AUTHENTICATED_USER.getUserName() - Original Message - From: "Dirksen" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 23, 2000 1:33 AM Subject: [Zope] How to get authentiedcated user name in pythong method? | How can I do that just as dtml-var "AUTHENTICATED_USER.getUserName()" in dtml? I don't | want to pass AUTHENTICATED_user as a parameter. A hint please. | | cheers | Dirksen | | __ | Do You Yahoo!? | Yahoo! Shopping - Thousands of Stores. Millions of Products. | http://shopping.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 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] Still More Problems On the Install...
The result you got is what is supposed to happen. By default Zope runs in 'debug' mode and doesn't unattach itself from the console. To make it unattach itself, basically making it run in the background, you need to edit the start script and remove the '-D'. See z2.py for more start options. My start script looks something like this for instance. "f:\zope\bin\python.exe" "f:\zope\z2.py" -X -w80 -f 21 %1 %2 %3 %4 %5 %6 %7 %8 %9 Which turns off all servers by default (-X), and then selectively turns on http on port 80 (-w80) and ftp on port 21 (-f21). hth Phil [EMAIL PROTECTED] - Original Message - From: "Ben Ocean" [EMAIL PROTECTED] To: "seb bacon" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, November 19, 2000 11:16 PM Subject: Re: [Zope] Still More Problems On the Install... | At 09:50 PM 11/19/2000 +, you wrote: | from INSTALL.txt: | |snip | | ./start | | I apparently didn't mention in my last email that I *tried* ./start and it | hung my computer. It got this far: | | [webmaster@thor Zope-2.2.2-linux2-x86]$ ./start | -- | 2000-11-19T23:11:01 PROBLEM(100) ZServer Computing default hostname | -- | 2000-11-19T23:11:01 INFO(0) ZServer Medusa (V1.16.4.3) started at Sun Nov | 19 15:11:01 2000 | Hostname: thor.galaxynet.com | Port:8080 | | -- | 2000-11-19T23:11:01 INFO(0) ZServer FTP server started at Sun Nov 19 | 15:11:01 2000 | Authorizer:None | Hostname: thor.galaxynet.com | Port: 8021 | -- | 2000-11-19T23:11:01 INFO(0) ZServer PCGI Server started at Sun Nov 19 | 15:11:01 2000 | Unix socket: /apache/vhosts/Zope-2.2.2-linux2-x86/var/pcgi.soc | -- | 2000-11-19T23:11:01 INFO(0) ZServer Monitor Server (V1.8.4.1) started on | port 8099 | | | Then it hung. I did a ^C and it printed this: | | | òTraceback (innermost last): |File "/apache/vhosts/Zope-2.2.2-linux2-x86/z2.py", line 719, in ? | asyncore.loop() |File "/apache/vhosts/Zope-2.2.2-linux2-x86/ZServer/medusa/asyncore.py", | line 138, in loop | poll_fun (timeout, map) |File "/apache/vhosts/Zope-2.2.2-linux2-x86/ZServer/medusa/asyncore.py", | line 66, in poll | r,w,e = select.select (r,w,e, timeout) | KeyboardInterrupt | Traceback (innermost last): |File "/apache/vhosts/Zope-2.2.2-linux2-x86/z2.py", line 537, in ? | zdaemon.run(sys.argv, os.path.join(CLIENT_HOME, Zpid)) |File "/apache/vhosts/Zope-2.2.2-linux2-x86/lib/python/zdaemon.py", line | 208, in run | p,s = os.waitpid(pid, 0) | KeyboardInterrupt | [webmaster@thor Zope-2.2.2-linux2-x86]$ | | | It would appear (from my limited knowledge of programming) that it's having | trouble finding that port. Now, for the record, I own the machine, and it's | co-located (goes through a server called *galaxynet.com*). Again, your help | is appreciated. Thank you in advance. | BenO | | | ___ | Zope maillist - [EMAIL PROTECTED] | http://lists.zope.org/mailman/listinfo/zope | ** No cross posts or HTML encoding! ** | (Related lists - | http://lists.zope.org/mailman/listinfo/zope-announce | http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] DTML and SQL question...
Try dtml-if "_.len(genericSQL(SQLStatement='Select count(*) from my_table where my_field = \'0\''))0" YES! There's some data! dtml-else no records found! /dtml-if or dtml-in "genericSQL(SQLStatement='Select count(*) from my_table where my_field = \'0\'')" dtml-if sequence-startYES! There's some data!/dtml-if dtml-else no records found! /dtml-in hth - Original Message - From: "zope" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 15, 2000 4:22 PM Subject: [Zope] DTML and SQL question... | Hi. | | I want to test if there is some data in a table. | If so, I want to perform some action, otherwise I wan't to print out a message. | (dtml-if..dtml-else../dtml-if) | | My SQL statement is something like: | | Select count(*) from my_table where my_field = something | | What DTML code do I need to perform that if-statement? | | Something like the following does not work :-( | | dtml-if "genericSQL(SQLStatement='Select count(*) from my_table where | my_field = \'0\'') == 0" |YES! There's some data! | dtml-else |no records found! | /dtml-in | | Thanks for any help. | | Greetings, Marc Ludwig | Luxembourg | | | ___ | Zope maillist - [EMAIL PROTECTED] | http://lists.zope.org/mailman/listinfo/zope | ** No cross posts or HTML encoding! ** | (Related lists - | http://lists.zope.org/mailman/listinfo/zope-announce | http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Where to store my data?
Randall, As to the use of xml/xsl. I'm in the process of creating a product called (originality abounds) nXMLDocument. This is a XML doc that can render itself based on a XSL stylesheet. At the moment it uses the Microsoft XSLT parser on Win32, but changing it to use another parser/os shouldn't be difficult at all. It works right now, the XML and the XSL can be built using DTML calls as well, so building XML from a database is very simple indeed, and using DTML in the XSL is just as useful. I'm looking for some alpha testers if your interested. Phil [EMAIL PROTECTED] - Original Message - From: Randall Kern To: [EMAIL PROTECTED] Sent: Monday, November 13, 2000 8:00 PM Subject: [Zope] Where to store my data? I've just started playing with Zope again, and this time I'm going to spend enough time with it to actually decide if it's crazy or I am :) My project currently consists of a bunch of community "modules" written in PHP using MySQL as a data store. Each modules PHP code produces an XML page, by running a bunch of queries in the database, and performing some logic. These XML pages are then processed using XSLT, with a model very similar to Acquisition. I'm getting very tired of the poor language design inherent in PHP, and wanted to start using Python again. (Big reason for doing this work: In the current package, each module is only accessible from a hardcoded URL, such as /links for the Links module, etc. Many of my customers want to change the layout of their site, and in fact maybe have two Links modules, etc.) So far, sounds like Zope would be a great system for me. It would give my customers a good platform to customize their sites, and give me a good platform to build my modules with. Now, short of just doing it and then discovering what I did wrong, I'm hoping to get some advice from the Zope community on how to structure this system. This is a fairly large system, I host about 10 customers per box, serving about 4MM page views. 99% of the pages are dynamic, doing real-time database queries. Some of my first questions: -Is Zope a good choice for this kind of project? -Which is better: Store my content (Forum posts, Links, etc) in ZODB, or a MySQL database? -Build my Product (right term?) in DTML/ZClasses (seems easier for my users to customize?) or build it in Python? -Can I (easily) build this system in 4 layers: Content-- actual low-level storage, rarely customized Logic/Object Representation-- layer used to interact with the content, also rarely customized, although does have configuration options XML (page contents)-- every URL should result in an XML document, containing all the information that will be presented on that page. Written in DTML? XSLT (page rendering)-- the XML documents must be transformed into HTML/etc. These transformations, like the page contents should be inherited; excuse me, acquired. -Simple things should be simple, Complex things should be possible. -- My users should be able to plop a Links module into their site, edit the Properties for that Object, and it works. If they want to change the way Links are categorized, they should be able to, although it'll take a while longer :) Thanks for your Zen, -Randy ___ 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] Populating a :list variable from the results of a ZSQL method
tone, How about (untested): where 'dboptions' is the string pulled from the DB, and 'options' is the list needed. dtml-call "REQUEST.set('options',[])" dtml-in "_.string.split(dboptions[1:-1],',')" dtml-call "options.append(_.int(_['sequence-item']))" /dtml-in This would then give you take the string "['1','2','3']" and turn it into the list [1,2,3]. hth Phil - Original Message - From: "Tony McDonald" [EMAIL PROTECTED] To: "Zope List" [EMAIL PROTECTED] Sent: Friday, November 10, 2000 10:10 AM Subject: [Zope] Populating a :list variable from the results of a ZSQL method Hi all, Say I've got a form with this in it select type="checkbox" name="options:list" option value="1"number 1 option value="2"number 2 option value="3"number 3 /select When this is put into an SQL database, the field 'options' is this (string) ['1', '2', '3'] or ['2', '3'] etc. When I get the data back from the database, 'options' comes back as a string, and dtml-in options ... /dtml-in gives errors (basically, it can't iterate over a string). I tried dtml-call "REQUEST.set('new_options:list', options)" and then tried iterating over new_options, but the variable didn't exist... Has anyone got any solutions for this? TIA Tone -- Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/ The Medical School, Newcastle University Tel: +44 191 222 5116 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/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 ) ___ 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 on Linux client
My take is that it's a client issue. Since you explicity mention that your using a Linux client, I'd assume you've tried a windows client? If so was it Ie/Netscape/Opera etc. IE and Netscape in particular play by their own rules and render things differently. Maybe your html is causing one of those differences to manifest itself. When 'actual' doesn't appear in the browser window, can you check the source for the page, and is the content there in the html? It doesn't seem to be a Zope problem to me. Phil - Original Message - From: "Stephan Goeldi" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 10, 2000 2:31 PM Subject: [Zope] DTML on Linux client I checked my website www.goeldi.com with a SuSE Linux 7 client (Netscape) and discovered, that not all DTML is done right. My index_html file has: dtml-var standard_html_header Welcome to our website. dtml-var actual dtml-var standard_html_footer The header and footer are displayed correct. The welcome text of the index_html file too. But the dtml-var actual is not displayed at all. The text browser lynx has the same problem under linux. I tried it from a RedHat 6.2 system with lynx - same problem. The page is displayed correctly with any Windows browser. What's going wrong here? _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Are there any man pages out there for these functions?
John, Have you tried http://zdp.zope.org , in particular the Zope Quick Reference. Every Zope user/developer should use it as their bible. hth Phil [EMAIL PROTECTED] - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, November 11, 2000 12:11 AM Subject: [Zope] Are there any man pages out there for these functions? | | Howdy Folks, | | I'm looking for man pages on these dtml functions? | | I'm finding it terribly difficult and frustration to figure out how to | properly program in dtml since I can't do a man on a funtion | (ie:man objectValues) and read about what parameters the function is | expection from me. | | I'd like to browse the dtml man pages and see what functions are | available to me. I've been reading all kinds of documents for the last | week but I get the feeling that Zope is somewhat immature as a product. | | So, any ideas about those man pages? | | Thanks in advance. | John | | /\ | | John Voth Mobiltex Data Ltd.Calgary, Alberta,Canada, T1Y-4T7 | | | [EMAIL PROTECTED] 403-291-2770, 403-259-6795 (fax)| | \/ | | ___ | Zope maillist - [EMAIL PROTECTED] | http://lists.zope.org/mailman/listinfo/zope | ** No cross posts or HTML encoding! ** | (Related lists - | http://lists.zope.org/mailman/listinfo/zope-announce | http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] XML-RPC
Another possibility is to use IE on the client side and use one of the COM interfaces to XML-RPC. You could then use javascript/vbscript to get data as required. hth Phil - Original Message - From: "Hannu Krosing" [EMAIL PROTECTED] To: "David Nimmons" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, November 08, 2000 10:16 PM Subject: Re: [Zope] XML-RPC | David Nimmons wrote: | | I am trying to develop a web based interface to automation equipment (Allen | Bradley plc's in this case) to use for an operator interface. I am using | SVG to develop graphics and want to use javascript to manipulate the | graphics based on data from the plc. I am looking for a way to pull more | data from the server without having to reload the page. My question is will | XML-RPC allow this. Or does Zope have some other mechanism that would allow | this. Thanks for any help. | | Actually this is mainly a client-side problem, on server side you have | total | freedom to serve any protocol ;) | | Often this kind of problem is solved by having twho frames and data is | aquired | by reloading the "data-page" which then manipulates the | "presentation-page" | using javascript, possibly in its onLoad method. | | | Hannu | | ___ | Zope maillist - [EMAIL PROTECTED] | http://lists.zope.org/mailman/listinfo/zope | ** No cross posts or HTML encoding! ** | (Related lists - | http://lists.zope.org/mailman/listinfo/zope-announce | http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope-dev] python memory error on Windows NT
Me too, I've seen memory problems with ODBC to Access. - Original Message - From: "Toby Dickenson" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, November 03, 2000 4:13 PM Subject: RE: [Zope-dev] python memory error on Windows NT | That sounds like a bug in an extension module | | | The installed packages on the site are (all the Zope 2.2.2 | released with | and): | | ZODBCDA (Installed product ZODBCDA) | | we use 2 ODBC connection on 2 MSAccess MDB and no python | extension. | I do not know where and when the problem happens. But it happens. | | I suspect Access | | ___ | Zope-Dev maillist - [EMAIL PROTECTED] | http://lists.zope.org/mailman/listinfo/zope-dev | ** No cross posts or HTML encoding! ** | (Related lists - | http://lists.zope.org/mailman/listinfo/zope-announce | http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
[Zope] Zope.org down?
Subject says it all ___ 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] OT Zope book images - PDF
Eric, I got Acrobat to recognise the png's by first loading the html nto msword and then 'printing' the PDF from there. hth Phil - Original Message - From: "Eric Walstad" [EMAIL PROTECTED] To: "[EMAIL PROTECTED]" [EMAIL PROTECTED] Sent: Thursday, November 02, 2000 12:58 AM Subject: [Zope] OT Zope book images - PDF | In light of all the hubbub about the Zope book, I thought I would try and | make my own copy of it in PDF format (just for me, of course). I'm finding | that Acrobat doesn't know how to convert the PNG image file type used in the | Zope Book. (or rather, I don't know how to get it to work !) Anyone know | how to get png files into Acrobat? Oh, I'm trying to use their 'Open Web | Page' method of creating the document. Is there another/better way that | will get the png images? | Thanks, | Eric. | | | ___ | Zope maillist - [EMAIL PROTECTED] | http://lists.zope.org/mailman/listinfo/zope | ** No cross posts or HTML encoding! ** | (Related lists - | http://lists.zope.org/mailman/listinfo/zope-announce | http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope-dev] Recursive folders from Python
Try something like (taken from my own code, so it works for me, caveta emptor): def mkcontext(self,context=None): global default_dd if not context: return 'EH!' c=string.split(context,'/') newself=self for a in c: try: newself.manage_addFolder(a,createPublic=0,createUserF=0,REQUEST=getattr(self ,'REQUEST',None)) except: pass newself=getattr(newself,a) ## this is the relevant line newself.manage_addLocalRoles(c[-1],['Manager']) try: newself.manage_addDTMLMethod('index_html','Start Page',file=default_dd) except: pass This func takes a slash separated list of folders (actually a NDS context like 'dacs/media/stf/wmlph' and creates the folder hierarchy. It's probably overkill for what you want but the relevant line is the getattr one (as marked). hth Phil - Original Message - From: "Dieter Maurer" [EMAIL PROTECTED] To: "Jason Spisak" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, October 30, 2000 6:43 PM Subject: Re: [Zope-dev] Recursive folders from Python Jason Spisak writes: Does anyonw know why this code won't create a folder within a folder. It's tells me the id is already in use, so that means it's not descending into the newly created folder to make another folder. def create(self): for digit in range(0, 10): folder= self.manage_addFolder(str(digit), str(digit)) subfolder = self.folder.manage_addFolder(str(digit), str(digit)) Apparently, the above line should add a new folder in (say) '00'. What it does, however, is trying to add the new folder in the object named 'folder' (accessible from 'self'). This may well go wrong. Keep in mind, that the local name space of the function 'create' (where your variable 'folder' lives) is disjunct from the attribute namespace of 'self' (where the attribute 'folder' lives). Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope] Zope Book Beta
Give me a few hours and I'll be knocking out the eBook and PDF versions. By the end of the day. Phil - Original Message - From: "Chris Withers" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, October 31, 2000 11:49 AM Subject: Re: [Zope] Zope Book Beta There a PDF of it anywhere? cheers, Chris Michel Pelletier wrote: Amos and I are gibbering like madmen with excitement to announce the Zope Book Beta. This is the complete, technical draft of the book with all screenshots (but minus illustrations, those are on there way!). Some other things like a colophon and information about the authors is missing. The beta includes all completed chapters, the API reference, and the DTML reference. We've received over a hundred comments, corrections, and ideas from you the community and it has made a much better book. This is the one to print out and give to your friends as christmas gifts, folks, so get crackin and start reading at http://www.zope.org/Members/michel/ZB/. Enjoy, -Michel ___ 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 )
Re: [Zope] Zope Book Beta
Nah, I use the offical stuff , Adobe Distiller. For the eBook stuff I use a Microsoft Word Add-in, available from www.pocketpc.com (really microsoft under a pseudonym) hth Phil - Original Message - From: "Ender" [EMAIL PROTECTED] To: "Phil Harris" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, October 31, 2000 12:52 PM Subject: Re: [Zope] Zope Book Beta | Phil Harris wrote: | | Give me a few hours and I'll be knocking out the eBook and PDF versions. | | By the end of the day. | | Phil | | Hi Phil, | | how do you do that? for the pdf are you dumping stuff into reportlab? | | Kapil | | | - Original Message - | From: "Chris Withers" [EMAIL PROTECTED] | To: [EMAIL PROTECTED] | Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] | Sent: Tuesday, October 31, 2000 11:49 AM | Subject: Re: [Zope] Zope Book Beta | | There a PDF of it anywhere? | | cheers, | | Chris | | Michel Pelletier wrote: | |Amos and I are gibbering like madmen with excitement to announce the |Zope Book Beta. This is the complete, technical draft of the book with |all screenshots (but minus illustrations, those are on there way!). |Some other things like a colophon and information about the authors is |missing. The beta includes all completed chapters, the API reference, |and the DTML reference. We've received over a hundred comments, |corrections, and ideas from you the community and it has made a much |better book. This is the one to print out and give to your friends as |christmas gifts, folks, so get crackin and start reading at |http://www.zope.org/Members/michel/ZB/. | |Enjoy, | |-Michel | |___ |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 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] None-debug mode on win2k
Peter, When running Zope as a service you can add the parameter by using regedit, goto: hkey_local_machine\system\currentcontrolset\services\zope\parameters. The problem is though that the console window is hidden by default, but you have two options. 1. the easy way. run Zope by double-clicking on the start.bat file in your Zope folder. 2.the hard way. let the service interact with the desktop. You can do this by going to the services manager and double clicking on the the zope service, then on the log-on tab and changing the option 'allow service to interact with desktop'. I'm not sure how the second option works when no-one is logged though. hth Phil - Original Message - From: "Peter Bengtsson" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, October 29, 2000 10:56 PM Subject: [Zope] None-debug mode on win2k | Zopistas, | | I have searched the mailinglist and look under the carpets and READMEs. | Maybe I'm just blind but how do I run Zope in none-debug mode ?? | In other words; how do I add the -D param? | | I run Zope2.2.2 on a win2k pro as a service. | | | | ___ | Zope maillist - [EMAIL PROTECTED] | http://lists.zope.org/mailman/listinfo/zope | ** No cross posts or HTML encoding! ** | (Related lists - | http://lists.zope.org/mailman/listinfo/zope-announce | http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] problem installing login manager
Henny, You also need the ZPatterns product, which you then have to compile to get the dynpersist.pyd file. hth Phil - Original Message - From: Henny van der Linde To: Zope mailing list Sent: Monday, October 30, 2000 12:27 AM Subject: [Zope] problem installing login manager Hi, I just installed Zope 2.2.2 and tried to install the latest version of Login Manager. It failed: LoginManager Import Traceback Traceback (innermost last): File "C:\Program Files\WebSite22\lib\python\OFS\Application.py", line 397, in import_products product=__import__(pname, global_dict, global_dict, silly) File "C:\Program Files\WebSite22\lib\python\Products\LoginManager\__init__.py", line 1, in ? import LoginManager, LoginMethods, UserSources File "C:\Program Files\WebSite22\lib\python\Products\LoginManager\LoginManager.py", line 8, in ? from Products.ZPatterns.Specialists import Specialist File "C:\Program Files\WebSite22\lib\python\Products\ZPatterns\__init__.py", line 1, in ? import Rack, Specialists, Customizers, AttributeProviders, SheetProviders File "C:\Program Files\WebSite22\lib\python\Products\ZPatterns\Rack.py", line 9, in ? from DataSkins import DataSkin File "C:\Program Files\WebSite22\lib\python\Products\ZPatterns\DataSkins.py", line 1, in ? from DynPersist import DynPersist ImportError: No module named DynPersist What 's happening? Thanks Henny van der Linde ___ 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-dev] How to use methods in a deeper folder?
Hannes, There are a few ways to do this: dtml-in "eins.zwei.drei.sqlMethod" or dtml-with eins dtml-with zwei dtml-with drei dtml-in sqlMethod or dtml-with "restrictedTraverse('/eins/zwei/drei/sqlMethod')" all have their problems/advantages. try some of the above and see how you get on. hth Phil - Original Message - From: "Loibl Johann" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 26, 2000 1:02 PM Subject: [Zope-dev] How to use methods in a deeper folder? Hi, I would like to use a SQL-Method which exists in a deeper folder; e.g. in dtml-Method /eins/zwei/index_html there exists dtml-in "/eins/zwei/drei/sqlMethod" dtml-var something /dtml-in and my sqlMethod is situated in folder /eins/zwei/drei/ Why doesn't this work? Could someone give me a helping hand? Cheers, Hannes ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope ) ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope] Z SQL Objects (Newbie)
Yvonne, The format of your 'if' is incorrect: You have :if . it should be dtml-if. so the whole statement is as Jens says below. hth Phil [EMAIL PROTECTED] - Original Message - From: Jens Grewen To: [EMAIL PROTECTED] Cc: Zope Maillist Sent: Thursday, October 26, 2000 2:51 PM Subject: Re: [Zope] Z SQL Objects (Newbie) Hi, Arguments | team Query template dtml-if "team == '5'" select * from data dtml-else select * from data /dtml-if this is normal but may it helps if you post the traceback of the error message Jens Grewen - Original Message - From: Yvonne Totty To: [EMAIL PROTECTED] Sent: Thursday, October 26, 2000 3:22 PM Subject: [Zope] Z SQL Objects (Newbie) I have the O'Reilly book, but can't seem to find more complete information on how to do 'if's' in a SQL thing. Here's the scenario: I have three different 'teams' and want to run a call specific to each team. I am passing in three parameters, two of which go in the sql statement, the other goes in the if statement: :if "team='S"' sql statement :elif "team='C'" blah, blah /:if It tells me it doesn't like the syntax of the 'if' (I have stuff in the python file that lets me use ':' in place of 'dtml-'). I have tried all the flavors: "team=='S'", "team=S", "team==S", etc. and it doesn't like any of them. If you guys know of another reference, please let me know! TIA, Yvonne 8) ~~~ Yvonne Totty Database Engineer - Wolverine: You actually go outside in these things? Cyclops: Well, what would you prefer? Yellow spandex? ___ 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] Apache in front of ZServer
Jorn, It's perfectly possible, you just need to do a little work ;) Your proxy pass will be something like this: ProxyPass / http://myserver.com:8080/ ProxyPassReverse http://myserver.com:8080/ / for the other part of serving static content, it really depends what you want but here are two ways to do it. 1.use the LocalFileSystem product, http://www.zope.org/Products/Members/jfarr/Products/LocalFS/LocalFS-0.9.6.tg z 2.use Apache to intercept calls to a specific dir before passing it onto Zope, e.g. use a RewriteRule. hth Phil - Original Message - From: "Jørn Helge B. Dahl" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 24, 2000 9:39 AM Subject: [Zope] Apache in front of ZServer Hi all! I am aware of URL: http://www.zope.org/Members/anser/apache_zserver, but I am looking for at way to make Apache serve Zope from the root URL. It is possible to make the apache front end http://machine.domain.com/Zope be served by zope backend http://machine.domain.com:8080, but what really want is to make apache frontend http://machine.domain.com be served by Zope, and still be able to serve static content from selected locations. Example: http://machine.domain.com/- Zope w/Apache frontend http://machine.domain.com/static - Apache static Am I clear? Is it possible to do that without NameVirtualHost? -- Jørn Helge B. Dahl System Administrator http://falch.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 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] Apache in front of ZServer
Jorn, I'm no Apache GrandMaster but couldn't you use the [p] option of a RewriteRule to make it proxy if the url matches a pattern: RewriteEngine on RewriteRule !^(/static/.*) http://myserver.com:8080$1 [p,l] Or something along those lines. hth Phil [EMAIL PROTECTED] - Original Message - From: "Jørn Helge B. Dahl" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 24, 2000 1:40 PM Subject: Re: [Zope] Apache in front of ZServer * [EMAIL PROTECTED] (JXrn Helge B. Dahl) | | for the other part of serving static content, it really depends what you | | want but here are two ways to do it. | | | | 1.use the LocalFileSystem product, | | http://www.zope.org/Products/Members/jfarr/Products/LocalFS/LocalFS-0.9.6.tg | | z | | That I already do, so that one is okay. | | | 2.use Apache to intercept calls to a specific dir before passing it onto | | Zope, e.g. use a RewriteRule. | | Yup, this is what I need. I think was being unclear about what I really | -wanted: I want to still be able to use php and such thing, even if I | serve Zope from root. So the RewriteRule does the trick? On a second thought: What I _really_ want (I think, unless someone tells me differently :-) ) is a conditional ProxyPass, to tell apache to redirect everything _unless_ the URI is /static (or something). But this is probably something for apache geeks. Thanks anyway. -- Jørn Helge B. Dahl http://falch.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 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] redirect
dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=' + test)" - Original Message - From: "Joaldo Junior" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 24, 2000 3:38 PM Subject: [Zope] redirect how to for that function REDIRECT understand a variable. ex. dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=dtml-var test')" ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] dtml-in returning null
Diego, Do you mean that you want at least one input tag appearing at all times? If so, try this: dtml-in InMethod input type=text name=Name value="dtml-var name null="Name Here"" dtml-else input type=text name=Name value="dtml-var name null="Name Here"" /dtml-in hth Phil - Original Message - From: "Diego Rodrigo Neufert" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 24, 2000 4:24 PM Subject: [Zope] dtml-in returning null | Hi... | | I want to do something like this... | | dtml-in InMethod | input type=text name=Name value="dtml-var name null="Name Here"" | /dtml-in | But, if InMethod return nothing it display this input tag one time | | There's a way to do that?? | | Thanks | -- | --- | Diego Rodrigo Neufert | -webmaster | --- | (Magic Web Design) | (email) ([EMAIL PROTECTED]) | (curitiba) (pr) | | ___ | Zope maillist - [EMAIL PROTECTED] | http://lists.zope.org/mailman/listinfo/zope | ** No cross posts or HTML encoding! ** | (Related lists - | http://lists.zope.org/mailman/listinfo/zope-announce | http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] Calling objects by name
Danny, Try something like dtml-var "_[id_you_created]" or dtml-var "_.getitem(id_you_created,1)" hth Phil - Original Message - From: "Danny William Adair" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 24, 2000 6:50 PM Subject: [Zope] Calling objects by name | How can I render an object in DTML if I have its id as a string? | I would like to construct its name as a string and then call the object | variable by its name. | (Meaning I will have to make sure such an object exists) | | tia, | | CU+Prost, | | Danny | | | ___ | 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 )