[Zope3-Users] One single EditForm for several objects
Hi there, I have a Problem regarding to the creation and the editing of several objects with one single form. I do the creation with an AddForm, which uses formlib, the schemas IFooContainer und IFooContained and a modified createAndAdd function. Once the form is sent correctly, it creates a FooContainer object, a FooContained object and adds FooContained to FooContainer. Thats the way it should be and thats the way it already works. The actual problem is the EditForm. Basically I do the same as above, using formlib and the two schemas. But now I get the following traceback: -- 2006-11-03T10:51:55 ERROR SiteError http://localhost:8080/foocontainer01/@@editForm.html Traceback (most recent call last): File C:\Python24\Lib\site-packages\zope\publisher\publish.py, line 138, in publish result = publication.callObject(request, object) File C:\Python24\Lib\site-packages\zope\app\publication\zopepublication.py, line 161, in callObject return mapply(ob, request.getPositionalArguments(), request) File C:\Python24\Lib\site-packages\zope\publisher\publish.py, line 113, in mapply return debug_call(object, args) File C:\Python24\Lib\site-packages\zope\publisher\publish.py, line 119, in debug_call return object(*args) File C:\Python24\Lib\site-packages\zope\formlib\form.py, line 738, in __call__ self.update() File C:\Python24\Lib\site-packages\zope\formlib\form.py, line 707, in update self.setUpWidgets() File C:\Python24\Lib\site-packages\zope\formlib\form.py, line 768, in setUpWidgets adapters=self.adapters, ignore_request=ignore_request File C:\Python24\Lib\site-packages\zope\formlib\form.py, line 345, in setUpEditWidgets adapter = interface(context) File C:\Python24\Lib\site-packages\zope\interface\interface.py, line 682, in __call__ raise TypeError(Could not adapt, obj, self) TypeError: ('Could not adapt', FooContainer object at 0x03080E30, InterfaceClass IFooContained) - The error seems to occur in the following line (the second one): class MonolithicEditForm(form.EditForm): form_fields = form.Fields(IFooContainer).__add__(form.FormFields(IFooContained)) That works with the AddForm, but not with the EditForm. How can I tell the system that several of the formfields belong to the FooContainer object and the rest belongs to the FooContained object? Is there a way to do this? Thanks I advance, Arne PS: Im working with Zope 3.3 and Python 2.4 ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] zope3 collector monitor list?
Hi, there was a discussion last year[1] about setting up a monitor list for the zope3 collector, but that never seemed to happen. Wouldn't that make sense? At least I think it would :-) Cheers, Sascha [1] http://mail.zope.org/pipermail/zope3-dev/2005-May/014585.html -- Lalisio GmbH www.lalisio.com Puschkinstraße 1 fon +49-(0)361/541 43 80 99084 Erfurt fax +49-(0)361/541 43 79 [EMAIL PROTECTED] ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Re: how to catalog principal annotations?
Dominique Lederer wrote: I have users residing in an external database.I store user data with principal annotations. Now i want to create a view where users with a special annotation are listed. Is it possible to catalog principal annotations and how? Sure. catalog.index_doc(obj) should do it (where obj is the principal). Then you should have an indices configured to index whichever fields you want to index. Of course, those fields should be coming from an adapter for the principal that you have to create. THe adapter would look at the principal's annotation. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Re: how to catalog principal annotations?
On Nov 3, 2006, at 11:39 AM, Philipp von Weitershausen wrote: Dominique Lederer wrote: I have users residing in an external database.I store user data with principal annotations. Now i want to create a view where users with a special annotation are listed. Is it possible to catalog principal annotations and how? Sure. catalog.index_doc(obj) should do it (where obj is the principal). Then you should have an indices configured to index whichever fields you want to index. Of course, those fields should be coming from an adapter for the principal that you have to create. THe adapter would look at the principal's annotation. This will work if you have a key reference implementation specifically for principals. The default key reference impl. is just for persistent objects, and standard Zope 3 principals are transient, generated for the current request by the pluggable auth utility. Gary ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Open Ofice and Zope
Hello, Here I have a starnge problem. I created a knowledge base of a certain bunch of documents(PDF, MSWORD, OO) My question is when I click on the link to that document using zope(ZMI), it prompts me to use a client side application. But I was wondering if I can use the server side open office application to open all the word and open office applications. Thanks-- Sreeram Nudurupati ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Open Ofice and Zope
Hi, On Fri, Nov 03, 2006 at 01:01:12PM -0600, Sreeram Raghav wrote: Hello, Here I have a starnge problem. I created a knowledge base of a certain bunch of documents(PDF, MSWORD, OO) My question is when I click on the link to that document using zope(ZMI), it prompts me to use a client side application. But I was wondering if I can use the server side open office application to open all the word and open office applications. Do you want to display those files or edit them? Displaying them is just a question of writing a view which uses a clever html converter for Openoffice-, Word-, ...-files . For word, you can use 'wv' which contains a program called wvhtml. I don't know a converter for openoffice but it's file's XML structure Should make it easy to write one. If you want to edit files server based, you'll have to write some kind of AJAX-application, which I consider *very* complicated. Regards, Frank ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users