[Zope3-Users] which widget to subclass for custom widget?
Sorry I have to bother you once more regarding formlib & co :-) (really sorry) In my application I need something very user defined In the Edit Form "Edit Purchase Requisition" I would like to have a section "Supplier Selection", that should operate as a widget. Basically I will use a schema "Choice" Field as a base, I will just create another "view" for the choice than the default select field. The whole thing should be seen as generic that returns a value at the end that should be validated and saved: the supplier id (which is the idea of widgets in general what I understood until now) Here the details, should include the following: - question "new supplier?" radiobuttons "yes / no" (onchange event to disable / enable textfields that are part of the same widget) - 2 textfields name+address that allow to enter the new supplier info (disabled when above selection no) - link to an independent supplier selection page (with search and list view) - the selection made in the supplier selection page should be updated in the widget as well (overwrite setupWidgets method I think) when applying the form, check in the custom _validate method of my widget, if radiobutton yes / no. when yes then add new supplier else just check if value is already in table. So far the theory, now the first question is, which widget to subclass? SelectWidget, ItemWidgetBase contain vocabulary and probably too high level. SimpleInputWidget seems the better choice? Dennis ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Clipboard
I created a custom content container. However, when I copy(or cut) something to the clipboard, the Paste button does not show up. What am I missing? The content objects seem to be functional in all regards and are stored in a MySQL database, and are inherited from only the "Contained" class (so they can be contained of course). Thanks in advance. -- David -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
Re: [Zope3-Users] Database conflicts errors ?
Le vendredi 08 décembre 2006 à 15:08 +0100, Thierry Florac a écrit : > Hi, > > I'm currently writing an image management adapter for Zope3. > It's goal is just to create and store thumbnails "on the fly" when an > image is requested with an additional specific traversal name (for > example, "myimage/thumbnail" will create a thumbnail of a given > predefined size, while "myimage/200x200" will create a copy of the > original image reduced to 200 pixels). > These thumbnails are stored in the original image annotations. > > Everything seems to work fine, except for a little thing : I've created > a specific widget so that, when an image is uploaded, a thumbnail of the > new uploaded image is immediately displayed next to the "data" field > upload button. > But when the form is displayed, a "DatabaseConflictError" is visible > into Zope's log, even if everything seems to work correctly from a > browser's point of view. > > I'm not completely sure to understand what DatabaseConflictErrors are, > so any explanation about this kind of problem would be greet. > I'll just add for your information that I'm using ZEO... Oops !! Sorry, I found the source of my problem : it was a misconfiguration of the adapter, who was writing data in it's context each time it was called, even if the context was already "adapted". A small missing tab and conflicts are gone... Thierry Florac -- Chef de projet intranet/internet Office National des Forêts - Département Informatique 2, Avenue de Saint-Mandé 75570 PARIS Cedex 12 Mél : [EMAIL PROTECTED] Tél. : +33 01.40.19.59.64 Fax. : +33 01.40.19.59.85 ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Database conflicts errors ?
Hi, I'm currently writing an image management adapter for Zope3. It's goal is just to create and store thumbnails "on the fly" when an image is requested with an additional specific traversal name (for example, "myimage/thumbnail" will create a thumbnail of a given predefined size, while "myimage/200x200" will create a copy of the original image reduced to 200 pixels). These thumbnails are stored in the original image annotations. Everything seems to work fine, except for a little thing : I've created a specific widget so that, when an image is uploaded, a thumbnail of the new uploaded image is immediately displayed next to the "data" field upload button. But when the form is displayed, a "DatabaseConflictError" is visible into Zope's log, even if everything seems to work correctly from a browser's point of view. I'm not completely sure to understand what DatabaseConflictErrors are, so any explanation about this kind of problem would be greet. I'll just add for your information that I'm using ZEO... Thanks for any help, Thierry Florac -- Chef de projet intranet/internet Office National des Forêts - Département Informatique 2, Avenue de Saint-Mandé 75570 PARIS Cedex 12 Mél : [EMAIL PROTECTED] Tél. : +33 01.40.19.59.64 Fax. : +33 01.40.19.59.85 ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users
[Zope3-Users] Multiple zcml-overrides of the same component
Hi, I've got a Package B depending on a Package A - both of them are zcml-overriding an adapter which is originally defined in zope itself. Unfortunately, zope doesn't seem to like that - Package B's override causes a ConfigurationConflictErrorwhich which it shouldn't - because the adapter is defined via override, right? Is this a bug in zope or did I miss something? Regards, Frank ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users