Re: [Zope] Zope Persistence (was: XML-RPC within ZOPE)

2005-12-22 Thread Chris Withers
Ole, I'm getting pretty tired of this thread, even reading it is annoying. You're whining about stuff which isn't a problem, and making out like Zope/ZODB has all these big critical flaws, casting huge assertions without having enough understanding to make them... Jan-Ole Esleben wrote:

Re: [Zope] Zope Persistence (was: XML-RPC within ZOPE)

2005-12-22 Thread Chris Withers
Jan-Ole Esleben wrote: 1. In the example, just setting _p_changed=1 does _not_ lead to a conflict error. I can assure you it will if any other connection to that ZODB does the same thing on the same object... executed) it _does_. So there _is_ some implicit magical stuff going on and ZOPE

Re: [Zope] Zope Persistence (was: XML-RPC within ZOPE)

2005-12-22 Thread Chris Withers
Jan-Ole Esleben wrote: That's my problem. Can you, from the ZOPE documentation, predict that the example below will cause a ConflictError? Certainly, try and ask a simple version of these questions on zodb-dev@zope.org and let Tim or Dieter have some fun ;-) cheers, Chris -- Simplistix

Re: [Zope-dev] zope-2.9 r40780 make install doesn't finish, files missing from bin

2005-12-21 Thread Chris Withers
Jens Vagelpohl wrote: IMHO it is an important requirement. We're inviting a hailstorm of questions and annoyed users by breaking this well-known routine for checkouts. I really think there is not a single good reason for having a different experience for checkouts vs tarballs. It would

Re: [Zope-dev] Re: [RfC] Removal of old stuff in Zope 2.10

2005-12-21 Thread Chris Withers
Jeff Kowalczyk wrote: Andreas Jung wrote: I'll raise the question again: what are the benefits of the HelpSys for a Zope user? I can't recall clicking on top frame of the ZMI or a 'Help!' link in the past few years, either. Perhaps an equivalent or greater benefit would be to rip out

Re: [Zope] question for anyone using apache on windows

2005-12-21 Thread Chris Withers
I'm sure there's an Apache list you could be asking these questions, this has nothing to do with Zope. #apache on irc.freenode.net is where I'd go ;-) Chris michael nt milne wrote: Hi Ok so I looked at this stuff but can't find anything listed for point 3. Also I had to set Plone to listen

Re: [Zope] More on understanding conflicts

2005-12-21 Thread Chris Withers
Dennis Allison wrote: Ah so desu. That's the conceptual hook I was missing. Only one transaction per request and no subtransactions! ZODB substransactions won't help you here in the slightest... A transaction is processing initiated by a client request or a redirect. (Anything else?) A

Re: [Zope-dev] svn.zope.org borked

2005-12-20 Thread Chris Withers
Jens Vagelpohl wrote: I appreciate the suggestion but this change is limited to the data backend switchover. Setting up anonymous access via HTTP is a separate activity for another day. You are right, though, access (at least anonymous access) via HTTP is preferable for a lot of

Re: [Zope-dev] [RfC] Removal of old stuff in Zope 2.10

2005-12-20 Thread Chris Withers
Andreas Jung wrote: I've never met ppl who actually used the HelpSys so that's why I am raising the question about the value of the HelpSys. Lots of my co-workers work with Zope on different levels (scripters, product developers)...I've always pointed them to the Zope Book...the HelpSys

[Zope] Stepper 1.4.1 Released!

2005-12-15 Thread Chris Withers
Stepper is a framework for performing asynchronous tasks on Zope servers. This is a bug fix release that corrects some problems with the 1.4.0 release. The major bugs fixed for this release were: - Write conflict errors are now handled in the same way as read conflict errors. - Stepper is

Re: [Zope] List within a list - how to use in a page template

2005-12-15 Thread Chris Withers
David H wrote: # python script # input: a tuple named tup of index items to include in list of lists, eg (1,3) and the list of lists #example input: listoflists = [[61282125371L, 1, 6, 0], [61282125379L, 1, 6, 0], [61282825240L, 6, 6, 0]] #example tup: (1,3) ret = [] for i in

Re: [Zope] dynamic js lists

2005-12-15 Thread Chris Withers
[EMAIL PROTECTED] wrote: script type=text/javascript snip js mess /script That looks like pure javascript, right? In which case it's a pure js problem and this is the wrong list ;-) Try #javascript on irc.freenode.net... cheers, Chris -- Simplistix - Content Management, Zope Python

Re: Fwd: [Zope] zopectl or runzope just won't start zope

2005-12-15 Thread Chris Withers
These sounds like Plone questions best asked on a Plone list... Chris Qass wrote: Thanks for your reply fm. The python version in my path is 2.3.5 and both python and zope were build from source. Zope is installed in /opt which is where the python 2.3.5 is too. I got rid of the zope

Re: [Zope] Unauthorized exception when trying to access a list item

2005-12-15 Thread Chris Withers
Cameron Beattie wrote: The list consists of something like this: [61282125371L, 1, 6, 0]. Are you _sure_ this is a plain python list? Looking at its format, and the apparently weird nature of your other questions, are you maybe abusing a relational database somewhere in this spider's

Re: [Zope] Mailman Zope

2005-12-14 Thread Chris Withers
This is either an Apache or a Mailman question, but it doesn't have much to do with Zope ;-) I suggest you ask on a more appropriate list... Chris John Poltorak wrote: How do I configure a Mailman list for a website which is Zope based? I guess some entries in Apaches configuration file

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

2005-12-12 Thread Chris Withers
Roman Susi wrote: Not sure if filesystem based products qualify, but its like saying that ´is it operating system problem or stupid application code which brings OS down'. One misbehaving code should not bring down the whole framework, IMHO. What is the issue number for this in the zope

Re: [Zope] Re: zdsock

2005-12-12 Thread Chris Withers
John Poltorak wrote: Are you saying that Zope cannot be restarted through ZMI on Windows? Who does that anyway? Even on unix, I use zopectl restart, That is the point - zopectl uses a socket - 'zdsock'. Oh right, well, no, you don't have that kind of socket on WIndoze as far as I know

Re: [Zope] Re: why will FastCGI not be supported in the Future.

2005-12-12 Thread Chris Withers
Tino Wildenhain wrote: The funny thing is - performance isnt really the pro of fcgi over http. Its really more about transporting header and environment data from zope to apache, which is kinda limited with mod_proxy. (Think alternative authentication, ssl ) Indeed, and it's funny that the guy

Re: [Zope] XML-RPC within ZOPE

2005-12-12 Thread Chris Withers
Jan-Ole Esleben wrote: The problem is that it isn't my design, and the design is part of a contract. I can't really do anything about that (the major problem is that there will be SOAP components that might even need to be transparently integrated - which completely excludes ZEO). That

Re: [Zope] Re: zdsock

2005-12-09 Thread Chris Withers
John Poltorak wrote: Are you saying that Zope cannot be restarted through ZMI on Windows? Who does that anyway? Even on unix, I use zopectl restart, my production zope stuff on windows is just scheduled tasks running from Task Scheduler... At the moment, the problem is being able to

Re: [Zope] Zope refusing to serve our large files (180M+)

2005-12-09 Thread Chris Withers
Chris Wilton wrote: If there's a 500 error in the trace or access log, there should be something in your error_log too. Traceback please? None. Zippo. Squat. You're looking in the wrong place. Go to the root of the ZMI in a web browser. You'll see and object called error_log, that's what

Re: [Zope] ZSQL batching with dtml-in

2005-12-09 Thread Chris Withers
Ed Colmar wrote: Will the database be queried for all results, and only have 20 displayed, or will the database just return the 20 that are needed? The database will get hammered every time ;-) There was a thread between myself and Charlie from eGenix on the zope-db list earlier this

[Zope-dev] Re: zLOG deprecation?

2005-12-08 Thread Chris Withers
Philipp von Weitershausen wrote: See below :). Of course, you don't have to deprecate zLOG instantly. How else do you stop people still following the old patterns ;-) I'm happy to sign up for this, but can't promise when it'll happen... So let's schedule it for Zope 2.10 then :). OK, I

Re: [Zope-dev] Tracking long-running requests

2005-12-08 Thread Chris Withers
Sidnei da Silva wrote: On Wed, Dec 07, 2005 at 10:13:36PM +0100, Dieter Maurer wrote: | And, as we speak about replacing Zope2's ZPublisher | by Zope3's Publisher, the old Zope2 ZPublisher will | probably not grow such hooks any more -- but hopefully, | the Zope3 Publisher will signal

[Zope] Re: zdsock

2005-12-08 Thread Chris Withers
Tres Seaver wrote: Ah, okay. How does this work on windows? zdaemon / zopectl *don't* work on windows. oh, my OS is broken *schniff* What's wrong with the default name? Th the original poster's case, his OS requires that Unix-domain sockets have mangled names. ...and so is his ;-)

Re: [Zope] Re: Adding TextIndexNG 3.1.1 error

2005-12-08 Thread Chris Withers
Tres Seaver wrote: Talking of 2.8.5...how about a 2.8.5 release before X-mas (around December, 20th)? +1. +1 too :-) Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist -

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

2005-12-08 Thread Chris Withers
Roman Susi wrote: Even if it is in my code, it is still too bad to get down the whole Zope server. Also, it was confirmed as a bug. Where and who by? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

Re: [Zope] Erase acl_users

2005-12-08 Thread Chris Withers
[EMAIL PROTECTED] wrote: Hello, I have a problem. I erase object acl_users in root directory and now I can´t login in zope. Zope have site error on http://locahost:8080/ An error was encountered while publishing this resource. Error Type: AttributeError Error Value: acl_users it´s possible

Re: [Zope-dev] Re: ConflictError's worthwhile to note?

2005-12-07 Thread Chris Withers
Jean-Marc Orliaguet wrote: Absolutely, this is called debugging an application (= DEBUG, TRACE). Well, I call BS on this ;-) Things like ConflictErrors and slow-running requests are not something you often find out about during application development. They emerge once the load ramps up and

[Zope-dev] Tracking long-running requests

2005-12-07 Thread Chris Withers
Hi Dieter, You err: I do want to see them in the logfile and I stole Florents idea to use threadframe (in his DeadlockDebugger) to include a traceback for long running requests in the logfile. This way, it is easy not only to identify long running requests but also to get hints where they are

Re: [Zope] Saving a Rendered DTML Document

2005-12-07 Thread Chris Withers
Is there any particular reason why you posted this message twice, 5 hrs apart? Asad Habib wrote: Hello. I have a DTML document which contains some DTML, but mostly HTML. I want to save the HTML contents of this DTML document once it is rendered by Zope (i.e. once the DTML is evaluated) in

Re: [Zope] Newbe: Can't import to external script

2005-12-07 Thread Chris Withers
Tom Redfern wrote: How do a call a method (module) with an absolute path name in the filesystem from this module? Give us an example of what you're trying to do... I want to import my own module. Running the script from the command line honors #INCDIR what's #INCDIR?! installation,

[Zope] Re: zdsock

2005-12-07 Thread Chris Withers
Tres Seaver wrote: You have confused the server socket (which is set in the http-server section) with the daemon control socket (set in runner in the zeo.conf file; not currently settable in zope.conf). The control socket has to be a Unix-domain socket. John is asking to surface an existing

Re: [Zope] Re: why will FastCGI not be supported in the Future.

2005-12-07 Thread Chris Withers
Dieter Maurer wrote: The original poster explained his wish to retain FCGI: It reuses an existing connection between Apache and Zope while (he thinks and I might believe it) the recommended mod_proxy way each time opens a new connection. Thus, FastCGI might be more efficient. Show me

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

2005-12-07 Thread Chris Withers
(please keep the list CC'ed in) Roman Susi wrote: What do you mean by freezes? how did you cause this to happen? Surely, this is not only a bug but a security issue leading to DOS attack, IMHO. Well, it's a pretty weird use case from what I can see... Traceback (most recent call

Re: [Zope-dev] Re: zLOG deprecation?

2005-12-06 Thread Chris Withers
Florent Guillaume wrote: Just because you don't see the use in something doesn't mean it has to go away. There's nothing to stop you defining your own log levels with the python logging module. I regularly (eg: MailingLogger) define a report level that is 1 above INFO. In my book BLATHER

Re: ConflictError's worthwhile to note? (was: Re: [Zope-dev] Please vote about conflict errors logging)

2005-12-06 Thread Chris Withers
Dieter Maurer wrote: In a similar way, I could argue that MemoryErrors are there by design. While it is true that *occational* ConflictErrors are nothing to worry about, a higher rate indicates that you soon may come into trouble -- because the risk increases that the automatic

Re: [Zope-dev] Ignoring Warnings

2005-12-06 Thread Chris Withers
Dieter Maurer wrote: A colleague of mine will be very happy: The hundreds of (mostly stupid deprecation) warnings prevent him to efficiently find the true problems in the test runner reports. In principle, he could fix the warnings -- but they (mostly) come not from our code but third

[Zope-dev] Re: zLOG deprecation?

2005-12-06 Thread Chris Withers
Philipp von Weitershausen wrote: This would probably best be handled by one person, so if you are willing to do all the grepping and updating, making zLOG deprecated would just be a minor operation :). ...but one i don't know how to perform. What code would I insert and where? I'm happy to

Re: [Zope-dev] Re: zLOG deprecation?

2005-12-06 Thread Chris Withers
Tim Peters wrote: [Dennis Allison] We probably want an ALL level as well which would map to the NOTSET of the Python logging code and log everything. Why not call it NOTSET? Then you already have it ;-) Or forget it -- TRACE gets everything anyway. Yeah, what he said ;-) Also note that

Re: [Zope-dev] Re: ConflictError's worthwhile to note?

2005-12-06 Thread Chris Withers
Jean-Marc Orliaguet wrote: But aren't you looking for some sort of application profiler? The point is that you need information to build a profile... sort of benchmarker? One could argue that slowly rendered pages are sign that the application is badly designed too, Indeed! still you

Re: [Zope] zdsock

2005-12-06 Thread Chris Withers
John Poltorak wrote: Zope itself works fine when started via runzope, so what is the problem in trying to provide an alternate socket name? zdctl is supposed to accept an alternative socket name:- -s/--socket-name SOCKET -- Unix socket name for client (default zdsock) Unfortunately, I can't

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

2005-12-06 Thread Chris Withers
Roman Susi wrote: This is what freezes Zope: What do you mean by freezes? how did you cause this to happen? Traceback (most recent call last): File /usr/local/lib/python2.3/logging/__init__.py, line 674, in emit msg = self.format(record) File

Re: [Zope] oddity with zope and webdav

2005-12-06 Thread Chris Withers
David Bear wrote: I have a zope instance listening on localhost. I use apache and fastcgi to reach zope. you may wish to rethink that when you get a chance... Now I would like to provide webdav. What do you want to use WebDAV for? when I use cadaver and connect to my zope zope through

Re: [Zope] Beginners Confusion

2005-12-06 Thread Chris Withers
Russell Winter wrote: If you have the time, could I bug you for another question directly, please. Ask the list, always ask the list ;-) I have my main Zope instance, each primary team is going to have their own Zope Instance with Plone in their own Products directory. You could look at

Re: [Zope] FOLLOWUP: 120MB file import failures

2005-12-06 Thread Chris Withers
Michael Dexter wrote: 1. Should TMPDIR work? Yes. 2. Where should I declare it when using rc scripts? I'd probably put in the bin/runzope in your Zope instance. 3. Any chance zope.conf can use it? no, unless I'm misunderstanding you... cheers, Chris -- Simplistix - Content

Re: [Zope-DB] Z SQL equivelant of MySQL's SQL_CALC_FOUND_ROWS?

2005-12-06 Thread Chris Withers
Charlie Clark wrote: I wonder how the two methods compare efficiency-wise? Yes, well, we're talking about MySQL specifically ;-) Well, with reference to Zope we shouldn't be... Huh? the original poster was talking about MySQL, why should he care about any other rdb? Not so. Think of

[Zope-dev] zLOG deprecation?

2005-12-05 Thread Chris Withers
Hi All, Is zLOG deprecated? If not, it should be... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope-Dev maillist - Zope-Dev@zope.org

Re: [Zope-dev] Logging of ConflictError

2005-12-05 Thread Chris Withers
Dennis Allison wrote: Dieter's point about not includeing the traceback makes sense if all it does is report on the reporting code. Yeah, the traceback just shows where the ConflictError was raised, not what caused it, and theyr'e always in very different places... Wlorent, do you envision

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

2005-12-05 Thread Chris Withers
Jean-Marc Orliaguet wrote: In my case it's mostly filesystem-based resources (css files, or images) accessed in read mode (zope-2.8.4). But the information no matter where it comes from has very little value compared to other messages in the log file, because these are completely predictable.

[Zope-dev] Re: zLOG deprecation?

2005-12-05 Thread Chris Withers
Philipp von Weitershausen wrote: If not, it should be... +10 Yeah, me too! Hence why I was asking ;-) That means we could deprecate it even in Zope 2.9, using zLOG has already been discouraged in Zope 2.8. Cool, Andreas, can you make it start emitting deprecation warnings? (if you do,

Re: [Zope] Beginners Confusion

2005-12-05 Thread Chris Withers
Hi Russell, Russell Winter wrote: Thanks for the prompt response, the reason behind keeping the users separate is that each team wants to feel that they have some control over their destiny's and we are happy to pander to this thought, they also each have a completely different set of visitors

Re: [Zope] Python Classes and Zope.

2005-12-05 Thread Chris Withers
Paul Winkler wrote: 1) create a derived or wrapper class that inherits from Acquisition.Implicit or Acquisition.Explicit. This can either inherit from your existing class, or wrap it, as you prefer. You don't actually have to do this. 2) in the wrapper class, use ClassSecurityInfo() to

Re: [Zope] checking for elements in a list

2005-12-05 Thread Chris Withers
Christopher Rivard wrote: http://groups.yahoo.com/group/zope/message/150345 I'm working offline, so can't see what you're refering to. 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 in list_map_dir_id and 21 not in

Re: [Zope] checking for elements in a list

2005-12-05 Thread Chris Withers
J Cameron Cooper wrote: Just make sure that the elements of the list you're getting are what you think they are. If you ask about the integer 17 and the list actually has a string 17 they won't match. You can either adjust what you test or use something like the 'int' function to cast. Also

Re: [Zope] killing off individual Zope session

2005-12-05 Thread Chris Withers
Dennis Allison wrote: We just had an example of a run away process with one of our authenticated users. What do you mean by this? If it's something to do with a relational database, you might be able to do something there... I would have liked to kill off the user's processing while

Re: [Zope] zdsock

2005-12-05 Thread Chris Withers
John Poltorak wrote: Because 'zdsock' is not an acceptable name. I am running on OS/2 and the path name must start with '\\socket\\'. Oooo, ow, that's gonna hurt... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

Re: [Zope] add multiple images to zope folder

2005-12-05 Thread Chris Withers
I'd use WebDAV. If you want security, tunnel the WebDAV port over ssh. cheers, Chris Chris Purves wrote: Hello, Is there a way to add multiple images to a zope folder instead of adding one at a time? -- Take care, eh. Chris

Re: [Zope] Python Classes and Zope.

2005-12-05 Thread Chris Withers
Chris McDonough wrote: Not really, and that's why Zope 3 has avoided through the web code so far. I hope this avoidance continues at least in the core, whatever that is, but I see rumblings every so often about why this is a can't-live-without thing (with which I strongly disagree).

Re: [Zope] Re: why will FastCGI not be supported in the Future.

2005-12-05 Thread Chris Withers
Andrew Milton wrote: If there's noone around who can maintain it, then just say that. Don't say there's 'a better way', because I can guarantee you the people using FCGI are using it for a reason, I haven't seen anyone come up with real justification for using FCGI... I can imagine a

Re: [Zope] Re: Zope Message Board

2005-12-05 Thread Chris Withers
Squishdot's still there, it's just so stable that it hasn't needed fixing for ages now ;-) Michael Haubenwallner wrote: John Poltorak wrote: What Message Board product is recommended for use with Zope? I think zForum at http://www.zforum.org is the only one alive. Michael --

Re: [Zope-DB] Z SQL equivelant of MySQL's SQL_CALC_FOUND_ROWS?

2005-12-05 Thread Chris Withers
Charlie Clark wrote: SELECT count(attribute) FROM relatiin WHERE condition Ah, okay, now I gotcha... only returns 1 result so it's independent of LIMIT and result sets. I wonder how the two methods compare efficiency-wise? Yes, well, we're talking about MySQL specifically ;-) Maybe

Re: [Zope-dev] Re: Logging of ConflictError

2005-12-03 Thread Chris Withers
Sidnei da Silva wrote: On Dec 2, 2005, at 3:51 PM, Chris Withers wrote: Sidnei da Silva wrote: I was looking at the same issue yesterday, and it's really a trivial change. Need to add a 'multisection' to zopeschema.xml that allows multiple 'logger' type entries. Then you can just do

[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/Transience/Transience.py remove unused import.

2005-12-02 Thread Chris Withers
Log message for revision 40465: remove unused import. Changed: U Zope/trunk/lib/python/Products/Transience/Transience.py -=- Modified: Zope/trunk/lib/python/Products/Transience/Transience.py === ---

[Zope-Checkins] SVN: Zope/trunk/lib/python/OFS/SimpleItem.py - change to use python logging module

2005-12-02 Thread Chris Withers
Log message for revision 40468: - change to use python logging module - log at error when standard_error_message can't be rendered - give more useful info about errors rendering standard_error_message to the browser. Changed: U Zope/trunk/lib/python/OFS/SimpleItem.py -=- Modified:

[Zope-Checkins] SVN: Zope/trunk/lib/python/Z further changes to ConflictError logging:

2005-12-02 Thread Chris Withers
Log message for revision 40472: further changes to ConflictError logging: - all conflict errors are counted and logged at info, as they were before Florent's change - logging makes it clear where the conflict has been resolved and where it hasn't - errors seen by the user are rendered

[Zope-Checkins] SVN: Zope/trunk/lib/python/Zope2/App/startup.py *sigh* failed to correctly merge my own patch.

2005-12-02 Thread Chris Withers
Log message for revision 40475: *sigh* failed to correctly merge my own patch. Changed: U Zope/trunk/lib/python/Zope2/App/startup.py -=- Modified: Zope/trunk/lib/python/Zope2/App/startup.py === ---

[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/lib/python/ Merge error reporting changes from trunk:

2005-12-02 Thread Chris Withers
Log message for revision 40476: Merge error reporting changes from trunk: - remove unused import. - change SimpleItem.py to use python logging module - log at error when standard_error_message can't be rendered - give more useful info about errors rendering standard_error_message to

[Zope-Checkins] SVN: Zope/branches/2.9/lib/python/ - remove unused import.

2005-12-02 Thread Chris Withers
Log message for revision 40478: - remove unused import. - change SimpleItem.py to use python logging module - log at error when standard_error_message can't be rendered - give more useful info about errors rendering standard_error_message to the browser. - all conflict errors

[Zope-Checkins] SVN: Zope/branches/2.9/doc/CHANGES.txt Note changes to ConflictError logging.

2005-12-02 Thread Chris Withers
Log message for revision 40479: Note changes to ConflictError logging. Changed: U Zope/branches/2.9/doc/CHANGES.txt -=- Modified: Zope/branches/2.9/doc/CHANGES.txt === --- Zope/branches/2.9/doc/CHANGES.txt 2005-12-02

[Zope-Checkins] SVN: Zope/trunk/lib/python/Products/PageTemplates/PageTemplate.py continue whack-a-mole'ing useless pagetemplate errors.

2005-12-02 Thread Chris Withers
Log message for revision 40480: continue whack-a-mole'ing useless pagetemplate errors. Changed: U Zope/trunk/lib/python/Products/PageTemplates/PageTemplate.py -=- Modified: Zope/trunk/lib/python/Products/PageTemplates/PageTemplate.py

[Zope-Checkins] SVN: Zope/branches/2.9/lib/python/Products/PageTemplates/PageTemplate.py continue whack-a-mole'ing useless pagetemplate errors.

2005-12-02 Thread Chris Withers
Log message for revision 40481: continue whack-a-mole'ing useless pagetemplate errors. Changed: U Zope/branches/2.9/lib/python/Products/PageTemplates/PageTemplate.py -=- Modified: Zope/branches/2.9/lib/python/Products/PageTemplates/PageTemplate.py

[Zope-Checkins] SVN: Zope/branches/Zope-2_8-branch/lib/python/Products/PageTemplates/PageTemplate.py continue whack-a-mole'ing useless pagetemplate errors.

2005-12-02 Thread Chris Withers
Log message for revision 40482: continue whack-a-mole'ing useless pagetemplate errors. Changed: U Zope/branches/Zope-2_8-branch/lib/python/Products/PageTemplates/PageTemplate.py -=- Modified: Zope/branches/Zope-2_8-branch/lib/python/Products/PageTemplates/PageTemplate.py

Re: [Zope-dev] Logging of ConflictError

2005-12-02 Thread Chris Withers
Hi Florent, Damn, I was working on this at the same time :-S Florent Guillaume wrote: I've improved the logging of ConflictError in Zope 2.9 and trunk. http://svn.zope.org/?rev=40454view=rev Now you'll get two things: - logs at level BLATHER for each conflict, but it may be retried - log at

Re: [Zope-dev] Logging of ConflictError

2005-12-02 Thread Chris Withers
Florent Guillaume wrote: It doesn't really matter, zLOG has a compatibility layer that ends up doing the same thing. python's logging module has a cleaner, nicer syntax. Please no. Don't put anything at INFO. A conflict error is either something normal that should be at level BLATHER or

Re: [Zope-dev] Logging of ConflictError

2005-12-02 Thread Chris Withers
Florent Guillaume wrote: Please no. Don't put anything at INFO. A conflict error is either something normal that should be at level BLATHER or below, or an ERROR that a sysadmin wants to see logged as such. Incidentally, your changes result in most users seeing two errors in their logs

Re: [Zope-dev] buildbot failure in Zope trunk 2.4 Linux zc-buildbot

2005-12-02 Thread Chris Withers
What test failed here? Chris [EMAIL PROTECTED] wrote: The Buildbot has detected a failed build of Zope trunk 2.4 Linux zc-buildbot. Buildbot URL: http://buildbot.zope.org/ Build Reason: changes Build Source Stamp: 1919 Blamelist: chrisw,ctheune BUILD FAILED: failed test sincerely, -The

Re: [Zope-dev] buildbot failure in Zope trunk 2.4 Linux zc-buildbot

2005-12-02 Thread Chris Withers
[EMAIL PROTECTED] wrote: The Buildbot has detected a failed build of Zope trunk 2.4 Linux zc-buildbot. Buildbot URL: http://buildbot.zope.org/ Build Reason: changes Build Source Stamp: 1921 Blamelist: chrisw BUILD FAILED: failed test OK, I think I got it, I guess we'll see... Chris --

Re: [Zope-dev] buildbot failure in Zope trunk 2.4 Linux zc-buildbot

2005-12-02 Thread Chris Withers
Gary Poster wrote: This url: Buildbot URL: http://buildbot.zope.org/ Yup, got this now, so when you see buildbot failures, go here :-) cheers, Chris - who's finally starting ot understand what buildbot does! -- Simplistix - Content Management, Zope Python Consulting -

Re: [Zope-dev] Logging of ConflictError

2005-12-02 Thread Chris Withers
Paul Winkler wrote: I'm +1 on having failed retries show up at level ERROR. With Florent's changes you get 'em twice, with mine, you get 'em once ;-) I'm neutral on having successful retries show up at level INFO, BLATHER, or in some other log handler entirely. Conflict errors are a pretty

Re: [Zope-dev] Re: Logging of ConflictError

2005-12-02 Thread Chris Withers
Sidnei da Silva wrote: I was looking at the same issue yesterday, and it's really a trivial change. Need to add a 'multisection' to zopeschema.xml that allows multiple 'logger' type entries. Then you can just do something like: Yes, that bit is simple. But in 2.8.something and above, the

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

2005-12-02 Thread Chris Withers
Florent Guillaume wrote: 1. Do you want these ConflictErrors retried logs to be at level: - INFO 2. In addition, please specify if you feel those retried ConflictErrors should have their full traceback logged? - No, without traceback The actual traceback for any conflict error is pretty

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

2005-12-02 Thread Chris Withers
Jean-Marc Orliaguet wrote: BLATHER (I have never be able to get any meaningful information from them, except that zope tries several times) That's because they excluded any useful information before. The implementation I've put in tells you, at info level, what error actually occurred, what

Re: [Zope] Python Classes and Zope.

2005-12-02 Thread Chris Withers
Dario Lopez-Kästen wrote: Most, if not all examples, out there assume that the external packages/modules/classes can freely be converted to Zope-classes. No so, all you have to do is provide security assertions for them. I usually do this is a dummy product's __init__.py. See the examples

Re: [Zope] Python Classes and Zope.

2005-12-02 Thread Chris Withers
Fernando Lujan wrote: For instance, if I create the class: class MyClass: A simple example class i = 12345 def f(self): return 'hello world' Can I invoke the following code inside a Python Script? x = MyClass() x.f() Yes, but you shouldn't want to ;-) I'm using zope

Re: [Zope] Python Classes and Zope.

2005-12-02 Thread Chris Withers
Willi Langenberger wrote: You could add __allow_access_to_unprotected_subobjects__ = 1 You _could_, but that's a very old, deprecated interface. And, with the work Jim's talking about doing, it might actually stop working. nowadays you should do: security = ClassSecurityInfo()

Re: [Zope] Beginners Confusion

2005-12-02 Thread Chris Withers
Russell Winter wrote: I would like to have each user having, either, their own Zope Server binaries (including CMF Plone) in their home directories. Why? What's the use case here? I'd install the binaries for each version of Zope once. Plone, much as it pretends not to be, is just an

Re: [Zope] How to Update files that are already uploaded

2005-12-02 Thread Chris Withers
Jonathan wrote: File objects have a method called 'update_data' which may be of use. I'd suggest manage_upload instead... Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope maillist

Re: [Zope] exUserFolder will not redirect to login page

2005-12-02 Thread Chris Withers
Gaute Amundsen wrote: As far as I can see that must mean that either something is going wrong in exUserFolder, or much more likely, that we are feeding it something bogus, or have previously modified it in some non-obvious way. My problem is that I have little idea what it is supposed to look

Re: [Zope-DB] Z SQL equivelant of MySQL's SQL_CALC_FOUND_ROWS?

2005-12-02 Thread Chris Withers
Charlie Clark wrote: That doesn't work if you use offsets and limits to only return part of a result set... SELECT count(attribute) FROM relatiin WHERE condition Ah, okay, now I gotcha... only returns 1 result so it's independent of LIMIT and result sets. I wonder how the two methods

[Zope-dev] Re: [CMF-checkins] SVN: CMF/trunk/ CMFSetup is dead. Long live GenericSetup!

2005-12-01 Thread Chris Withers
I'm probably missing something, hence my asking. If GenericSetup is generic, why is it in the CMF repository? Sure, bundle it with CMF, like BTreeFolder2 used to be, but why not also release it seperately and have it in its own repo? cheers, Chris Yvo Schubbe wrote: Log message for

Re: [Zope-dev] DateTime iso8601 bad handling of dates

2005-12-01 Thread Chris Withers
Evan Simpson wrote: It was asserted, last time this came up, that this is compliant with the ISO8601 spec, but my own research shows this to be false. If someone can point me to a truly authoritative source that supports the current behavior, I would appreciate it, but that would not change the

Re: [Zope-dev] Folderish or SimpleItem object types for structural content

2005-12-01 Thread Chris Withers
Martijn Jacobs wrote: catalog. The estimation about the amount of objects, with only the leave nodes as 'SimpleItem' objects will be 30.000. 30,000 is nothing. The production catalog on one of my projects has 220,000 objects in it, and I still wouldn't class that as huge. cheers, Chris

Re: [Zope-dev] Re: DateTime mess

2005-12-01 Thread Chris Withers
Andreas Jung wrote: For people it might be more comfortable to have a on-the-fly migration somehow under the hood...however this leads to ugly migration code in the sources (Zope is full of such scary code). Personally I prefer a dedicated migration step. + lotz Chris -- Simplistix -

Re: [Zope-dev] zope.conf extensibility

2005-12-01 Thread Chris Withers
Fred Drake wrote: I don't know that there's any real documentation for this. Feel free to add some. In this case, I think zopeschema.xml should be documentation enough, especially as any product author wanting to use this feature is going to have to write a component.xml at least ;-)

Re: [Zope] Displaying pdf

2005-12-01 Thread Chris Withers
Peter Bengtsson wrote: pdffile = getattr(context, 'some.pdf') return pdffile I think you'd have to set a content-disposition header if you did that... cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk

Re: [Zope] Creating a DTM Document in a variable folder.

2005-12-01 Thread Chris Withers
Jonathan Cyr wrote: You might want to use index_html rather than index.html in this example. The dot means other things in Python, and index.html is a carryover from filesystem webservers. My impression is that the acquisition mechanism doesn't like ids with a dot, in some circumstances.

Re: [Zope] Creating a DTM Document in a variable folder.

2005-12-01 Thread Chris Withers
J Cameron Cooper wrote: self.plone['try-me'] or getattr (which doesn't use acquisition.) Eh? What on earth gave you that idea? Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope

Re: [Zope] Displaying pdf

2005-12-01 Thread Chris Withers
Peter Bengtsson wrote: I think you'd have to set a content-disposition header if you did that... Surely the File object that this 'some.pdf' is has all of this taken care of in its index_html() No, OFS.Image.File sets no content-disposition header. cheers, Chris -- Simplistix - Content

Re: [Zope-dev] Re: RFC: Reunite Zope 2 and Zope 3 in the source code repository

2005-11-30 Thread Chris Withers
Martin Aspeli wrote: ... and I'm one of those developers. I care, for the moment, about one thing: Plone. I want Plone to move to use more Zope 3 technology, sure, because it's clearly superior. But we're not going to re-write it from scratch, and neither, I suspect, will most large Z2

<    10   11   12   13   14   15   16   17   18   19   >