[Zope] zdsock

2005-12-04 Thread John Poltorak
How do I override the default name of zdsock for the socket used by Zope? I see socket-name defined in Zope/lib/python/zdaemon/sample.conf but have no idea what this sample.conf is used for. -- John ___ Zope maillist - Zope@zope.org

Re: [Zope] Hooks for methods other than GET/POST on port 80?

2005-12-04 Thread Roman Susi
Tino Wildenhain wrote: Am Samstag, den 03.12.2005, 21:56 +0200 schrieb Roman Suzi: Hi! ... DELETE /path/to/object/X/Y HTTP/1.1 Host: myhost.myorg.org Content-Type: application/myprotocol+xml Of course, I have a product Z which has this class: class Z: ... def Y(self,

Re: [Zope] zdsock

2005-12-04 Thread Andreas Jung
--On 4. Dezember 2005 08:36:06 + John Poltorak [EMAIL PROTECTED] wrote: How do I override the default name of zdsock for the socket used by Zope? I see socket-name defined in Zope/lib/python/zdaemon/sample.conf but have no idea what this sample.conf is used for. Likely by including

Re: [Zope] zdsock

2005-12-04 Thread John Poltorak
On Sun, Dec 04, 2005 at 09:51:22AM +0100, Andreas Jung wrote: --On 4. Dezember 2005 08:36:06 + John Poltorak [EMAIL PROTECTED] wrote: How do I override the default name of zdsock for the socket used by Zope? I see socket-name defined in Zope/lib/python/zdaemon/sample.conf but

Re: [Zope] zdsock

2005-12-04 Thread Andreas Jung
At the top of sample.conf it says # Sample config file for zdctl.py and zdrun.py (which share a schema). This sounds like something other than zope.conf. Is there a real need for you to touch the configuration. Also as very advanced Zope user I've never had the need to touch this

Re: [Zope] zdsock

2005-12-04 Thread John Poltorak
On Sun, Dec 04, 2005 at 11:13:29AM +0100, Andreas Jung wrote: At the top of sample.conf it says # Sample config file for zdctl.py and zdrun.py (which share a schema). This sounds like something other than zope.conf. Is there a real need for you to touch the configuration. Also

Re: [Zope] zdsock

2005-12-04 Thread John Poltorak
On Sun, Dec 04, 2005 at 11:32:15AM +0100, Andreas Jung wrote: WHY? Because 'zdsock' is not an acceptable name. I am running on OS/2 and the path name must start with '\\socket\\'. --On 4. Dezember 2005 10:26:03 + John Poltorak [EMAIL PROTECTED] wrote: On Sun, Dec 04, 2005 at

Re: [Zope] zdsock

2005-12-04 Thread Andreas Jung
--On 4. Dezember 2005 10:47:43 + John Poltorak [EMAIL PROTECTED] wrote: On Sun, Dec 04, 2005 at 11:32:15AM +0100, Andreas Jung wrote: WHY? Because 'zdsock' is not an acceptable name. I pass. OS/2 is ancient and also no longer supported by IBM. -aj pgpLAZaOsAd7N.pgp Description:

WAS [Zope] Beginners Confusion - NOW I Think I have Pegged It

2005-12-04 Thread Russell Winter
Folks Firstly, thanks to all those who replied... I am pleased to say that I have an Test installation working .. Whoohoo..! If anyone see's any gapping security, configuration holes or poor practices, please drop me a line, otherwise, I have document the how's and what's of what I

Re: [Zope] checking for elements in a list

2005-12-04 Thread Peter Bengtsson
On 12/4/05, J Cameron Cooper [EMAIL PROTECTED] wrote: Christopher Rivard wrote: Hello, I'm am trying to check for the membership of items in a list and think I'm missing something. How is this done in dtml? List allids: [15,16,17,18] Check for multiple items in the list:

[Zope] Re: zdsock

2005-12-04 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Poltorak wrote: On Sun, Dec 04, 2005 at 11:32:15AM +0100, Andreas Jung wrote: WHY? Because 'zdsock' is not an acceptable name. I am running on OS/2 and the path name must start with '\\socket\\'. Johh, you are likely going to have to

Re: [Zope] checking for elements in a list

2005-12-04 Thread Christopher Rivard
Thanks Peter, The conditional within the dtml did the trick. This is a continuation of this issue (a bit cumbersome): http://groups.yahoo.com/group/zope/message/150345 The solution that I have come to is to simply set a cookie and serve up the correct fields based on the cookie: dtml-if 17

Re: [Zope] Hooks for methods other than GET/POST on port 80?

2005-12-04 Thread Dieter Maurer
Roman Suzi wrote at 2005-12-3 21:56 +0200: I am looking for a way in Zope to receive HTTP-requests with, eg, DELETE and PUT in the object method. Zope (2.7.x) seems to intercept these and issue Not authorised. DELETE and PUT are WebDAV methods (and defined in webdav.Resource.Resouce). You have

Re: [Zope] Re: zdsock

2005-12-04 Thread John Poltorak
On Sun, Dec 04, 2005 at 09:15:34AM -0500, Tres Seaver wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Poltorak wrote: On Sun, Dec 04, 2005 at 11:32:15AM +0100, Andreas Jung wrote: WHY? Because 'zdsock' is not an acceptable name. I am running on OS/2 and the path

Re: [Zope] checking for elements in a list

2005-12-04 Thread Peter Bengtsson
I suggest you try a little scripting language called Python. You can use in inside Zope by creating Python Scripts (formal name: Script (Python)) Try to stay away from DTML as much as possible. It's only about as good as PHP alone. On 12/4/05, Christopher Rivard [EMAIL PROTECTED] wrote: Thanks

Re: [Zope] add multiple images to zope folder

2005-12-04 Thread Chris Purves
On 04/12/05, Peter Bengtsson [EMAIL PROTECTED] wrote: There's a script with zope called load_site.py that can do this. I got load_site.py to work after a few tries. Thanks for the help. -- Take care, eh. Chris ___ Zope maillist - Zope@zope.org

Re: [Zope] add multiple images to zope folder

2005-12-04 Thread Chris Purves
On 04/12/05, Jonathan Cyr [EMAIL PROTECTED] wrote: Use FTP, Open Internet Explorer, type ftp://zopeusername:[EMAIL PROTECTED]:8021/directory/ and drag and drop from explorer to ie, zope assigns them as images automatically. Any FTP client will do, Filezilla is nice/free, as

[Zope] Finding a match in a large dataset - btrees?

2005-12-04 Thread Cameron Beattie
I have a large set of data (that will be stored in MySQL) that I wish to match to and am wondering what the best method is. Assume the following data in table LOCATION_MATCH: LOCATION_IDLOCATION_PATTERNPARENT_ID 106 114

Re: [Zope] Re: Zope Calendar

2005-12-04 Thread Bakhtiar A Hamid
I wanted something which looks like Plone Calendar - http://www.zope.org/Members/teyc/CalendarTag this has a howto (or is it in the readme), and with the necessary css, can look pretty much like plone's hth ___ Zope maillist - Zope@zope.org

Re: [Zope] Finding a match in a large dataset - btrees?

2005-12-04 Thread Andreas Jung
--On 5. Dezember 2005 16:57:03 +1300 Cameron Beattie [EMAIL PROTECTED] wr I've read a bit about btrees on the zope wiki and wonder if that's the best way. However I am struggling with the basics: 1. How do I get the data from MySQL into a btree in Zope? Something like: from BTrees.IIBTree

[Zope-Checkins] SVN: Zope/branches/2.9/ Move to ZODB 3.6.0b4.

2005-12-04 Thread Tim Peters
Log message for revision 40533: Move to ZODB 3.6.0b4. Changed: _U Zope/branches/2.9/doc/ _U Zope/branches/2.9/lib/python/ _U Zope/branches/2.9/utilities/ -=- Property changes on: Zope/branches/2.9/doc ___ Name:

[Zope-dev] Zope tests: 8 OK

2005-12-04 Thread Zope tests summarizer
Summary of messages to the zope-tests list. Period Sat Dec 3 12:01:02 2005 UTC to Sun Dec 4 12:01:02 2005 UTC. There were 8 messages: 8 from Zope Unit Tests. Tests passed OK --- Subject: OK : Zope-2_6-branch Python-2.1.3 : Linux From: Zope Unit Tests Date: Sat Dec 3 22:20:55 EST

[Zope-dev] Re: RFC: _verifyObjectPaste cleanup

2005-12-04 Thread yuppie
Hi Dieter! Dieter Maurer wrote: yuppie wrote at 2005-12-2 16:50 +0100: ... checkPermission now respects proxy roles, so this workaround is no longer needed. But we should also have some way to check permissions without proxy roles: It sometimes is useful for something with a proxy role

Re: [Zope-dev] KeyError: 'URL' in HTTPRequest using zope2.7-py2.3.3

2005-12-04 Thread Brian Watson
Brian Watson wrote at 2005-12-1 20:55 -0500: brian w. Traceback (most recent call last): File E:\NBCJEAP\Zope\lib\python\zExceptions\ExceptionFormatter.py, line 157, in formatLine result.extend(self.formatSupplement(supp, tb)) File

[Zope-dev] Time for a beta!

2005-12-04 Thread Jim Fulton
Zope 3 seems to ve ready for a beta release. Does that mean Zope 2 is ready? Jim -- Jim Fulton mailto:[EMAIL PROTECTED] Python Powered! CTO (540) 361-1714http://www.python.org Zope Corporation http://www.zope.com http://www.zope.org

Re: [Zope-dev] Time for a beta!

2005-12-04 Thread Andreas Jung
--On 4. Dezember 2005 14:36:17 -0500 Jim Fulton [EMAIL PROTECTED] wrote: Zope 3 seems to ve ready for a beta release. Does that mean Zope 2 is ready? Zope 2 should be ready. However there seems to be an unresolved issue with building the distribution archive from the sources (something

Re: [Zope-dev] Please vote about conflict errors logging

2005-12-04 Thread Dieter Maurer
Jean-Marc Orliaguet wrote at 2005-12-2 23:57 +0100: ... on what level to report retried ConflictError ... BLATHER (I have never be able to get any meaningful information from them, except that zope tries several times) That's because the generated messages *were* uninformative. You can see the

Re: [Zope-dev] AcceleratedHTTPCache and virtual hosting (collector 1447)

2005-12-04 Thread Dieter Maurer
Jens Vagelpohl wrote at 2005-12-3 16:08 +: ... Another thought: Maybe before doing anything else, I should make the client class used by AcceleratedHTTPCache configurable, so I can more easily get a mock in there. Something like: I like the secondary route, but I'm not sure the

Re: [Zope-dev] Logging of ConflictError

2005-12-04 Thread Dieter Maurer
Florent Guillaume wrote at 2005-12-2 22:59 +0100: ... If you look at the way their purpose is explained in zLOG, you'll see that level INFO is reserved for things like server startup and shutdown. Or, as shown above, initial mounting of databases. Anything recurring that can happen many

Re: [Zope-dev] Please vote about conflict errors logging

2005-12-04 Thread Dieter Maurer
Florent Guillaume wrote at 2005-12-2 23:00 +0100: Please vote for the level at which you want to log retried conflict errors. These are the ConflictErrors that aren't returned to the user but automatically retried by the Zope publisher. 1. Do you want these ConflictErrors retried logs to be

Re: [Zope-dev] Please vote about conflict errors logging

2005-12-04 Thread Jean-Marc Orliaguet
Dieter Maurer wrote: Jean-Marc Orliaguet wrote at 2005-12-2 23:57 +0100: ... on what level to report retried ConflictError ... BLATHER (I have never be able to get any meaningful information from them, except that zope tries several times) That's because the generated messages

Re: [Zope-dev] Logging of ConflictError

2005-12-04 Thread Dennis Allison
Dieter's point about not includeing the traceback makes sense if all it does is report on the reporting code. Wlorent, do you envision a single ConflicError or two -- one which succeeds on retry and another where the retry fails? On Sun, 4 Dec 2005, Dieter Maurer wrote: Florent Guillaume

Re: [Zope-dev] KeyError: 'URL' in HTTPRequest using zope2.7-py2.3.3

2005-12-04 Thread Dieter Maurer
Brian Watson wrote at 2005-12-4 14:33 -0500: ... raise KeyError, key KeyError: 'URL' The request in your PageTemplate context lacks an URL. URL is set in the HTTPRequests constructor (__init__). If an HTTPRequest instance lacks URL this means either: * the instance was created in a