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
___
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
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 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
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?
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
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
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 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
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
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,
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 detect
18 matches
Mail list logo