Re: [Zope3-Users] Zope 3 and menus

2007-03-14 Thread eXt
Dnia wtorek, 13 marca 2007 15:12, Tom Gross napisał: Hi there, I override BrowserMenu from zope.app.publisher.browser.menu and add a entry 'abs_action' to the resulting dictionary. Nice solution. Thanks a lot! -- Jakub Wisniowski ___

[Zope3-Users] keeping GET data in a formlib based form

2007-03-14 Thread Lorenzo Gil Sanchez
Hi everybody, I have a formlib based form. It is not accesible from an application menu because it is part of a wizard like process. The first time it gets called the url looks something like this: http://localhost:8080/myapp/mycontent/myform?myarg=23 So in the update() method of the form I

Re: [Zope3-Users] correct display of Text field in a view

2007-03-14 Thread Ivan Horvath
Darryl, Frank, thank you your answers, but finally i keep the widget solution instead of TextAreaWidget i inherited my widget from DisplayWidget, and of course used your replace solution. class IMultiLineText(IText): this field will be used for the comment because of the correct display

Re[2]: [Zope3-Users] correct display of Text field in a view

2007-03-14 Thread Adam Groszer
Hello Ivan, I don't think that you'll need IMultiLineText and MultiLineText. That's why IText and Text are there for. You'll have to register the widget for IText or use it directly in your view with CustomWidgetFactory. In fact it's a good question why Z3 doesn't provide such a widget for Text.

Re: [Zope3-Users] keeping GET data in a formlib based form

2007-03-14 Thread Maciej Wisniowski
I need a way to keep 'myarg' information in my form for subsequent calls. Ideally I would like some mechanism that ends writing an input type=hidden id=myarg value=23/ tag in the html because that way my code: def update(self): [..] data = self.request['myarg'] [..] will still

[Zope3-Users] Formlib and action conditions

2007-03-14 Thread Daniel Nouri
Currently, when you have a condition on an action, and it is satisfied on render time, you'll get a button. However, if you click that button and the condition happens to be false in the subsequent request, the action will not be executed, with no error message or notice. Is this intended?

[Zope3-Users] Re: [Zope3-dev] Community opinion about workflow engine

2007-03-14 Thread Philipp von Weitershausen
Stephan Richter wrote: class Application(Contained, Persistent): ... @apply def stati(): See IApplication def getStati(self): return self._stati def setStati(self, value): removed = set(self._stati) - set(value) added =

Re: [Zope3-Users] Community opinion about search+filter

2007-03-14 Thread Christophe Combelles
Adam Groszer a écrit : Hello, I'd like to ask your opinion, your experiences about searching and filtering in quite large object DBs. We need to add search and filter functions to our current app, where the user might be able to create quite _sophisticated_ filter criterias. (The app is a pure

[Zope3-Users] Community opinion about search+filter

2007-03-14 Thread Adam Groszer
Hello, I'd like to ask your opinion, your experiences about searching and filtering in quite large object DBs. We need to add search and filter functions to our current app, where the user might be able to create quite _sophisticated_ filter criterias. (The app is a pure Z3 app, subject is

[Zope3-Users] formlib with no zodb

2007-03-14 Thread tyson
Is it possible to build a page with formlib, widgets, and a page template without using the ZODB or ZMI. I have been trying for awhile to accomplish this with no luck. I want to build an edit form that shows results from a postgresql database which does not add any objects within the zodb.

[Zope3-Users] i18n question

2007-03-14 Thread Dominique Lederer
i have a viewlet where this method resides: def title(self): from zope.i18nmessageid import MessageFactory _ = MessageFactory('my_domain') return _(self.__name__) the pagetemplates for the viewlet renders the title like p tal:content=view/title / the templates renders

Re: [Zope3-Users] i18n question

2007-03-14 Thread Dominique Lederer
Dominique Lederer schrieb: i have a viewlet where this method resides: def title(self): from zope.i18nmessageid import MessageFactory _ = MessageFactory('my_domain') return _(self.__name__) the pagetemplates for the viewlet renders the title like p

Re: [Zope3-Users] formlib with no zodb

2007-03-14 Thread Kapil Thangavelu
you don't need anything special.. if you have orm mapped objects just write formlib forms for them, with a custom traversal to retrieve. if your doing sql by hand, then just write adapters for the form context that update the relevant rdb data. as an example, alchemist constructs formlib

[Zope3-Users] object hierarchy

2007-03-14 Thread Ivan Horvath
Dear All, i'm really new to zope, but i have learning application, where the object stru is little bit complex. App | + Categories | +--Categ1 | +Type1 |

Re: [Zope3-Users] object hierarchy

2007-03-14 Thread FB
On Wed, Mar 14, 2007 at 04:35:53PM +0100, Ivan Horvath wrote: Dear All, i'm really new to zope, but i have learning application, where the object stru is little bit complex. App | + Categories | +--Categ1 |

Re: [Zope3-Users] object hierarchy

2007-03-14 Thread Ivan Horvath
Dear Frank, i think i did something similar first to define the category container, and contained and this is working fine, i can add new category objects into the category container. i have problem with the next level, whereas the category, which is contained from the category point of view,

[Zope3-Users] imports cleanup

2007-03-14 Thread Christophe Combelles
Hello, As I'm experimenting with various components, I'm adding more and more imports in the beginning of the python files, but at the end, most of them are unused. Is there a tool or a method to automatically clean or detect unused imports ? regards, Christophe

Re: [Zope3-Users] imports cleanup

2007-03-14 Thread Albertas Agejevas
On Thu, Mar 15, 2007 at 01:52:51AM +0100, Christophe Combelles wrote: As I'm experimenting with various components, I'm adding more and more imports in the beginning of the python files, but at the end, most of them are unused. Is there a tool or a method to automatically clean or detect