[Zope3-Users] Use Case for a Tree of Adapter Registries?

2006-04-14 Thread Jeff Rush
I've read the code for adapter registries, how there is a global one and any number of local ones, arranged in a tree and that each can be disabled. But I can't figure out when you'd want to make use of such an arrangement. The docstrings and .txt files use abstract examples, for unit testing,

[Zope3-Users] Re: Use Case for a Tree of Adapter Registries?

2006-04-14 Thread Martin Aspeli
On Fri, 14 Apr 2006 11:07:42 +0100, Jeff Rush [EMAIL PROTECTED] wrote: I've read the code for adapter registries, how there is a global one and any number of local ones, arranged in a tree and that each can be disabled. But I can't figure out when you'd want to make use of such an

[Zope3-Users] Re: A Few Questions re Namespaces

2006-04-14 Thread Martin Aspeli
2. I finally found the + view in container/browser, but all uses of it are as /@@+/newitem.html. I could have sworn I saw the + used w/o the @@ prefix someplace but can't find it again. Did I indeed imagine ever seeing /+/newitem.html? No, I've seen this too. As far as I

[Zope3-Users] dynamic file creation

2006-04-14 Thread Michal Nowikowski
Hello, I'm a Zope3 newbie. I want to send to user a file while he clicks on a link. The file is created dynamically and sent to user for example in ZIP format. I think I had to use IFile interface and File class. But I dont know how to prepare it and send it to user. My code: class

[Zope3-Users] formlib problem

2006-04-14 Thread St├ęphane Brault
Hi, I'm trying to use formlib but I get a problem : Traceback (most recent call last): File pyshell#103, line 1, in -toplevel- print MyForm(None, request)() File pyshell#100, line 6, in __call__ widgets = form.setUpWidgets(self.form_fields, 'form', self.context, self.request,

Re: [Zope3-Users] dynamic file creation

2006-04-14 Thread Michal Nowikowski
Hi, On Fri, Apr 14, 2006 at 02:56:55PM +0200, Michal Nowikowski wrote: Hello, I'm a Zope3 newbie. I want to send to user a file while he clicks on a link. You won't need the IFile interface - just a simple view that sets some special HTTP-headers. Example: class