[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 arr

[Zope3-Users] A Few Questions re Namespaces

2006-04-14 Thread Jeff Rush
I've been working hard reviewing the source to understand namespaces, and have most of them figured out but not all. 1. Resources are given a __parent__ so they have an absolute_url. But it seems that views are not. So they are non-locatable things? 2. I finally found the "+" view in con

[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

[Zope3-Users] Zope 3 menus for Plone - design choices

2006-04-14 Thread Martin Aspeli
Hi guys, I'm writing this PLIP: http://plone.org/products/plone/roadmap/142. For those of you familiar with Plone, it relates to the global contentmenu - the green bar you see when you can edit an object in Plone, under the content views tabs. This contains a number of drop-down menus, inclu

[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 ISomeContainer

[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 "", line 1, in -toplevel- print MyForm(None, request)() File "", line 6, in __call__ widgets = form.setUpWidgets(self.form_fields, 'form', self.context, self.request, ignore_request=ignore

Re: [Zope3-Users] dynamic file creation

2006-04-14 Thread Frank Burkhardt
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. > 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

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 DownloadView(Bro