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
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.
> I need a way to keep 'myarg' information in my form for subsequent
> calls. Ideally I would like some mechanism that ends writing an type="hidden" id="myarg" value="23"/> tag in the html because that way
> my code:
>
> def update(self):
> [..]
> data = self.request['myarg']
> [..]
>
> wil
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?
Dani
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 =
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 Z
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 documen
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. I
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
the templates renders without errors, but if i use
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
>
>
> the temp
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
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
|
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
> |
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, bu
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
__
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 dete
Am 15.03.2007 um 01:52 schrieb Christophe Combelles:
[...]
Is there a tool or a method to automatically clean or detect unused
imports ?
In your Zope3-Instance there should be a python script called
importchecker which can detect unused imports.
hth, mac
_
17 matches
Mail list logo