Re: [Zope-dev] Vulnerability: attacking can get file list and directory

2001-09-24 Thread Leonardo Rochael Almeida
Shane Hathaway wrote: [...] PDV just yields information you might give out anyway. But maybe we could deal with it anyway by writing an error.log instead of sending the traceback to the browser. What do you think? I think it's fine, but only if specified on the z2.py cmdline or other

[Zope-dev] fmt=structured-text doesn't work with accented chars

2001-09-12 Thread Leonardo Rochael Almeida
Hi, I tried using structured text for some documentation I wrote in portuguese, but the accented characters like é, á, ã, or ç break the parsing of markups like *emphasis*, 'code' or _underline_, and in portuguese we get a bunch of those with every sentence, you know... :-) The result is the

[Zope-dev] fmt=structured-text doesn't work with accented chars

2001-09-12 Thread Leonardo Rochael Almeida
Hi, I tried using structured text for some documentation I wrote in portuguese, but the accented characters like é, á, ã, or ç break the parsing of markups like *emphasis*, 'code' or _underline_, and in portuguese we get a bunch of those with every sentence, you know... :-) The result is the

Re: [Zope-dev] fmt=structured-text doesn't work with accented chars

2001-09-12 Thread Leonardo Rochael Almeida
how to correctly set the locale on Windows, if anyone knows... :-) On Wed, Sep 12, 2001 at 06:49:21PM -0300, Leonardo Rochael Almeida wrote: Hi, I tried using structured text for some documentation I wrote in portuguese, but the accented characters like é, á, ã, or ç break the parsing

Re: [Zope-dev] fmt=structured-text doesn't work with accented chars

2001-09-12 Thread Leonardo Rochael Almeida
locale -locale.setlocale(locale.LC_ALL,) +#locale.setlocale(locale.LC_ALL,) except: pass On Wed, Sep 12, 2001 at 08:36:24PM -0300, Leonardo Rochael Almeida wrote: Got it! StructuredText is setting locale back to C, during initialization, without setting it back to whatever

Re: [Zope-dev] fmt=structured-text doesn't work with accented chars

2001-09-12 Thread Leonardo Rochael Almeida
comment there states, there is no use in just importing locale in this case. 'strings.lowercase' works just as well. Cheers, Leo - Original Message - From: Leonardo Rochael Almeida [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 12, 2001 18:36 Subject: Re: [Zope

Re: [Zope-dev] problem with catalog awareness

2001-09-13 Thread Leonardo Rochael Almeida
If you are using ZClasses with default constructors, this is most likely due to a Product factory method updating a ZClass instance *after* adding it to a folder. CatalogAware will index the instance in the ZCatalog before it gets its fields updated in the constructor, which means that what you

Re: [Zope-dev] [Fwd: Re: [Zope] Python 2.1 for debian ?]

2001-10-03 Thread Leonardo Rochael Almeida
Matthew T. Kromer wrote: The next binary release will go out the door with Python headers installed. We've already set it up for the packager to do that. Does that mean that using the binary Zope bundled python to call setup.py or using the binary Zope bundled Makefile.pre.in will

Re: [Zope-dev] compiling Zope 2.4.1 on Mac OS 10.1

2001-10-03 Thread Leonardo Rochael Almeida
Mitchell L Model wrote: [...] With the updates for OS 10.1 in Python 2.2a4, all I had to do to make both Python and Zope was: cd Python2.2a4 configure --with-suffix=.exe make sudo make install cd Zope python wo_pcgi.py I don't know if it's just me,

Re: [Zope-dev] Re: [Bug+Patch] Microseconds in DateTime

2001-10-24 Thread Leonardo Rochael Almeida
Nicola Larosa wrote: [Sent to main list, ignored. Retrying here...] OK, so nobody cares. Anyway, the BugCollector is down, what is a poor guy to do to get the fix in? Of course, if it is a very stupid thing to do, I would really like to know. :^) Just to voice an opinion, I

Re: [Zope-dev] startup security status (say that five times fast... well, ok, it wasn't so tough after all)

2001-10-24 Thread Leonardo Rochael Almeida
Behrens Matt - Grand Rapids wrote: [snipped enlightening description of the zope user writable z2.pid problem] Solutions: 1. Have the stop script check ownership of the pid file to make sure it's still root's baby. This solution seems easiest, but something about it doesn't seem

Re: [Zope-dev] gvibDA problems

2001-10-25 Thread Leonardo Rochael Almeida
This is a really long shot and I have absolutely no knowledge of Interbase but, are you sure it is 'ISO8859_1'? shouldn't it be 'ISO8859-1'? Nuno Maltez wrote: Hi, Anyone here using Zope and interbase to access an ISO8859_1 database? I'm using RedHat 7.1, Zope 2.3.3 and

Re: [Zope-dev] Re: [Bug+Patch] Microseconds in DateTime

2001-10-25 Thread Leonardo Rochael Almeida
R. David Murray wrote: On Wed, 24 Oct 2001, Nicola Larosa wrote: OK, so nobody cares. Anyway, the BugCollector is down, what is a poor guy to do to get the fix in? Of course, if it is a very stupid thing to do, I would really like to know. :^) Well, I like the idea personally, but let

Re: [Zope-dev] ZPT Plain Text

2001-12-05 Thread Leonardo Rochael Almeida
I was about to mention TERRY, but Ulrich beat me to it. One nice thing about TERRY is that it allows you to change the markup simbols. For instance it is entirely possible to use: ?tal:content=here/fgcolor black? (which, by the way, is a semi-standard way to do extentions to html and looks like

Re: [Zope-dev] More signal 11 restarts....

2001-12-05 Thread Leonardo Rochael Almeida
Hi Harald, On Wed, 2001-12-05 at 14:32, Harald Koschinski wrote: Daniel Duclos wrote: I have a zope that is dumping signal 11 every 40 minutes or so. I have tried recompile python 2.1.1 with-threads without-pymalloc, recompile Zope with it, recompile ZPAtterns, recompile and instal

Re: [Zope-dev] More signal 11 restarts....

2001-12-05 Thread Leonardo Rochael Almeida
Sorry, I made an incorrect statement. see below. On Wed, 2001-12-05 at 17:26, Leonardo Rochael Almeida wrote: Hi Harald, On Wed, 2001-12-05 at 14:32, Harald Koschinski wrote: Daniel Duclos wrote: I have a zope that is dumping signal 11 every 40 minutes or so. I have tried

hooking up gdb (was Re: [Zope-dev] More signal 11 restarts....)

2001-12-05 Thread Leonardo Rochael Almeida
Well, one of the things I was going to ask next was for some help doing postmortem. We aren't getting any core files, even after setting ulimit correctly (although we could be setting it uncorrectly. I'll look into that further). Anyway, someone else in this list said that core dumps for

[Zope-dev] maybe we could script it (Re: hooking up gdb)

2001-12-05 Thread Leonardo Rochael Almeida
On Wed, 2001-12-05 at 18:41, Matthew T. Kromer wrote: Leonardo Rochael Almeida wrote: Well largely, ALL I want is the backtrace -- and I'm wondering if I could cobble something together that could get it. The problem is it needs to look at the symbol table, and I dont know how to get

Re: [Zope-dev] More signal 11 restarts....

2001-12-06 Thread Leonardo Rochael Almeida
On Thu, 2001-12-06 at 08:43, Gilles Lavaux wrote: Hello Which config/tool make that your zope restart automatically??? Zope itself. Here is a snipet of Z2.py help text for your amusement :-) -Z path Unix only! This option is ignored on windows. If this option is specified, a

[Zope-dev] browser closing connection

2001-12-07 Thread Leonardo Rochael Almeida
Hi, all On Fri, 2001-12-07 at 11:19, Matthew T. Kromer wrote: Also, for the record we usually get a bunch of these quite often: 2001-11-04T09:04:33 ERROR(200) ZServer uncaptured python exception, closing channel zhttp_channel connected XXX.XXX.XXX.XXX:2181 at fb4edc channel#: 2286

Re: EINTR ... was Re: [Zope-dev] browser closing connection

2001-12-11 Thread Leonardo Rochael Almeida
So, which is the official way of fixing Zope 2.4.3? wait for a hotfix? apply Matthew's patch? steal asyncore from Python 2.2? On Tue, 2001-12-11 at 12:52, Jeremy Hylton wrote: MTK == Matthew T Kromer [EMAIL PROTECTED] writes: MTK For what its worth, I tracked this down in the sources and

no more SIG11 --without-pymallog --without-cycle-gc (was Re:[Zope-dev] Bravery Zope 2.5 Testers)

2001-12-14 Thread Leonardo Rochael Almeida
Hi folks, I also tried the CVS ExtensionClass.h but it didn't help. We kept getting the SIG11's. However, after reading all comments on this problem report on sourceforge: http://sourceforge.net/tracker/?func=detailatid=105470aid=471942group_id=5470 pointed out in this list by Joseph Wayne

[Zope-dev] creating our own binary packages

2001-12-16 Thread Leonardo Rochael Almeida
Hi, How are the binary Zope packages for Linux (those available for download at Zope.org) created? Is there a script available somewhere? Due to recent discussions on this list, I'm finding it increasingly desirable to be able to build my own zope binary packages giving my own set of options to

[Zope-dev] disabling gc does not necessarily hide memory corruption

2001-12-17 Thread Leonardo Rochael Almeida
On Mon, 2001-12-17 at 20:57, Jeremy Hylton wrote: MTK == Matthew T Kromer [EMAIL PROTECTED] writes: MTK A side effect of shutting off the garbage collector is that you MTK can have some storage leaks. We're working on being able to MTK re-enable the garbage collector so that you

[Zope-dev] Actually, we use a lot of Scripts (Python)

2001-12-18 Thread Leonardo Rochael Almeida
On Tue, 2001-12-18 at 14:25, Matthew T. Kromer wrote: [...] Keep in mind that the leaks you may experience are directly related to what code you run, and whether or not they introduce cycles. Some of the restricted python compiler code did/does create cycles under the assumption that

Re: [Zope-dev] disabling gc does not necessarily hide memorycorruption

2001-12-19 Thread Leonardo Rochael Almeida
On Wed, 2001-12-19 at 13:34, Chris McDonough wrote: It would be good if someone who is experiencing random crashes could confirm that the the new compiler package fixes their problem. I might risk losing a few more points with my sysadmin to test it (Hi daniduc :-) if there was an easily

Re: [Zope-dev] disabling gc does not necessarily hide memorycorruption

2001-12-19 Thread Leonardo Rochael Almeida
On Wed, 2001-12-19 at 18:02, Martijn Pieters wrote: [...] You can download files from CVS as a tarball. Just go to http://cvs.zope.org/Zope/lib/python/RestrictedPython and use the link at the bottom. Should I apply the ExtensionClass.h fix from CVS mentioned here in the list too? --

Re: [Zope-dev] disabling gc does not necessarily hide memorycorruption

2001-12-19 Thread Leonardo Rochael Almeida
Oh, and which branch should I get the tarball from? On Wed, 2001-12-19 at 18:20, Leonardo Rochael Almeida wrote: On Wed, 2001-12-19 at 18:02, Martijn Pieters wrote: [...] You can download files from CVS as a tarball. Just go to http://cvs.zope.org/Zope/lib/python/RestrictedPython

Re: [Zope-dev] Refresh Product with exUserFolder

2002-01-12 Thread Leonardo Rochael Almeida
Hi Gunther, I think this discussion might be better off at the xuf developers list https://lists.sourceforge.net/lists/listinfo/exuserfolder-devel Cheers, Leo On Tue, 2002-01-08 at 19:30, Gunther Klessinger wrote: Hi, for adding a new auth source to the XUF and customize it a bit, it

Re: no more SIG11 --without-pymallog --without-cycle-gc (wasRe: [Zope-dev] Bravery Zope 2.5 Testers)

2002-01-16 Thread Leonardo Rochael Almeida
On a related note, when is Zope 2.4.4 comming out? On Wed, 2002-01-16 at 13:34, Matthew T. Kromer wrote: Harald Koschinski wrote: same for me, no more crashes - but zope needs very much memory (logo :-(() I will try know python 2.1.2. OK -- our Zope 2.5.0 betas 3 and 4 have a

[Zope-dev] large files and --pymalloc on the new release? (was Re: no moreSIG11 ...)

2002-01-16 Thread Leonardo Rochael Almeida
Will the binary Linux release include large file support? In other words, can I have a 2G Data.fs? Also, what about the --pymalloc? Is the binary Zope Python going to be compiled with it? should I still fear it? We almost lost a big client and almost got a lawsuit because we were bitten by

[Zope-dev] Zope 2.4.4, when?

2002-01-21 Thread Leonardo Rochael Almeida
Guys, please, We really need 2.4.4 and our client won't accept a CVS version. 2.5 betas won't do it either. What is holding 2.4.4 back? Is there anything you need help with? testing? bugfix? Cheers, Leo -- Ideas don't stay in some minds very long because they don't like solitary confinement.

Re: [Zope-dev] REQUEST.AUTHENTICATED_USER question

2002-01-23 Thread Leonardo Rochael Almeida
Hi Vio, By the contents of your message, you seem to be a little off track w.r.t. the way authentication works between the browser and Zope. By now you seem to have discovered that the browser sends the user credentials whenever it fetches a page. If you aren't using a custom user folder that

Re: [Zope-dev] REQUEST.AUTHENTICATED_USER question

2002-01-23 Thread Leonardo Rochael Almeida
Hi vio, Pardon our insistence in helping you out, but you asked to be told if something in your description smelt rotten and, besides the fact that yes, you are reinventing the wheel (and reinventing it square, by the way :-), there isn't a single thing in the scenario you described below that

Re: [Zope-dev] [BUG] Python 2.1.2 Zope 2.4.1

2002-01-27 Thread Leonardo Rochael Almeida
What you just 'fixed' is an assertion against a memory corruption bug in all Zope versions between 2.4.0 and 2.4.3, inclusive. Zope version 2.4.4 (which hasn't been released, Hey ZC! wake up! stabilizing 2.4 is more important than releasing 2.5 in my book! Now that you've done the latter can you

Re: [Zope-dev] Python 2.1.2 causes Error code 6?

2002-01-28 Thread Leonardo Rochael Almeida
On Mon, 2002-01-28 at 12:29, stefan holek wrote: At 28.01.2002 13:55 +, Chris Withers wrote: 1. What does Error Code 6 mean? #define ENXIO6 /* No such device or address */ Actually, it means the Zope process exited because of a signal, and the signal was 6, meaning

Re: [Zope-dev] Zope on Linux and Database as MS-SQL Server on WinNT

2002-01-29 Thread Leonardo Rochael Almeida
On Tue, 2002-01-29 at 17:48, Peeyush Garg wrote: Hi, What's the current best solution to utilize the combination of Zope on Linux and Database as MS-SQL Server running on WinNT. I don't find much information searching the Zope web site. Can somebody point me to some link? See this howto:

Re: [Zope-dev] Re: Python Base Classes, ZObjectManager, andSubobjects

2002-01-29 Thread Leonardo Rochael Almeida
On Tue, 2002-01-29 at 17:28, Ross Patterson wrote: I figured it out and I'm posting this so that the next hapless victim might stumble upon this in a google search where I did not. Long, with suggestions that have probably already been made for the improvements and clarification of ZClasses.

Re: [Zope-dev] logging crash

2002-01-30 Thread Leonardo Rochael Almeida
On Wed, 2002-01-30 at 03:43, Terry Kerr wrote: [...] 2002-01-30T02:02:02 ERROR(200) ZServer uncaptured python exception, closing channel zhttp_channel connected 24.237.103.242:4496 at 8a2b88c channel#: 5927 requests: (exceptions.AttributeError:'None' object has no attribute 'split'

[Zope-dev] segfaults persist in 2.4.4b1

2002-01-31 Thread Leonardo Rochael Almeida
Hi, I previously had a segfaulting Zope 2.4.3 installation, whose segfaults I traded for a leak when I disabled the cycle-gc. I just installed Zope 2.4.4b1 (binary) hoping it'd fix the segfaults so that Zope could go back to not leaking, but they persist. Disabling gc in this new version stops

Re: [Zope-dev] segfaults persist in 2.4.4b1

2002-01-31 Thread Leonardo Rochael Almeida
On Thu, 2002-01-31 at 15:11, Matthew T. Kromer wrote: Well, I think I mentioned this before, but you do NOT want --with-pymalloc on in your Python build. I'm just about 100% positive that ExtensionClass derived objects will not play well with pymalloc. Indeed you have, I just mentioned

Re: [Zope-dev] ZClasses and Python

2002-02-07 Thread Leonardo Rochael Almeida
On Thu, 2002-02-07 at 10:36, Andre Schubert wrote: P.S.: I hope there is someone understanding this :) I think I do, although I think it'd be clearer see some code than parse overused foo and bar words from pure english :-) i have a little question on ZCLasses and Python. Lets Say i have

[Zope-dev] freezing your Zope for fun and profit thru the monitor port

2002-02-07 Thread Leonardo Rochael Almeida
Hi, Well, using the monitor port to do nasty things to Zope isn't really rocket science, but here is an unexpected result: rockman:/opt/zope/243-xuf# python2.1 ZServer/medusa/monitor_client.py localhost 8099 [... some messages and copyright notices later ...] Welcome to secure_monitor_channel

Re: [Zope-dev] 2.5.0 locale problems

2002-02-08 Thread Leonardo Rochael Almeida
Hi, You shouldn't be messing with locale in a Zope product. In a threaded Python app, setting locale affects all threads, and there are a number of parts in Zope which depend on correct locale information. You should respect whatever locale was set in Zope initialization (by environment vars or

Re: [Zope-dev] Zope 2.4.4b1 dumps core

2002-02-13 Thread Leonardo Rochael Almeida
Hi, As I mentioned in this list before, I'm also getting the segfaults in a Zope that depends heavily on PythonScripts. The only C compiled Product that is used is ZMySQLDA with the last versions of everything I could find, and I doesn't seem to be the cause of the problem, since disabling gc

[Zope-dev] bug in VirtualHostMonster in 2.5.0

2002-02-20 Thread Leonardo Rochael Almeida
Hi guys, I bring to your attention the bug 235:http://collector.zope.org/Zope/235 in the Zope collector, which I just posted. Apparently VHM is inserting exactly one spurious '/' in urls when the _vh_folder syntax is used. The problem seems to be in the VirtualHostMonster.__call__ method at

[Zope-dev] Re: bug in VirtualHostMonster in 2.5.0

2002-02-20 Thread Leonardo Rochael Almeida
is and seems to fix the VHM problem, but I don't know what other side-effects it has. The 'utilities/testrunner.py -a' seems to run ok. On Wed, 2002-02-20 at 16:29, Leonardo Rochael Almeida wrote: Hi guys, I bring to your attention the bug 235:http://collector.zope.org/Zope/235 in the Zope collector

Re: [Zope-dev] Re: bug in VirtualHostMonster in 2.5.0

2002-02-21 Thread Leonardo Rochael Almeida
On Thu, 2002-02-21 at 13:38, Chris Withers wrote: Collector it then :-) As I mentioned in my first e-mail, it's 'collected' already :-), with proposed fix and everything: http://collector.zope.org/Zope/235 -- Ideas don't stay in some minds very long because they don't like solitary

Re: [Zope-dev] Re: bug in VirtualHostMonster in 2.5.0

2002-02-22 Thread Leonardo Rochael Almeida
The handling of string and non-string arguments in HTTPRequest.setVirtualRoot() is indeed inconsistent, but it's obviously possible to fix the double-root-slash problem by changing the way VirtualHostMonster calls that method. Actually, the difference in VirtualHostMonster.__call__ between both

Re: [Zope-dev] [ZEO] protocol problem

2002-02-25 Thread Leonardo Rochael Almeida
On Mon, 2002-02-25 at 05:44, Dieter Maurer wrote: [...] We use Zope 2.5 together with ZEO 1.0b5 and there seems to be a problem with the communication between Zope and ZEO. Several times a day, Zope reports that it has been disconnected form storage (a warning), that it tries to

Re: [Zope-dev] [ZEO] protocol problem

2002-02-26 Thread Leonardo Rochael Almeida
On Mon, 2002-02-25 at 17:15, Dieter Maurer wrote: Leonardo Rochael Almeida writes: [...] If this is the case, you might want to increase the timeout on your firewall or find a way to make the ZC talk to the ZS regularly so as to keep the connection alive (it would be ideal

[Zope-dev] still segfaults, this time no ZMySQLDA

2002-02-26 Thread Leonardo Rochael Almeida
Hi, It's me and my instability problems again :-) The system: Zope-2.4.4b1 (binary linux-x86 from zope.org) Python-2.1.2 (see above) Products (excluding Zope defaults and ZClass based ones): LocalFS Pagina0_Base (Hiperlógica product) Pagina1_Base (Hiperlógica product) Renderable exUserFolder

Re: [Zope-dev] still segfaults, this time no ZMySQLDA

2002-02-26 Thread Leonardo Rochael Almeida
On Tue, 2002-02-26 at 20:11, Leonardo Rochael Almeida wrote: [...] The options I think I have left: * Try the new ExtensionClass.h Which one, by the way? the one in HEAD, the one in 2.5 branch or a different one altogether? Does it have any impact in the objects in the ZODB? Can I run a ZEO

Re: [Zope-dev] still segfaults, this time no ZMySQLDA

2002-02-27 Thread Leonardo Rochael Almeida
On Tue, 2002-02-26 at 21:55, Matthew T. Kromer wrote: in lib/python/Products/PythonScripts/PythonScripts.py, try changing Script_magic to be 4, and see if that helps. Nope, time between restart after the change and 1st crash was aprox. 3m15s. FYI, some of this is written up in

Re: [Zope-dev] still segfaults, this time no ZMySQLDA

2002-02-27 Thread Leonardo Rochael Almeida
So, what should I try now? On Wed, 2002-02-27 at 16:18, Matthew T. Kromer wrote: Leonardo Rochael Almeida wrote: On Tue, 2002-02-26 at 21:55, Matthew T. Kromer wrote: in lib/python/Products/PythonScripts/PythonScripts.py, try changing Script_magic to be 4, and see if that helps

Re: [Zope-dev] still segfaults, this time no ZMySQLDA

2002-02-28 Thread Leonardo Rochael Almeida
On Thu, 2002-02-28 at 10:55, Matthew T. Kromer wrote: On Wednesday, February 27, 2002, at 06:49 PM, Leonardo Rochael Almeida wrote: So, what should I try now? Did -t 1 help? If not, do you feel comfortable hooking up gdb and getting a traceback? Funny enough, running with -t 1

Re: [Zope-dev] still segfaults, this time no ZMySQLDA

2002-02-28 Thread Leonardo Rochael Almeida
On Thu, 2002-02-28 at 16:09, Leonardo Rochael Almeida wrote: On Thu, 2002-02-28 at 10:55, Matthew T. Kromer wrote: On Wednesday, February 27, 2002, at 06:49 PM, Leonardo Rochael Almeida wrote: So, what should I try now? Did -t 1 help? If not, do you feel comfortable

Re: [Zope-dev] I'm locked out of managing my CMF folders, becauseit asks me to log in and the password doesn't work.

2002-03-03 Thread Leonardo Rochael Almeida
On Mon, 2002-03-04 at 01:36, Don Hopkins wrote: I am now locked out my CMF site, and I can't figure out how to get back in. [...] I can log into the top level Zope manager, and look at the Zope tree. I just can't manage_edit my CMF site. When I click on a CMF site in the tree on the left, it

Re: [Zope-dev] Re: I'm locked out of managing my CMF folders,because it asks me to log in and the password doesn't work.

2002-03-04 Thread Leonardo Rochael Almeida
it into passing the authorization in its own way? Thanks a lot for the help! There are so many options it's quite overwhelming... -Don - Original Message - From: Leonardo Rochael Almeida [EMAIL PROTECTED] To: Don Hopkins [EMAIL PROTECTED] Cc: Zope Developers [EMAIL PROTECTED] Sent

Re: [Zope-dev] Zope 2.4.4b1 and Python 2.1.2 crash again

2002-03-05 Thread Leonardo Rochael Almeida
On Tue, 2002-03-05 at 20:55, Anthony Baxter wrote: http://www.zope.org/Members/matt/StabilityHOWTO This docco doesn't clearly state that you MUST recompile your pythonscripts when upgrading to 2.4.4+ (when do we see a real 2.4.4, anyway?) I'm not sure about that. PythonScripts that need

[Zope-dev] the segfault saga continues

2002-03-05 Thread Leonardo Rochael Almeida
So now I have installed a brand new MySQL-python-2.9.2a2 explicitly compiled against reentrant mysql libraries (libmysqlclient_r, in Debian's libmysqlclient10-dev package). I also installed ZMySQLDA-2.0.9b1 which compounds MySQL-python reentrancy by serializing all mysql requests with a lock.

Re: TF ZMI, was: RE: [Zope-dev] Zope 2.6 and OrderedFolders

2002-03-07 Thread Leonardo Rochael Almeida
On Thu, 2002-03-07 at 19:39, [EMAIL PROTECTED] wrote: You know, the funny thing is that TF really accomplishes the goals of a ZMI/UI-improvement hack (unclutter a view of a folder to VISUALLY separate the software/content/presentation space) implemented, IMHO, in the wrong place. I would

Re: [Zope-dev] Putting a list of objects into the current namespace(or something)

2002-03-12 Thread Leonardo Rochael Almeida
Look for the PathHandler product on zope.org: http://www.zope.org/Members/NIP/PathHandler or the AccessRule symlink recipe in zopelabs.com: http://www.zopelabs.com/cookbook/1003844578 Also, if you acces an URL that 'walks thru' a PythonScript, say:

[Zope-dev] more on the segfault saga

2002-03-12 Thread Leonardo Rochael Almeida
narrator voice=koshAnd so it continues.../narrator I've finally recompiled all pythonScripts (all scripts and ZCatalog tricks I tried before didn't know how to get the PythonScripts inside the ZClasses. BTW, if anyone is interested, I can send you the scripts I used to recompile all

Re: [Zope-dev] Re: more on the segfault saga

2002-03-13 Thread Leonardo Rochael Almeida
The On Wed, 2002-03-13 at 10:05, Martijn Jacobs wrote: [...] I don't know where to start, because attaching GDB doesn't make any sense, since you have to start zope single threaded (according to Matts Stability Howto) and then no crashes occur. Actually, at least in Linux, with a recent

Re: [Zope-dev] more on the segfault saga

2002-03-13 Thread Leonardo Rochael Almeida
On Wed, 2002-03-13 at 09:09, Matthew T. Kromer wrote: On Tuesday, March 12, 2002, at 05:08 PM, Leonardo Rochael Almeida wrote: Matthew, thanks for taking the time to gdb the beast with me. Did you come up with any instrumentation I should add to Python or Zope to get what

RE: [Zope-dev] where is Zope 2.5.1?

2002-03-13 Thread Leonardo Rochael Almeida
On Wed, 2002-03-13 at 13:03, Brian Lloyd wrote: We are trying to get to the bottom of a few straggling instability reports, so we're planning to go ahead with a b2 as soon as we've either a) figured out and fixed them b) figured them out and found it wasn't a Zope core problem or c) decide

Re: [Zope-dev] more on the segfault saga

2002-03-13 Thread Leonardo Rochael Almeida
On Wed, 2002-03-13 at 12:40, Leonardo Rochael Almeida wrote: Also, how about turning on some flags in gc.seg_debug()? Do you think we might be able to glance something by seeing what objects where logged as freed or by storing them in gc.garbage? Forgot to mention, gc module documentation

RE: [Zope-dev] where is Zope 2.5.1?

2002-03-13 Thread Leonardo Rochael Almeida
On Wed, 2002-03-13 at 14:04, Brian Lloyd wrote: The best way to help is to help get this (these) down to a minimal, reproducable test case. The problem is, as far as I could check, the crashes all happen inside the gc, which runs orthogonal to the requests, so getting a reproduceable test

Re: [Zope-dev] Help with DTML-IN statement

2002-03-13 Thread Leonardo Rochael Almeida
Hi Gary, This question is more suited to [EMAIL PROTECTED] instead of [EMAIL PROTECTED], and you should not send html e-mail to any of these two lists, but since we are here... On Wed, 2002-03-13 at 16:13, Gary Yee wrote: Hello, I am very new to Zope/DTML and I am a little confused with

Re: [Zope-dev] more on the segfault saga

2002-03-13 Thread Leonardo Rochael Almeida
I set MALLOC_CHECK_ to 1 and it said it was using the malloc debug hooks, but didn't report anything else before the crashes, so no point in setting it to 2... On Wed, 2002-03-13 at 13:49, Shane Hathaway wrote: Leonardo Rochael Almeida wrote: On Wed, 2002-03-13 at 13:04, Shane Hathaway wrote

Re: [Zope-dev] more on the segfault saga

2002-03-13 Thread Leonardo Rochael Almeida
On Wed, 2002-03-13 at 21:30, Matthew T. Kromer wrote: On Wednesday, March 13, 2002, at 10:40 AM, Leonardo Rochael Almeida wrote: What about patching Python to report the freed objects like you mentioned on IRC? Also, how about turning on some flags in gc.seg_debug()? Do you think we

Re: [Zope-dev] more on the segfault saga

2002-03-14 Thread Leonardo Rochael Almeida
5On Thu, 2002-03-14 at 13:28, Matthew T. Kromer wrote: OK, I'm attaching a patch to Python's Modules/gcmodule.c which should set a trap for where the garbage collector trips over bad data; this will grab the bad data and send it to stderr so I can build a better trap. I'm on it. Will send

Re: [Zope-dev] more on the segfault saga

2002-03-14 Thread Leonardo Rochael Almeida
On Thu, 2002-03-14 at 17:17, Dieter Maurer wrote: Leonardo Rochael Almeida writes: In any event, Martijn Jacobs (a.k.a. instability case #3 :-) sees his crashes in pure dtml methods, which could mean that PythonScripts are inocent in this case... or not, since the segfault hits inside

Re: [Zope-dev] more on the segfault saga

2002-03-14 Thread Leonardo Rochael Almeida
Hi Matt, I'll wait for the patch where you also silence the dead-raising area in ExtensionClass. What if, instead of detecting this situation, we try to detect if the incref is happening without the interpreter lock held? increfs and decrefs shouldn't be happening freely and simultaneously

Re: [Zope-dev] Re: more on the segfault saga

2002-03-15 Thread Leonardo Rochael Almeida
On Fri, 2002-03-15 at 08:19, Martijn Jacobs wrote: Hello Leo, Matt, Brian, I'm on it. Will send results when they're available. If anyone wants to talk to me during the period, I'll be on IRC. If you need any assistance for anything, I'm at your service Which channel/server are

Re: [Zope-dev] manage frame change

2002-03-18 Thread Leonardo Rochael Almeida
On Mon, 2002-03-18 at 13:21, Lennart Regebro wrote: The machine should, in my opinion, be the domain you are logged in on. I.e, if you are authenticated for domain www.foobar.com:1001, thats what it should say, according to an internal survey here at Torped (that means me and Johan). :-)

Re: [Zope-dev] more on the segfault saga

2002-03-18 Thread Leonardo Rochael Almeida
I've applied both patches, however I've changed the incref part a little. Now it reads: #define Py_INCREF(op) ((op)-ob_refcnt 0 ? (op)-ob_refcnt++ : fprintf(stderr,Eeek! Increfing an object from refct 0 at %s:%d\n,__FILE__,__LINE__), (op)-ob_refcnt++) It's all in one line if my MUA wrapped it.

Re: [Zope-dev] more on the segfault saga

2002-03-18 Thread Leonardo Rochael Almeida
On Mon, 2002-03-18 at 17:44, Leonardo Rochael Almeida wrote: I've applied both patches, however I've changed the incref part a little. Now it reads: #define Py_INCREF(op) ((op)-ob_refcnt 0 ? (op)-ob_refcnt++ : fprintf(stderr,Eeek! Increfing an object from refct 0 at %s:%d\n,__FILE__

Re: [Zope-dev] Re: more on the segfault saga

2002-03-21 Thread Leonardo Rochael Almeida
that be. I'll see if I can install another Zope instance where it all belongs to another user, so that we can rule out lack of permissions for this problem. On Tue, 2002-03-19 at 18:10, Matthew T. Kromer wrote: Leonardo Rochael Almeida wrote: The official unofficial Zope place on irc is #zope

Re: [Zope-dev] Re: more on the segfault saga

2002-03-25 Thread Leonardo Rochael Almeida
Hello segfaulters and others interested in Zope instability issues! Our demi-god Matt Kromer from ZopeCorp has come up with a possible way to corner the instability issue AND give you a stable, cycle-garbage collecting Zope. Since the problem seems, so far, to be caused by the Python

Re: [Fwd: [Zope-dev] Re: more on the segfault saga]

2002-03-26 Thread Leonardo Rochael Almeida
On Tue, 2002-03-26 at 07:31, Martijn Jacobs wrote: Just to make sure : I put gc.disable() in Z2.py and apply this ZServerPublisher.py patch? Or do I have to add some more code to let the garbage collector collect more often or less or... No, you don't need to explicitly call gc.disable()

Re: [Zope-dev] ZClass Constructor Cleanup for 2.6

2002-03-27 Thread Leonardo Rochael Almeida
On Wed, 2002-03-27 at 17:31, Casey Duncan wrote: I don't think this is a big enough change to warrant a real proposal, so I'll shoot this out here: Does anyone see a problem with changing the default generated constructor method for ZClasses to a python script in Zope 2.6? I think we

Re: [Zope-dev] Bad Marshal Data

2002-03-27 Thread Leonardo Rochael Almeida
I haven't seen anything like that. What I have seen, an which scares the heck out of me everytime I see it is UnpicklingErrror, which, in my case, usually happens when the _p_jar dictionary doesn't have an object that other parts of zope swear they exist. The solution to that usually involves

[Zope-dev] final patches

2002-04-01 Thread Leonardo Rochael Almeida
On Thu, 2002-03-28 at 15:33, Matthew T. Kromer wrote: [...] FYI, Pythonlabs thinks there is more than one bug involved. The relevant report at sourceforge is: http://sourceforge.net/tracker/?func=detailatid=105470aid=535905group_id=5470 That report marks the bug as closed and one

[Zope-dev] ding, dong, the segfault is dead. Patch attached

2002-04-02 Thread Leonardo Rochael Almeida
On Mon, 2002-04-01 at 19:57, Leonardo Rochael Almeida wrote: On Thu, 2002-03-28 at 15:33, Matthew T. Kromer wrote: [...] The relevant report at sourceforge is: http://sourceforge.net/tracker/?func=detailatid=105470aid=535905group_id=5470 [...] Which is (or where can I find

Re: [Zope-dev] PHP vs Zope cost benefit

2002-04-24 Thread Leonardo Rochael Almeida
On Tue, 2002-04-23 at 21:36, Jason Spisak wrote: [...] 5. The transactional nature of Zope (although they didn't believe me when it came to rolling back multiple dbs) impressed them and if it really can mange a rollback from from a DB and transaction safety for inventory,etc...(which I

Re: [Zope-dev] PHP vs Zope cost benefit

2002-04-24 Thread Leonardo Rochael Almeida
On Wed, 2002-04-24 at 17:39, Jason Spisak wrote: This means that every Update/Insert command make sthe ZODB grow, right? Wrong. Transactions allways happen. An insert/update causes the db adapter in question to register itself for transactions, but ZODB itself won't inflate unless an object

Re: [Zope-dev] Best practice for Zope-private copy of Python 2.1 onLinux?

2002-05-06 Thread Leonardo Rochael Almeida
On Mon, 2002-05-06 at 16:51, Andreas Jung wrote: Compile python from source with --prefix=/your/privat/python/directory and install it there. Then run the standard Zope installation process with this new Python. That's it. I'd go one step further and suggest that you compile python with

Re: [Zope-dev] debugging wedged zopes

2002-05-09 Thread Leonardo Rochael Almeida
On Thu, 2002-05-09 at 13:14, Evan Simpson wrote: http://www.zope.org/Members/4am/debugspinningzope for details. This is perfect! I'm still waiting for the next time my zope spins o see if I can grab it. -- Ideas don't stay in some minds very long because they don't like solitary confinement.

Re: [Zope-dev] Order of attribute execution Feature Request

2002-05-10 Thread Leonardo Rochael Almeida
On Fri, 2002-05-10 at 12:21, Jim Penny wrote: On Fri, May 10, 2002 at 11:53:47AM +0100, Chris Withers wrote: [...] Actually, the first time I got bit was on repeat v. condition. I wanted the condition to test each row, not to guard the entire iteration process. You shouldn't want that.

Re: [Zope-dev] Locked out of ZOPE! please help!

2002-05-13 Thread Leonardo Rochael Almeida
On Mon, 2002-05-13 at 10:22, Richard McKinley wrote: [...] I've tried to create an emergency user at the dos prompt: C:\Program Files\TestZope\binpython C:\program files\testzope\zpasswd.py access but after entering username/password, specifying cleartext and hitting n or return at

Re: [Zope-dev] getitem in python script

2002-05-14 Thread Leonardo Rochael Almeida
First some politics: 1. please,don't send html e-mail 2. this question is better suited to [EMAIL PROTECTED] Now for your answer: getitem isn't a normal zope method. It's an _ method, but the _ object is not usually what you want to use in a PythonScript. you either want: getattr(container,

Re: [Zope-dev] Interesting namespace observation

2002-05-27 Thread Leonardo Rochael Almeida
On Mon, 2002-05-27 at 11:45, Roché Compaan wrote: [...] dtml-in getProxies('Platform') sort=Name prefix=platform This is not a valid syntax, you should have:: dtml-in getProxies('Platform') sort=Name prefix=platform Note the double quotes around the getProxies call. In order not to use

Re: [Zope-dev] Sequencing question

2002-05-27 Thread Leonardo Rochael Almeida
Hi David, Questions about using Zope are better answered at [EMAIL PROTECTED] since they are off topic at [EMAIL PROTECTED], but since we're already here, see below On Mon, 2002-05-27 at 13:25, David Williams wrote: Hi all First-time posting from a Zope newbie ... hopefully someone can help

Re: [Zope-dev] [OPINIONS SOLICITED] Adding Batch Factory to ZMIAdd menu OK?

2002-05-27 Thread Leonardo Rochael Almeida
Hello Craeg I particularly prefer the factory aproach. Zope users are already used to that approach because of the Z Search Interface. I think you shouldn't need a dummy class just to be able to create such a factory, but right now I don't know how you'd go about creating a factory without a

[Zope-dev] putting the 'two' back in tpc

2002-06-04 Thread Leonardo Rochael Almeida
In a chat with Kapil at #zope we came to the conclusion that most Zope database adaptors don't really implement two phase commit, because they make no effort, during the 'vote' phase (the first phase of the tpc) to make sure that the commit will go thru without errors. For example, if you have

Re: [Zope-dev] __setattr__ and acquisition ( was RE: __getattr__and acquisition)

2002-06-06 Thread Leonardo Rochael Almeida
The only way I know is to put a wrapped object in a ._v_attribute, which means a volatile attribute. You can put, for instance, a wrapped self in, for instance self._v_alterEgo, this way you can do wrapped transversals thru it. How do you get a wrapped self to put there is an exercise left to

Re: [Zope-dev] Zope stops responding (Threads still present)

2002-06-07 Thread Leonardo Rochael Almeida
On Fri, 2002-06-07 at 16:36, Ahsan Imam wrote: Hello All, Zope stops responding to requests, however when I check the zope process I see seven threads plus watchdog thread. ( ps auxww | grep z2 ). I am not sure why it stops responding. Try to follow the debuging procedure outlined

Re: [Zope-dev] How-to : Defining custom DTML-tags ??

2002-06-10 Thread Leonardo Rochael Almeida
Besides looking at the examples Casey mentioned, you might want to try extending the Formulator product to render the forms with the Javascript you want. Formulator fields already contain an extra setting where you can put any attributes for the fields, such as onClick actions and stuff. DTML

  1   2   3   >