Re: [ZODB-Dev] Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)

2004-03-04 Thread John Belmonte
Chris McDonough wrote: On Wed, 2004-03-03 at 22:20, Casey Duncan wrote: for key in list(self._data.keys(None, max_ts)): assert(key = max_ts) STRICT and _assert(self._data.has_key(key)) for v in self._data[key].values(): to_notify.append(v)

Re: [ZODB-Dev] Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIG Session problems - blocker - our site dies - need help of experience Zope developer, please)

2004-03-04 Thread Chris McDonough
On Wed, 2004-03-03 at 22:53, John Belmonte wrote: If I'm following this thread correctly, isn't the code failing because the BTree is corrupted (that is, BTrees.check.check chokes)? If that's the case then you're certainly right to avoid masking the problem. We don't know that it's

RE: [ZODB-Dev] Re: BTrees strangeness (was [Zope-dev] Zope 2.X BIGSession problems - blocker - our site dies - need help of experienceZope developer, please)

2004-03-04 Thread Tim Peters
[Chris McDonough] ... I'd really rather just figure out why the code is failing in the first place. I'd just rather not mask the problem until I understand the cause. That may never happen, of course, but a man can dream. I definitely want to know it if there's still a way remaining to

[Zope-dev] Execution context

2004-03-04 Thread Garito
Hi all Finally I solve my problem with Tres Seaver's help (THANK YOU) I overridethe __bobo_traverse__ with: def __bobo_traverse__(self, Request, Name):import sysif sys._getframe(1).f_code.co_name == "traverse":return getattr(self, Name)else:return self.Propiedad(Name) self.Propiedad is

Re: [Zope-dev] server for new protocol?

2004-03-04 Thread Dario Lopez-Kästen
Nikolay Kim wrote: it'll be open source. source in attach. it not very usefull without additional products that must actually handle emails. now i'm working on mail storage products. very cool product Nikolay. re mail storage: have you looked at ZMailIn?

RE: [Zope-dev] Serving big files thru zope?

2004-03-04 Thread Kapil Thangavelu
you could play with http://puggy.symonds.net/~srp/stuff/mod_auth_remote/ and have apache auth off zope. cheers, -kapil On Mon, 2004-03-01 at 11:06, Sandor Palfy wrote: I am also wondering about the security aspects of bypassing Zope to serve files - acess to some of the files we need to

[Zope-dev] CMF dogbowl dog tired ???

2004-03-04 Thread Alan Milligan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I see not much has been happening on cmf.zope.org for some time - the content is still to be merged with zope.org Even more worrying, the collector also shows no movement. I raised 2 one-line fixes (bugs 196, 197) on Oct 19 2003 - they are still

[Zope-dev] Re: Interfaces in Zope 2.5, 2.7, and 3.x

2004-03-04 Thread Martijn Faassen
Jim Fulton wrote: Martijn's suggestion was to use an alternate name for the __implements__ attribute. I suppost I could do that -- call mine __narya_interfaces__, but that sounds ugly. In particular, I don't really want my interfaces module to actually *conflict* with Zope's. As I mentioned

Re: [Zope-dev] Re: Custom class: cut,copy,rename?

2004-03-04 Thread Ian Beatty
On 2004-03-02 2:15 PM, Ian Beatty is reputed to have said: Here's what I have now: a hierarchy of five custom classes, pretty close to identical for now. All five subclass ObjectManager, CatalogAware, PropertyManager, and SimpleItem in that order. The top one (A) may be added to any old Zope

[Zope-dev] TCPWatch or other such tool

2004-03-04 Thread Bjorn Stabell
Title: Message Has anyone gotten TCPWatch to work recently? Using Python2.1/2.2/2.3 I get: Unhandled exception in thread started by function window_loop at 0x402877d4Traceback (most recent call last): File "/zope/opt/bin/tcpwatch.py", line 656, in window_loop app.mainloop() File

Re: [Zope-dev] DTML

2004-03-04 Thread Christian Theune
On Tue, 2004-03-02 at 18:24, Fábio Bruno wrote: Dear Sir or Madamme We are working with zope at school, it was proppoused to us to do an imobiliary site and we like to know who we can do a for cicle or repeat to search in our document whow many houses where added. Your's faithfully,

Re: [Zope-dev] TCPWatch or other such tool

2004-03-04 Thread Christian Theune
On Wed, 2004-02-25 at 05:53, Bjorn Stabell wrote: Has anyone gotten TCPWatch to work recently? Using Python2.1/2.2/2.3 I get: Unhandled exception in thread started by function window_loop at 0x402877d4 Traceback (most recent call last): File /zope/opt/bin/tcpwatch.py, line 656, in

Re: [Zope-dev] TCPWatch or other such tool

2004-03-04 Thread Shane Hathaway
Bjorn Stabell wrote: Has anyone gotten TCPWatch to work recently? Using Python2.1/2.2/2.3 I get: Unhandled exception in thread started by function window_loop at 0x402877d4 Traceback (most recent call last): File /zope/opt/bin/tcpwatch.py, line 656, in window_loop app.mainloop() File

[Zope-dev] DTML

2004-03-04 Thread Fábio Bruno
Dear Sir or Madamme We are working with zope at school, it was proppoused to us to do an imobiliary site and we like to know who we can do a for cicle or repeat to search in our document whow many houses where added. Your's faithfully, Fábio Bruno

[Zope-dev] help

2004-03-04 Thread Vandana Bajaj
I am not able to access zope management interface through mozilla.Could any one guide me why is it happening so.Can i use _javascript_ within Zope Page Templates to embed logic Thank you in advanceVandana Do you Yahoo!? Yahoo! Search - Find what you’re looking for

[Zope-dev] Folderish object's __call__ fails

2004-03-04 Thread Dirksen
Hi, I'm developing a product, which extends ObjectManager. Meanwhile, I'd like it to behave like a script object, similar to DTML method. So I define a __call__ method. But it never gets run if called from the browser. If I change the base class to SimpleItem, it works. How can I make __call__

Re: [Zope-dev] Custom class: cut,copy,rename?

2004-03-04 Thread Kapil Thangavelu
On Mon, 2004-03-01 at 13:59, Ian Beatty wrote: Greetings. I've created a package in Python with some basic classes. They work in the ZMI, except for the fact that the ZMI paste and rename functionality fails with the message The object xxx does not support this operation. I've dug into

[Zope-dev] Re: Folderish object's __call__ fails

2004-03-04 Thread Casey Duncan
On Thu, 4 Mar 2004 13:03:20 -0800 (PST) Dirksen [EMAIL PROTECTED] wrote: Hi, I'm developing a product, which extends ObjectManager. Meanwhile, I'd like it to behave like a script object, similar to DTML method. So I define a __call__ method. But it never gets run if called from the

[Zope-dev] Schizophrenic ObjectManager?

2004-03-04 Thread Ian Beatty
Greetings. I'd like to create a type in a Python-based product that's kind of like two folders fused together. What I mean by that is I've got a folderish object type -- let's call it 'F' -- that inherits from ObjectManager. I've set it up so that it can contain objects of type 'A' and nothing

[Zope-dev] Image.tag() no longer publishable?

2004-03-04 Thread Paul Winkler
I used to be able to browse to an image's tag method and see its output in my browser. This worked in zope 2.6.1 and apparently stopped working in 2.6.2. Anybody know why? I don't see ANY changes to Image.py between 2.6.1 and 2.6.2. In 2.6.2, 2.6.4, and 2.7.0 I get the missing docstring

Re: [Zope-dev] Image.tag() no longer publishable?

2004-03-04 Thread Chris McDonough
On Thu, 2004-03-04 at 16:38, Paul Winkler wrote: In 2.6.2, 2.6.4, and 2.7.0 I get the missing docstring error: The object at http://localhost:8080/foo.jpg/tag has an empty or missing docstring. Objects must have a docstring to be published. I have seen this message being raised in many

Re: [Zope-dev] Image.tag() no longer publishable?

2004-03-04 Thread Paul Winkler
On Thu, Mar 04, 2004 at 07:12:32PM -0300, Sidnei da Silva wrote: On Thu, Mar 04, 2004 at 04:38:46PM -0500, Paul Winkler wrote: | It's very inconvenient, I used this technique to embed zope images | in JSP's and all those pages are now broken. | Any clue would be appreciated. Wild guess:

Re: [Zope-dev] Image.tag() no longer publishable?

2004-03-04 Thread Paul Winkler
On Thu, Mar 04, 2004 at 05:14:37PM -0500, Chris McDonough wrote: On Thu, 2004-03-04 at 16:38, Paul Winkler wrote: In 2.6.2, 2.6.4, and 2.7.0 I get the missing docstring error: The object at http://localhost:8080/foo.jpg/tag has an empty or missing docstring. Objects must have a docstring

Re: [Zope-dev] Image.tag() no longer publishable?

2004-03-04 Thread Sidnei da Silva
| That was indeed a wild guess ;-) | Of course it does. Are you using Plone? Maybe it's monkey patching Image.tag. -- Sidnei da Silva [EMAIL PROTECTED] http://awkly.org - dreamcatching :: making your dreams come true http://plone.org/about/team#dreamcatcher 1: No code table for op: ++post

Re: [Zope-dev] Schizophrenic ObjectManager?

2004-03-04 Thread Max M
Ian Beatty wrote: Another possibility is to maintain only one collection, but to create the illusion of two separate collections by having two copies of the contents ('manage_main') page, each modified to display only one kind of child. Two different views on the same model, like this, is

Re: [Zope-dev] Image.tag() no longer publishable?

2004-03-04 Thread Paul Winkler
On Thu, Mar 04, 2004 at 06:10:18PM -0500, Paul Winkler wrote: On Thu, Mar 04, 2004 at 05:14:37PM -0500, Chris McDonough wrote: On Thu, 2004-03-04 at 16:38, Paul Winkler wrote: In 2.6.2, 2.6.4, and 2.7.0 I get the missing docstring error: The object at http://localhost:8080/foo.jpg/tag

Re: [Zope-dev] Image.tag() no longer publishable?

2004-03-04 Thread Paul Winkler
On Thu, Mar 04, 2004 at 08:43:35PM -0300, Sidnei da Silva wrote: | That was indeed a wild guess ;-) | Of course it does. Are you using Plone? Maybe it's monkey patching Image.tag. You were lurking on #zope weren't you ;-) -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's

Re: [Zope-dev] Image.tag() no longer publishable?

2004-03-04 Thread Marc Lindahl
If you're using Plone, it monkeypatches Image.tag(). Caused me to add an Image.pil_tag() monkeypatch to my monkeypatch ImageTag_CorePatch :) On Thursday, March 4, 2004, at 04:38 PM, Paul Winkler wrote: I used to be able to browse to an image's tag method and see its output in my browser.

Re: [Zope-dev] Image.tag() no longer publishable?

2004-03-04 Thread Andy McKay
Marc Lindahl wrote: If you're using Plone, it monkeypatches Image.tag(). Caused me to add an Image.pil_tag() monkeypatch to my monkeypatch ImageTag_CorePatch :) Oh I wish we could get that into Zope so it actually puts out an image tag *by default* without a border. Sigh. -- Andy McKay

Re: [Zope-dev] Image.tag() no longer publishable?

2004-03-04 Thread Marc Lindahl
I changed ImageTag_CorePatch to also do the border=0 default patch. On Thursday, March 4, 2004, at 08:26 PM, Andy McKay wrote: Marc Lindahl wrote: If you're using Plone, it monkeypatches Image.tag(). Caused me to add an Image.pil_tag() monkeypatch to my monkeypatch ImageTag_CorePatch :)

RE: [Zope-dev] TCPWatch or other such tool

2004-03-04 Thread Bjorn Stabell
Shane wrote: [...] Other people have reported this, but I can't reproduce it. I've been using tcpwatch on Python versions 2.1 through 2.3 without a hiccup. Are you using Linux? If so, what distribution? As a workaround, you can use -s to dump to stdout. Thanks. I was running it on

Re: [Zope-dev] Image.tag() no longer publishable?

2004-03-04 Thread Paul Winkler
On Thu, Mar 04, 2004 at 05:26:59PM -0800, Andy McKay wrote: Marc Lindahl wrote: If you're using Plone, it monkeypatches Image.tag(). Caused me to add an Image.pil_tag() monkeypatch to my monkeypatch ImageTag_CorePatch :) Oh I wish we could get that into Zope so it actually puts out an

Re: [Zope-dev] Image.tag() no longer publishable?

2004-03-04 Thread Andy McKay
Paul Winkler wrote: Eh? I'm not sure what you want. No border attribute, or border=0? [snip] If you want to force no border attribute, you can pass it a false value. No border attribute at all. In Zope you have to specify you dont want a border you have to call tal:image replace=python:

Re: [Zope-dev] Image.tag() no longer publishable?

2004-03-04 Thread Paul Winkler
On Thu, Mar 04, 2004 at 07:25:02PM -0800, Andy McKay wrote: Right because the border attribute is not standards compliant, and is deprecated. So this way if you don't want to meet standards, great go fo it, but otherwise you'll get the right tag. Oh ok, I didn't know that about it being

Re: [Zope-dev] Image.tag() no longer publishable?

2004-03-04 Thread Marc Lindahl
On Thursday, March 4, 2004, at 10:14 PM, Paul Winkler wrote: From OFS.Image.tag in zope 2.7.0: if not 'border' in [ x.lower() for x in args.keys()]: result = '%s border=0' % result ... that's been in there for about 3 years! If you want to force no border attribute, you can

[Zope-dev] Re: Interfaces in Zope 2.5, 2.7, and 3.x

2004-03-04 Thread Tres Seaver
Martijn Faassen wrote: Jim Fulton wrote: Martijn's suggestion was to use an alternate name for the __implements__ attribute. I suppost I could do that -- call mine __narya_interfaces__, but that sounds ugly. In particular, I don't really want my interfaces module to actually *conflict* with