[Zope-dev] inituser problem

2005-05-14 Thread Chris Withers
Hi, I have a problem with the code in AccessControl.User.UserFolder._createInitialUser. It creates a user under what I feel are fairly bizarre circumstances. I feel it should simply use inituser if it's there and the user in it doesn't already exist in the root acl_users. Either that, or it

[Zope-dev] Re: [Zope-Coders] Unauthorized results in 401, shouldn't it result in 403?

2005-04-21 Thread Chris Withers
Sidnei da Silva wrote: | | 2. Is the above behaviour pluggable at all? | | Not at all. | | Should it be? Can it be without impacting on performance? I don't think so. I would expect there's only one sane way to do it. I'm not sure I agree, I've read lots of different views on this sort of

Re: [Zope-dev] Re: [Zope-Coders] Unauthorized results in 401, shouldn't it result in 403?

2005-04-21 Thread Chris Withers
Lennart Regebro wrote: On 4/21/05, Chris Withers [EMAIL PROTECTED] wrote: Aha, as does PAS I see. Does this mean RESPONSE.unauthorized should be a responsibility of the user folder? I think it should be, yes. Or, actually the responsibility of the user object. Why the difference? cheers, Chris

Re: [Zope-dev] Turning off product installation in zope.conf on all zeo clients?

2005-04-20 Thread Chris Withers
Jens Vagelpohl wrote: From what I understand it prevents the installation/writing of a product into the ZODB (the products management part of the Control_Panel) and thus prevents conflict errors. If the product is already installed (e.g. by a client who is allowed to do so) then you can

Re: [Zope-dev] To ZCML or not ;-)

2005-04-20 Thread Chris Withers
Martijn Faassen wrote: Anyway, while I have my criticisms of ZCML, too much typing is really not very important in my list. You can get it somewhat shorter, I'm sure, but not *that* much shorter. I'd worry more about the reading part than the writing. More typing = more reading in my books, so

Re: [Zope-dev] To ZCML or not ;-)

2005-04-20 Thread Chris Withers
Stephan Richter wrote: Can you be more specific? I think ZCML is very compact. Well, I'm hoping to take a proper look at the latest Z3 some time soon, so I'll let you know after that and shut up on the subject in the meantime ;-) cheers, Chris -- Simplistix - Content Management, Zope Python

[Zope-dev] Re: [Zope-Coders] Unauthorized results in 401, shouldn't it result in 403?

2005-04-20 Thread Chris Withers
Sidnei da Silva wrote: | Now, 5.2 is where I have the problem, since raising unauthorized | anywhere in Zope traditionally pops up a basic auth box rather than | returning standard_error_message with a 403 response which, as time goes | by, I'm starting to think is what should really happen.

Re: [Zope-dev] debug-mode on under Windows 2000.

2005-04-19 Thread Chris Withers
[EMAIL PROTECTED] wrote: I'm trying to get Zope to reload my Python modules so I don't have to restart Zope after code changes. Even with debug-mode on (according to the zope config file, it defaults to on) my modules are not being reloaded unless I do a restart. Is there a fix for this? Debug

Re: [Zope-dev] Turning off product installation in zope.conf on all zeo clients?

2005-04-18 Thread Chris Withers
Jens Vagelpohl wrote: What happens if you turn this off in all zeo clients? New products don't get installed..? Okay, but what does installed mean? Would it actually stop new instances of object classes provided by the product being instantiated, or would it just prevent help pages and other

Re: [Zope-dev] To ZCML or not ;-)

2005-04-08 Thread Chris Withers
Lennart Regebro wrote: You know the feeling when a third party product has the wrong permission or no permission at all on something? What are you gonna do? Subclass: Lots of work. Patch: You gotta keep it updated. With ZCML, you override it. TADA! Yes, this is all stuff I know and love about Z3

[Zope-dev] Turning off product installation in zope.conf on all zeo clients?

2005-04-08 Thread Chris Withers
Hi, There's an option to turn off prudct installation in zope.conf. What happens if you turn this off in all zeo clients? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev

[Zope-dev] Re: brain.getObject and traversal

2005-04-07 Thread Chris Withers
Andreas Jung wrote: Chris wants to backport it to 2.7 x; I'm opposed. Your call. If it does not change the default behaviour we have in 2.7.5... why not... Cool, thanks, I'll look at merging for 2.7.6 :-) cheers, Chris -- Simplistix - Content Management, Zope Python Consulting -

[Zope-dev] To ZCML or not ;-)

2005-04-07 Thread Chris Withers
Richard Jones wrote: Is this a general trend for Zope 2? I'd rather see Zope 2 kinda avoid ZCML if possible. It's just one of those personal preference things, I suppose, but I know I'm not the only one who isn't that enamored of the ZCML approach. I actually like having the declarations all in

[Zope-dev] Re: brain.getObject and traversal

2005-04-04 Thread Chris Withers
Hi Tres, We really need to follow a deprecation-style model here: the risk of breaking major third party components is pretty high. Agreed. I see you started working on this, thanks! Since this is a bug, and it looks like it's going to be fixed with a config option, would anyone mind if I ported

Re: [Zope-dev] brain.getObject and traversal

2005-04-04 Thread Chris Withers
Florent Guillaume wrote: Is everyone ok with returning - the object if it can be accessed - raise Unauthorized if it can't be accessed - raise NotFound if it's not there Please don't catch any exceptions and re-raise them in a different type, just let them pass through. I specifically don't

Re: [Zope-dev] brain.getObject and traversal

2005-04-01 Thread Chris Withers
Florent Guillaume wrote: Well of course no, but I never had to check a getObject() against Unauthorized. Maybe it's because I only use it in a CMF setting where unaccessible objects are filtered anyway. Maybe, but CMF isn't the only use of Zope ;-) OTOH you're a bit excessive in your Whole

Re: [Zope-dev] brain.getObject and traversal

2005-03-31 Thread Chris Withers
Florent Guillaume wrote: You're mistaken. The old code did: def getObject(self, REQUEST=None): Try to return the object for this record try: obj = self.aq_parent.unrestrictedTraverse(self.getPath()) if not obj: if REQUEST is None:

Re: [Zope-dev] Disabling FTP by default

2005-03-31 Thread Chris Withers
Florent Guillaume wrote: I'd like to disable FTP by default, by commenting it out in skel/etc/zope.conf. The reason is that it's better to open as few ports as possible by default. Opinions ? +1, but only for 2.8 Chris -- Simplistix - Content Management, Zope Python Consulting -

Re: [Zope-dev] Re: [Zope-Coders] Re: Question about procedures

2005-03-30 Thread Chris Withers
martin f krafft wrote: Do not use hasattr for persistent objects. Use if getattr(ob, 'absolute_url', None) is None: Can I read up on the rationale somewhere? hasattr catches all exceptions and returns false. Now google for COnflictError ;-) + raise

Re: [Zope-dev] brain.getObject and traversal

2005-03-30 Thread Chris Withers
Florent Guillaume wrote: 2. is necessary for backward compatibility. *all* the previous implementations of getObject returned None in case of problems. This is the only bit I'm asking about, I accept that I'm in the insane minority on the other point ;-) Just because that's what it did before

Re: [Zope-dev] Parrot

2005-03-21 Thread Chris Withers
Alan Milligan wrote: An obvious benefit is the genuine concurrency it offers over GIL on SMP hardware. Anyone running an enterprise Zope or Plone installation would desire to take advantage of this. ZEO, multiple clients and processor affinity settings already offer this, and with no extra

Re: [Zope-dev] Re: ZCatalog getObject broken

2005-03-21 Thread Chris Withers
Florent Guillaume wrote: Ah, okay, I thought that's what you meant, but I hoped it wasn't. The fact that you expect this to work is a bug in Zope's security machinery, IMHO, but sadly only IMHO it appears. Huh? That's fundamental to Zope's security model. As I said, I appear to be the only person

Re: [Zope-dev] Re: Zope on Windows - REQUEST for volunteers

2005-03-21 Thread Chris Withers
Mark Hammond wrote: A quick search for windows doesn't show too many. As far as I can tell, all but 2 (1689 and 1728) are fixed with my patches. I also note that my patches have been sitting there for a number of months now - so I humbly suggest the problem is not simply a lack of appropriate

Re: [Zope-dev] Re: ZCatalog getObject broken

2005-03-16 Thread Chris Withers
Roché Compaan wrote: I don't get why you're not getting it :-) A, B and C are folders nested in each other i.e. A/B/C. A user does not have access to A and B but he does have access to C. If getObject uses restrictedTraverse it returns None immediately when traversing A, even though the user is

Re: [Zope-dev] Re: ZCatalog getObject broken

2005-03-16 Thread Chris Withers
Roché Compaan wrote: This is what I am arguing but I haven't had anybody agree/disagree with me yet. It is also a lot simpler to fix: return self.aq_parent.restrictedTraverse(self.getPath(), None) --- return self.aq_parent.unrestrictedTraverse(self.getPath(), None) I don't really mind

Re: [Zope-dev] Overriding Products

2005-03-16 Thread Chris Withers
Martijn Jacobs wrote: Hello guys. I have a question regarding product importing in zope 2.7.x, as since zope 2.7 this part is way more flexible then it was before. I'd like to accomplish the next situation : Look for PRODUCTS_PATH or its zope.conf equivalent... Chris -- Simplistix - Content

Re: [Zope-dev] Re: ZCatalog getObject broken

2005-03-11 Thread Chris Withers
Florent Guillaume wrote: In the current getObject problem that concerns us, we want to do better that restrictedTraverse, Why? As far as any problems I had go, it was purely the returning None when the user can see the object that was the bug. Provided getObject raises unauthorised when a user

[Zope-dev] February Bug Day Roundup

2005-03-08 Thread Chris Withers
Hi All, Ug, looks like things went from bad to worse. January's bug day was very quiet, February's was totally dead. Not a single issue was dealt with on the bug day and #zope-dev was dead for the whole day. I'm going to take a break from running bugdays for a few months since I guess we're

Re: [Zope-dev] ZCatalog getObject broken

2005-03-03 Thread Chris Withers
Roché Compaan wrote: +obj = self.aq_parent.unrestrictedTraverse(self.getPath(), None) +if obj and securityManager.validate(obj, obj, None, None): +return obj +else: +return None Urm, Roche, doesn't the above seek to do exactly what... return

Re: [Zope-dev] ZCatalog getObject broken

2005-03-02 Thread Chris Withers
Roché Compaan wrote: Maybe, a bug report to the collector will help? http://www.zope.org/Collectors/Zope Well, I posted just such an issue a few months back. I'm working offline so can't give you the exact number but have a search and you should find it. I seem to remember Andreas

Re: [Zope-dev] Conflict errors on startup, revisited

2005-02-25 Thread Chris Withers
Tim Peters wrote: I'm not really happy with that, because I have no theory for how ZEO client cache files _get_ out of synch. The most common one for me is connecting a ZEO client to one storage server (say a dev one) and then changing the config to connect to another storage server (say a

[Zope-dev] Announce: February Zope Bug Day!

2005-02-22 Thread Chris Withers
Hi All, My my how time flies ;-) It's the end of February and that means another bug day. I'll probably be a little busy, but I'll be trying to squash at least a few bugs... What? Zope Bug Day working from http://www.zope.org/Collectors/Zope When? Friday 26th February - from when you wake

[Zope-dev] Re: Announce: February Zope Bug Day!

2005-02-22 Thread Chris Withers
Chris Withers wrote: When? Friday 26th February - from when you wake up until when the day ends! Urg, I do, of course, mean Friday 25th February... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

Re: [Zope-dev] doubt in starting Zope in debug mode on Windows

2005-02-15 Thread Chris Withers
[resending 'cos zope-dev bans batch files for some stupid reason :-S] Aruna Kathiria wrote: It started but Im not getting the python command prompt as how we get it on unix when we use zopectl start (in debug mode). I'm fairly sure you mean zopectl debug on linux :-) ...in which case, I use the

Re: [Zope-dev] Renamed the Zope package to Zope2 and including Zope 3 packages in Zope 2.8

2005-02-03 Thread Chris Withers
Stephan Richter wrote: Yes, that is true for packages in zope. So, if I understand you correctly, I can use all packages, except those in zope.app, on their own, without having to rely on anything else, right? However, zope.app was designed as the application server and has thus many

Re: [Zope-dev] Renamed the Zope package to Zope2 and including Zope 3 packages in Zope 2.8

2005-02-02 Thread Chris Withers
Martijn Faassen wrote: That's only to make things more easily deployable. Right now the hard part is however detaching Zope 3 stuff from its dependencies Really? That's extremely disappointing :-( The most important aim of Zope 3 from my POV was to be able to use as little or as much of it as

Re: [Zope-dev] Renamed the Zope package to Zope2 and including Zope 3 packages in Zope 2.8

2005-02-01 Thread Chris Withers
Jim Fulton wrote: please respond here or on the z3-file list, Which list is this? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev maillist - Zope-Dev@zope.org

[Zope-dev] January Bug Day Roundup

2005-01-28 Thread Chris Withers
Hi All, Well, it was certainly a quiet one. Both Andreas and myself were busy and things felt very quiet indeed... One 3 issues resolved, but lots of work done by Tres on some nasties. Special mention must go to brentmh/Crouton who was brave enough to try and solve a bug in dtml's sequence

[Zope-dev] Announce: January Zope Bug Day!

2005-01-20 Thread Chris Withers
Hi All, Time to announce the 1st bug day of 2005! This time it's on a Thursday to see if that generates more or less interest... What? Zope Bug Day working from http://collector.zope.org/Zope When? Thursday 27th January - from when you wake up until when the day ends! Where? #zope-dev on

[Zope-dev] Re: [Zope] November Bug Day Roundup January Bug Day Announcement!

2005-01-19 Thread Chris Withers
Andreas Jung wrote: --On Dienstag, 18. Januar 2005 20:55 Uhr + Chris Withers [EMAIL PROTECTED] wrote: The next bug day is going to be on Thursday 27th November as an experiment to see if those who complain about the Friday bug days can make it. Hope to see all on #zope-dev next Thursday

Re: [Zope-dev] Extending SiteErrorLog

2005-01-19 Thread Chris Withers
Christian Theune wrote: Jup. I'm writing a file for a selected entry called Exception-error_log_id containing a textual representation of the whole error log entry (not just the traceback). Good to know :-) In any case, here's another idea: Make the storage of information to the log pluggable.

[Zope-dev] November Bug Day Roundup January Bug Day Announcement!

2005-01-18 Thread Chris Withers
Hi All, It's a long time overdue, but here's the roundup. I suspect these all made it into 2.7.4, if anyone's curious :-) The great news is that lots of bugs were resolved, and it was especially good to see patches contributed by people outside the usual core of developers. Thanks to those

Re: [Zope-dev] Extending SiteErrorLog

2005-01-12 Thread Chris Withers
Christian Theune wrote: Replying to myself ... :) See the branch ctheune-extending_error_log. I checked my changes in. Any feedback is welcome. If no complaints come around, I'm going to put that on the trunk after a week. Haven't had a look, but since it's related, I'll pipe up. I'd love to see

Re: [Zope-dev] INGRES R3 . If you plan to use Ingres please read this

2005-01-12 Thread Chris Withers
sathya wrote: Since Ingres Plone and APE have some things in common I thought I should post this on this forum. Your experience may be different and the above is just FYI . I hope things get better in the days ahead. Out of interest, where are APE and Ingres's python support downloadable from?

Re: [Zope-dev] i18n:translate - problem

2004-12-22 Thread Chris Withers
Bernd Dorn wrote: When I do .po files with the same domain, e.g: Domain: CMS\n and they have different Language-Code: header e.g: Language-Code: pl\n and Language-Code: en\n Zope chooses language based on web browser settings :(. When I'm setting xml:lang and lang attributtes it doesen't make

[Zope-dev] Re: [Zope-Checkins] CVS: Packages/ZPublisher - Converters.py:1.23.2.3 HTTPRequest.py:1.90.2.7 HTTPResponse.py:1.75.2.7

2004-11-19 Thread Chris Withers
Andreas Jung wrote: Update of /cvs-repository/Packages/ZPublisher In directory cvs.zope.org:/tmp/cvs-serv30970/lib/python/ZPublisher Modified Files: Tag: Zope-2_7-branch Converters.py HTTPRequest.py HTTPResponse.py Log Message: 'latin1' - 'iso-8859-15' ===

[Zope-dev] Announce: November Zope Bug Day!

2004-11-19 Thread Chris Withers
Hi All, Well, October came and went with no bug day. Apologies to all :-S However, the November bug day will shortly be upon us! What? Zope Bug Day working from http://collector.zope.org/Zope When? Friday 26th November - from when you wake up until when the day ends! Where? #zope-dev on

[Zope-dev] September Bug Day Roundup

2004-09-24 Thread Chris Withers
Hi All, Well, it looks like another bumper crop, not quite eclipsing the 60 issues in July's bug day, but still, 32 issues got dealt with including 9 resolved issues. 2 of those had seen lots of work throughout the month and it was great to finally put them to bed. Session stuff and

[Zope-dev] Announce: September Zope Bug Day!

2004-09-21 Thread Chris Withers
Hi All, A bit late on the announcement again, but with Andreas back (iirc) and myself being able to devote a full day, this should be a bit more of an enthusiastic bug day. What? Zope Bug Day working from http://collector.zope.org/Zope When? Friday 24th September - from when you wake up

Re: [Zope-dev] Re: Developing plugins for PluggableAuthService

2004-09-03 Thread Chris Withers
Lennart Regebro wrote: Somebody can fix that for 2.8 tomorrow, maybe? Well, zLOG is totally gone is 2.8, I guess it could do with fixing on the 2.7 branch, so please submit a collector entry :-) cheers, Chris -- Simplistix - Content Management, Zope Python Consulting -

Re: [Zope-dev] portal_actions via listFilteredActionsFor

2004-09-02 Thread Chris Withers
This is a question for a plone list. But you'll probably need to understand Zope's security machinery better to get a handle on what you need to do. Read this: http://zope.org/Documentation/Books/ZopeBook/2_6Edition/Security.stx cheers, Chris PS: Please note, this list is for development OF, not

Re: [Zope-dev] Zope MemoryError after installing Plone

2004-09-02 Thread Chris Withers
Matt Shaw wrote: I just compiled a fresh copy of zope 2.7 - it started up just fine. So then I grabbed Plone 2.0.4. After copying Plone to my Products directly, I cannot startup Zope and I get a MemoryError. Here is the tb: http://paste.plone.org/1317 Tehn maybe you should ask on a Plone list ;-)

Re: [Zope-dev] Re: Developing plugins for PluggableAuthService

2004-09-02 Thread Chris Withers
Lennart Regebro wrote: OK, Thanks. I'm noticing that (with Zope 2.7.2) when I do this, I do not get the modulname (whatever) nor the exception level WARNING printed to the log. Is this a config error, or am I doing something wrong? Because quite obviously, it should be there, right? You're not

Re: [Zope-dev] Re: Developing plugins for PluggableAuthService

2004-09-01 Thread Chris Withers
Lennart Regebro wrote: Chris Withers wrote: You do know I have a working CASUserFolder, right? No, but we wouldn't have been able to use it, since we need CPS support. What does CPS support mean? Why wouldn't CASUserFolder work with CPS? I've got a customer who wants this to work in a proxied

[Zope-dev] Announce: August Zope Bug Day!

2004-09-01 Thread Chris Withers
Hi All, This announcement is pretty late, so I'm expecting it to be more of a low-key affair. That said, there's is a CMF bug day happening at the same time, so who knows... What? Zope Bug Day working from http://collector.zope.org/Zope When? Friday 3rd September - from when you wake up

Re: [Zope-dev] closed collector issues 1252 and 1308

2004-08-31 Thread Chris Withers
Paul Winkler wrote: But occasionally it's really handy to know. It's a wheel that people get to occasionally reinvent for no good reason, and while it's not rocket science to get it right, it IS way too easy to get wrong. Yep, this sounds like a documentation problem, no a we need mroe code

Re: [Zope-dev] Re: Developing plugins for PluggableAuthService

2004-08-31 Thread Chris Withers
Lennart Regebro wrote: If an error happens, a LOG should be printed... Is there any chance I could tempt you to change these to be Python 2.3 style logging calls? Zope will be moving to them for 2.8 and it'd be great if you can change the code while you're in there... cheers, Chris --

Re: [Zope-dev] Re: Developing plugins for PluggableAuthService

2004-08-31 Thread Chris Withers
Lennart Regebro wrote: This is too bad, becuase for the CAS plugin that I started to write, I need to redirect to an external web-page. No can do at this moment. You do know I have a working CASUserFolder, right? I've got a customer who wants this to work in a proxied environment, and I think

Re: [Zope-dev] Re: Developing plugins for PluggableAuthService

2004-08-31 Thread Chris Withers
Could you add this patch to the following collector issue: http://zope.org/Members/urbanape/PluggableAuthService/Collector/4 cheers, Chris Willi Langenberger wrote: According to Lennart Regebro: No. Closer inspection seems to show that I actually don't get PAS to do anything at all. It is simply

Re: [Zope-dev] closed collector issues 1252 and 1308

2004-08-25 Thread Chris Withers
Paul Winkler wrote: absolute_url - containment only, does not include contextual elements from the client's URL, that's the whole point of this method :-) What do you mean by contextual elements from the client's URL absolute_url(relative=1) - same as absolute_url, and not usable in some

Re: [Zope-dev] Preventing scripts from being called directly

2004-08-24 Thread Chris Withers
Dario Lopez-Kästen wrote: because the scripts i use in conjunction with SUF and that return person information are callable as http://server/acl_users/scriptname. Oh, well those can be totally unavailable to everyone. It seems the security machinery is bypassed at that stage in the game ;-) BTW,

Re: [Zope-dev] closed collector issues 1252 and 1308

2004-08-24 Thread Chris Withers
Hi there, yuppie wrote: Just want to let you know that I'm not happy with the way these two collector issues were resolved: http://zope.org/Collectors/Zope/1252 http://zope.org/Collectors/Zope/1308 Hope at least one of them will be re-opened. Since these are both confused, long standing feature

Re: [Zope-dev] closed collector issues 1252 and 1308

2004-08-24 Thread Chris Withers
Simon Eisenmann wrote: a tal:define=url request/VIRTUAL_URL|string:${request/SERVER_URL}${request/PATH_TRANSLATED} tal:attributes=href string:${url}#someContent/a So having VIRTUAL_URL anytime available would help alot. Can you have a look at the latest comment added to:

Re: [Zope-dev] Re: Debian and Zope

2004-08-23 Thread Chris Withers
Thaddeus H. Black wrote: Can you tell us who that maintainer is? Luca De Vitis [EMAIL PROTECTED]. Last known Zope activity: 4 Nov 2003. Hmmm, don't know him. Anyone else know him? Oh well, I guess we'll just have to wait for someone with the necessary Zope and Debian Zen to emerge :-/ cheers,

Re: [Zope-dev] Preventing scripts from being called directly

2004-08-23 Thread Chris Withers
Dario Lopez-Kästen wrote: I am trying to prevent PythonScripts from being called directly TTW. Why? Is there a better way of doing this than the following code being called at the very begining of the script? if script.getPhysicalPath() = context.REQUEST.PUBLISHED.getPhysicalPath(): raise

Re: [Zope-dev] Re: Debian and Zope

2004-08-20 Thread Chris Withers
Hi Thaddeus, Thaddeus H. Black wrote: Please let me know if it doesn't show up there... I see your message there [http://bugs.debian.org/251038] presently. Cool, the bug's going to look a bit bloated due to the way the Zope Collector sends mails, but at least everyone will know where things are

Re: [Zope-dev] Re: Debian and Zope

2004-08-19 Thread Chris Withers
Thaddeus H. Black wrote: This question regards the code in Zope's zpasswd.py. If you know zpasswd.py or are involved in Debian, please reply. I've attempted to add this to the Zope issue tracker and used the Debiuan bug's email address so it can be tracked there too. Please let me know if it

Re: [Zope-dev] Re: Possible Windows Service improvements.

2004-08-13 Thread Chris Withers
Tres Seaver wrote: I still think we should look at making a Windwos version of the 'zdaemon' handler, which uses a Unix-domain socket between parent and child: we could either use a named pipe on Windows, or else a socket on localhost, to achieve the same ends. This would have the upside that

Re: [Zope-dev] Re: [Zope-Coders] Collector Status Meanings

2004-08-09 Thread Chris Withers
Dieter Maurer wrote: Ken Manheimer wrote at 2004-7-30 11:50 -0400: On Fri, 30 Jul 2004, Chris Withers wrote: ... My intent for the states is different from what you suggested, in some cases significantly. I like your intents! Can you explain what bits specifically? This comment currently doesn't

Re: [Zope-dev] Making a ZSQL.DA fully multi-threaded?

2004-08-08 Thread Chris Withers
Dieter Maurer wrote: Chris Withers wrote at 2004-7-23 10:58 +0100: Dieter Maurer wrote: All DA's I saw up to now, do a reconnect. ZOracleDA didn't... Really? I saw it reconnecting... It had some pretty whacky heuristic crap for when to reconnect, you must have been very lucky :-) Raising

[Zope-dev] July Bug Day Roundup

2004-07-31 Thread Chris Withers
Hi All, A pretty frenetic bug day saw a LOT of cruft ejected from the collector. It also saw a good few bugs resolved, and a lot more marked as resolved that had been fixed along the way. Also, there's now documentation of what the various collector states mean at:

[Zope-dev] Re: [ZC] 1223/ 8 Reject Problem with meta_type

2004-07-30 Thread Chris Withers
Gareth Bult wrote: Actually, this should be rejected. A Zope object without a meta_type has some pretty serious issues ;-) Interesting statement - not that I disagree .. but my question is - does a Zope that crashes when it could (with a one-line change) be made not to crash have *more* serious

[Zope-dev] Collector Status Meanings

2004-07-30 Thread Chris Withers
Hi All, Apologies for the cross-posting, but I think this is relevent to all these lists. I've summarised the meaning of the various collector states here: http://dev.zope.org/CVS/CollectorStatuses Please let me know if you disagre with any of that, although I'm pretty sure they're right and

[Zope-dev] Re: [ZC] 1223/ 8 Reject Problem with meta_type

2004-07-30 Thread Chris Withers
Gareth Bult wrote: Out here in the real world, in this specific case, apparently it doesn't make things worse .. I go from not working at all, to working apparently 100% .. without having to scrap my DB or write code to scan for items with missing meta_types and create them... In your real world

[Zope-dev] Announce: August Zope Bug Day!

2004-07-27 Thread Chris Withers
Hi All, July has flown by, and so I'm pleased to announce the third monthly bug day: What? Zope Bug Day working from http://collector.zope.org/Zope When? Friday 30th July - from when you wake up until when the day ends! Where? #zope-dev on irc.zope.org Come along and help if you've got a

[Zope-dev] June Zope Bug Day: IRC correction

2004-07-27 Thread Chris Withers
Chris Withers wrote: Where? #zope-dev on irc.zope.org That should probably be irc.freenode.net. cheers, Chris ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related

Re: [Zope-dev] Making a ZSQL.DA fully multi-threaded?

2004-07-23 Thread Chris Withers
Dieter Maurer wrote: All DA's I saw up to now, do a reconnect. ZOracleDA didn't... But this is *WRONG -- as part of a transaction may have been lost. After reconnecting, they should raise an exception derived from ConflictError and let the complete request retry. ...but it now does this :-) Chris

Re: [Zope-dev] [Zope Enhancement Proposal] Sanitizing local roles

2004-07-23 Thread Chris Withers
Dieter Maurer wrote: Local roles are acquired from ancestors. I like all the suggestions in concept. However, I'm aware the Zope 3 guys have probably tackled this. Wouldn't be be better to back-port their solution rather than implementing a new and difference one? cheers, Chris -- Simplistix -

Re: [Zope-dev] Making a ZSQL.DA fully multi-threaded?

2004-07-21 Thread Chris Withers
Brad Clements wrote: I have set the SAPDB timeout to 32400 seconds. Unless you have an extremely heavily loaded Zope, that's too low, and may be causing you problems... That is the maximum allowed value in dbmgui. My point is that unless you implement a connection pool model independent of Zope's

Re: [Zope-dev] Making a ZSQL.DA fully multi-threaded?

2004-07-19 Thread Chris Withers
Brad Clements wrote: What's the actual problem you're experiencing? I have set the SAPDB timeout to 32400 seconds. Unless you have an extremely heavily loaded Zope, that's too low, and may be causing you problems... Chris -- Simplistix - Content Management, Zope Python Consulting -

Re: [Zope-dev] Making a ZSQL.DA fully multi-threaded?

2004-07-19 Thread Chris Withers
Brad Clements wrote: That does suck, but it doesn't seem like an insurmountable problem for a DA. You just need a per-DA instance mutex which you acquire before opening a connection release afterwards. Someone else said that every thread has it's own copy of ZODB, hence their own copies of each

Re: [Zope-dev] Making a ZSQL.DA fully multi-threaded?

2004-07-19 Thread Chris Withers
Ganesha Shanmuganathan wrote: parallel because of the overhead of setting up new connections. To implement connection pooling, I think it is best to do it using an externel product like SQLRelay than at the driver level. You may find connecting to SQLRelay suffers from the same problems... It's

Re: [Zope-dev] How to add sections to zope.conf?

2004-07-16 Thread Chris Withers
Dieter Maurer wrote: You must extend the zopeschema.xml or let your process use a schema derived from zopeschema.xml (schema support some form of inheritance). Is there any way for a Product to do this or do I actually have to go and manually spank zopeschema.xml when I install my product? Chris

Re: [Zope-dev] Making a ZSQL.DA fully multi-threaded?

2004-07-16 Thread Chris Withers
Brad Clements wrote: On 9 Jul 2004 at 21:17, Dieter Maurer wrote: Check whether the connection is maintained in a _v_ attribute (in this case, it is per thread). Otherwise, the connection would need to be maintained in a module global registry indexed with a DA id (e.g. its ZODB path). This is

[Zope-dev] How to add sections to zope.conf?

2004-07-04 Thread Chris Withers
Hi all, Say I have a process which needs some configuration but which is based on zope. How do I add arbitary sections into zope.conf at the top level and then how do I get hold of the configuration? What I'd like to do (and tried!) is to write a component.xml, put it in my package and then add

Re: [Zope-dev] INSTANCE_HOME and SOFTWARE_HOME still necessary in 2.7 start script?

2004-07-03 Thread Chris Withers
Fred Drake wrote: On Friday 02 July 2004 02:21 am, Chris Withers wrote: Well, the automatically generated runzope still includes INSTANCE_HOME and SOFTWARE_HOME, hence my question... Can those variables be dropped from the template script? They were dropped, also back when I added

Re: [Zope-dev] INSTANCE_HOME and SOFTWARE_HOME still necessary in 2.7 start script?

2004-07-02 Thread Chris Withers
Fred Drake wrote: On Thursday 01 July 2004 07:42 pm, Chris Withers wrote: Is it still necessary to specify INSTANCE_HOME and SOFTWARE_HOME in the start script for Zope? I'm pretty sure I removed that requirement long ago, back when I added the App.config module. Cool :-) Or would

[Zope-dev] Weird AssertionError on History Compare in Zope 2.7.1 PythonScript

2004-06-30 Thread Chris Withers
Hi, I upgraded a Zope 2.6.2 site to 2.7.1. Since then, the history tab of all my old Script(Python)'s is broken. If I try to do a compare between two versions, or just view a historical revision, I get the following error: 2004-06-30T17:41:22 ERROR(200) SiteError

Re: [Zope-dev] Weird AssertionError on History Compare in Zope 2.7.1 PythonScript

2004-06-30 Thread Chris Withers
Yes. And then undo=ing the recompilation in case it cause this. And then re-doing it again. Either way, the error remains the same. Chris Stefan H. Holek wrote: Did you try to recompile the PythonScripts? Stefan On Mittwoch, Jun 30, 2004, at 18:52 Europe/Vienna, Chris Withers wrote: I upgraded

[Zope-dev] How do you open mounted databases on startup in 2.7?

2004-06-30 Thread Chris Withers
In 2.6, with DBTab, I had something like: [Storage: Packed] type=ClientStorage addr=zeo://localhost:6001 storage=packed cache_size=1 [Database: Packed] cache_size=4000 mount_paths=/somepath open_at_startup=1 The closest I can get in 2.7 is: zodb_db packed zeoclient server

[Zope-dev] June Bug Day Roundup

2004-06-28 Thread Chris Withers
Hi All, A quieter Bug Day than before, hopefully due to my late announcement and the fun and games we've been having with the lists of late. Nevertheless, here's the bugs that were processed from the Zope collector: Fixed: #1384 - len(LazyCat) problems #1386 - DateTime cannot parse some ISO 8601

[Zope-dev] Announce: June Zope Bug Day!

2004-06-24 Thread Chris Withers
Hi All, Another month has scarily quickly passed us by, and so I'm pleased to announce the second monthly bug day, although on much shortner notice this time: What? Zope Bug Day working from http://collector.zope.org/Zope When? Friday 25th June (tomorrow) - from when you wake up until when

Re: [Zope-dev] bug day?

2004-06-24 Thread Chris Withers
Leonardo Rochael Almeida wrote: This next Friday (25th) is the last friday of the month. Are we going to have a bugday? Yes, sorry, I've been slack announcing it, but just done now... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

[Zope-dev] Re: [Zope3-dev] Re: RFC: TALES adapters and TAL/Tales variable namespaces

2004-06-02 Thread Chris Withers
How does: take adapter, apply to it object with name as a parameter That's close to the meaning of Even Simpson's Zope 2 ':' extension. Which is why we don't want to use this syntax for adapters. ...differ from: Well, what we did in bristol, enabled: my_content_object/zope:title Which really

[Zope-dev] Re: [Zope3-dev] Re: RFC: TALES adapters and TAL/Tales variable namespaces

2004-06-01 Thread Chris Withers
Jim Fulton wrote: Yup. We implemented: ob/adapter:name ...which to me says: take adapter, apply to it object with name as a parameter ...what I'd like it to say would give meaning to: my_content_object/zapi:title ...meaning apply the title adapter from the zapi package to my_content_object,

[Zope-dev] Re: [Zope3-dev] Re: RFC: TALES adapters and TAL/Tales variable namespaces

2004-05-31 Thread Chris Withers
Garrett Smith wrote: I want to thank everyone who's participating in this thread. The input is extremely valuable. This might get an award for longest thread before The Edict is handed down ;) Yeah, and I have to admit being a bemused bystander... I thought we had this whole discussion about 1-2

Re: [Zope-dev] cvs down ??

2004-05-31 Thread Chris Withers
Tim Peters wrote: :pserver: access is disabled for now, because of recently announced security holes. It will be enabled again when (and if?) CVS is repaired and installed. Use Debian *grumble* *grumble* apt-get update apt-get upgrade *grumble* cheers, Chris -- Simplistix - Content Management,

[Zope-dev] Bug Day status report

2004-05-31 Thread Chris Withers
Ken Manheimer wrote: Just a quick status report on today's Bug Day... 10 bugs resolved, 5 set to won't fix, 4 rejected. RESOLVED: #1213, #852, #1293, #1355, #1265, #1352, #1094, #993, #1132, #596 WONTFIXED: #1193, #329, #1098, #1045, #981 REJECTED: #639, #1238, #489, #1297 Thanks to Paul for

Re: [Zope-dev] Zope threads on 2.7.0, python 2.3.3

2004-05-26 Thread Chris Withers
Dario Lopez-Kästen wrote: Chris withers has done some work in improving DCOracle2's connections and general bug-fixning. If you haven't used it, grab the latest DCOracle2 from cvs - it is much better. My work is still on a branch... Have you tried cx_Oracle? No I was not aware that they had

Re: [Zope-dev] Re: Read-only root database doesn't work ... bug orfeature?

2004-05-26 Thread Chris Withers
Chris McDonough wrote: I'm sure I remember reading that about the OLD help system ;-) This *is* the old help system. Oh? What was the on before it then? I'm afraid you've invented an earlier help system in your mind. So the one that's causing problems isn't the one that you currently see in the

<    4   5   6   7   8   9   10   11   12   13   >