GeorgeYK | 2 Jun 2008 22:34
Picon

ANNOUNCE: kiwi 1.9.22

Kiwi is a PyGTK framework for building graphical applications loosely
based on MVC Model-View-Controller (MVC) and Allen Holub's Visual proxy
[1]. Think of Kiwi as a high-level, object-oriented layer built on
PyGTK.
Its design is based on real-world experience using PyGTK to develop
large desktop applications, which use many concepts common to most
graphical applications: multiple windows and dialogs, forms, data
persistence, lists and high-level classes that support domain objects
directly.

Download
========

Grab the latest sources from:

   http://www.async.com.br/projects/kiwi/download/kiwi-1.9.22.tar.gz

What's new since 1.9.21?
========================

     - Added support for context menus in objectlist (Ronaldo Maia)
     - Added support for SQLAlchemy (Ali Afshar, #3668)
     - Added the initial support for GtkColorButtton (Johan Dahlin)
     - Added support for buttons orientation in ListContainer
       (George Kussumoto)

Features
========

* An MVC-derived framework of classes:
(Continue reading)

buildbot | 5 Jun 2008 23:35
Picon

buildbot failure in kiwi

The Buildbot has detected a failed build of kiwi.
Full details are available at:
 http://buildbot.async.com.br/kiwi/builds/73

Buildbot URL: http://buildbot.async.com.br/

Buildslave for this Build: anthem-slave

Build Reason: 
Build Source Stamp: HEAD
Blamelist: jdahlin

BUILD FAILED: failed 1 test

sincerely,
 -The Buildbot

buildbot | 5 Jun 2008 23:36
Picon

buildbot failure in kiwi

The Buildbot has detected a failed build of kiwi.
Full details are available at:
 http://buildbot.async.com.br/kiwi/builds/74

Buildbot URL: http://buildbot.async.com.br/

Buildslave for this Build: anthem-slave

Build Reason: 
Build Source Stamp: HEAD
Blamelist: jdahlin

BUILD FAILED: failed 1 test

sincerely,
 -The Buildbot

buildbot | 9 Jun 2008 21:56
Picon

buildbot failure in kiwi-win32

The Buildbot has detected a failed build of kiwi-win32.
Full details are available at:
 http://buildbot.async.com.br/kiwi-win32/builds/50

Buildbot URL: http://buildbot.async.com.br/

Buildslave for this Build: scooby-slave

Build Reason: 
Build Source Stamp: HEAD
Blamelist: george,jdahlin,romaia

BUILD FAILED: failed 1 test

sincerely,
 -The Buildbot

Bruno Gomes | 12 Jun 2008 19:29
Picon

Re: Objectlist with Column validate

Hi Johan and Christian,

I tried to do it as you suggested but it doesn't seem to work. So,
I've been using a patch on objectlist in my local application but I
wish I didn't have to update the patch at every new version of Kiwi,
so I'd appreciate it if you told me how I could do it using a class.

on objectlist.py at line 256 "from_string" get new value
            self.from_string = conv.from_string

I also think that at __init__ of the class Columm at line 206 the
value "None" overwrites the "from_string" of the personalized class
CurrencyColumn
        self.from_string = None

2008/2/20 Johan Dahlin <jdahlin <at> gmail.com>:
> Bruno Gomes wrote:
>>
>> Hi Johan and Christian,
>>
>> 2008/2/12, Christian Robottom Reis <kiko <at> async.com.br>:
>>>
>>> On Tue, Feb 12, 2008 at 10:09:43AM -0800, Bruno Gomes wrote:
>>>>
>>>> it's the first idea of implementation it
>>>
>>> What is this patch intended to do?
>>
>> I need to intercep input with validation errors in model, but the
>> Objectlist doesn't have it.
(Continue reading)

Christian Robottom Reis | 12 Jun 2008 19:47
Picon
Gravatar

Re: Objectlist with Column validate

On Thu, Jun 12, 2008 at 02:29:53PM -0300, Bruno Gomes wrote:
> on objectlist.py at line 256 "from_string" get new value
>             self.from_string = conv.from_string
> 
> I also think that at __init__ of the class Columm at line 206 the
> value "None" overwrites the "from_string" of the personalized class
> CurrencyColumn
>         self.from_string = None

Arguably that's a bug and you could report it if you want it fixed. One
thing you can probably do is just override __init__ and set it manually:

    class CurrencyColumn(Column):

     default_value = '0.0'

    def __init__(self, *args, **kwargs):
        Column.__init__(self, *args, **kwargs)
        self.from_string = self.convert_currency_from_string

     def convert_currency_from_string(self, data):
       try:
          return(currency(value))
       except:
          return(currency(CurrencyColumn.default_value))

Or something like that.
--

-- 
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3376 0125
(Continue reading)

Bruno Gomes | 12 Jun 2008 20:05
Picon

Re: Objectlist with Column validate

Christian,
Overriding the init wouldn't work since there is another point at
which the "from_string" is renewed without prior check on whether it
has already been set as I mentioned in my previous e-mail, at line 256
of objectlist.py. It would be necessary at this point to undergo a
verification whether it's other than "None". I'm not sure, though, if
this is the right way to do it.

2008/6/12 Christian Robottom Reis <kiko <at> async.com.br>:
> On Thu, Jun 12, 2008 at 02:29:53PM -0300, Bruno Gomes wrote:
>> on objectlist.py at line 256 "from_string" get new value
>>             self.from_string = conv.from_string
>>
>> I also think that at __init__ of the class Columm at line 206 the
>> value "None" overwrites the "from_string" of the personalized class
>> CurrencyColumn
>>         self.from_string = None
>
> Arguably that's a bug and you could report it if you want it fixed. One
> thing you can probably do is just override __init__ and set it manually:
>
>
>    class CurrencyColumn(Column):
>
>     default_value = '0.0'
>
>
>    def __init__(self, *args, **kwargs):
>        Column.__init__(self, *args, **kwargs)
>        self.from_string = self.convert_currency_from_string
(Continue reading)

Christian Robottom Reis | 12 Jun 2008 20:13
Picon
Gravatar

Re: Objectlist with Column validate

On Thu, Jun 12, 2008 at 03:05:29PM -0300, Bruno Gomes wrote:
> Overriding the init wouldn't work since there is another point at
> which the "from_string" is renewed without prior check on whether it
> has already been set as I mentioned in my previous e-mail, at line 256

Okay, that'll teach me to not look at the code before replying :-)

Have you considered registering your own converter? Take a look at
kiwi.datatypes:ConverterRegistry, which is a registry of all the
converters in the system. It might be as easy as doing:

    from kiwi.datatypes import converter
    converter.add(conv)

if your converter inherits from BaseConverter..
--

-- 
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3376 0125
Bruno Gomes | 12 Jun 2008 20:27
Picon

Re: Objectlist with Column validate

Christian,
I don't know that part of kiwi's code so well but I was thinking of
starting to have a good look at it, so, I decided to ask at the mail
list before so that I could be sure of what path to follow.
I'll get back and bother you again in case I have any trouble.
Thanks so much!

2008/6/12 Christian Robottom Reis <kiko <at> async.com.br>:
> On Thu, Jun 12, 2008 at 03:05:29PM -0300, Bruno Gomes wrote:
>> Overriding the init wouldn't work since there is another point at
>> which the "from_string" is renewed without prior check on whether it
>> has already been set as I mentioned in my previous e-mail, at line 256
>
> Okay, that'll teach me to not look at the code before replying :-)
>
> Have you considered registering your own converter? Take a look at
> kiwi.datatypes:ConverterRegistry, which is a registry of all the
> converters in the system. It might be as easy as doing:
>
>    from kiwi.datatypes import converter
>    converter.add(conv)
>
> if your converter inherits from BaseConverter..
> --
> Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3376 0125
>

--

-- 
Bruno Gomes
(Continue reading)

bugzilla-daemon | 18 Jun 2008 15:06
Picon

[Bug 3753] New: Objectlist multiple cell support is broken and ill-thought-out

http://bugs.async.com.br/show_bug.cgi?id=3753

           Summary: Objectlist multiple cell support is broken and ill-
                    thought-out
           Product: Kiwi
           Version: SVN trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: (unset)
          Priority: (unset)
         Component: ObjectList
        AssignedTo: jdahlin <at> async.com.br
        ReportedBy: aafshar <at> gmail.com
         QAContact: kiwi <at> async.com.br
   Estimated Hours: 0.0

Created an attachment (id=4779)
 --> (http://bugs.async.com.br/attachment.cgi?id=4779)
Example patch to fix expand issues, but it could be better

For example the expand attribute on a cell renderer ignores the Column's expand
property.

Seems that the multiple cell support was not reviewed, because there is no way
it should just be hacked on like that. If only review for internal patches was
as rigorous as review of internal patches.

I have attached a patch for a fix to the small issues, but I would suggest
cell_* properties for columns, such as cell_align, cell_expand etc.
(Continue reading)


Gmane