bugzilla-daemon | 8 Feb 2011 20:30
Picon

[Bug 4279] New: 'TypeError: Error when calling the metaclass bases' when importing 'kiwi.utils'

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

           Summary: 'TypeError: Error when calling the metaclass bases'
                    when importing 'kiwi.utils'
           Product: Kiwi
           Version: 1.9.26
          Platform: PC
               URL: https://bugs.launchpad.net/ubuntu/+source/lottanzb/+bu
                    g/713843
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: (unset)
         Component: Framework
        AssignedTo: jdahlin <at> async.com.br
        ReportedBy: severinheiniger <at> gmail.com
         QAContact: kiwi <at> async.com.br
   Estimated Hours: 0.0

On Ubuntu 11.04 with the latest updates applied, trying to import 'kiwi.utils'
fails with the traceback:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "kiwi/utils.py", line 78, in <module>
    class _GobjectClassInittableObject(object):
  File "kiwi/utils.py", line 75, in __init__
    metabase.__init__(self, name, bases, namespace)
  File "/usr/lib/pymodules/python2.7/gobject/__init__.py", line 60, in __init__
    cls._type_register(cls.__dict__)
(Continue reading)

bugzilla-daemon | 14 Feb 2011 17:27
Picon

[Bug 4292] Use locale.currency()

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

Johan Dahlin (not reading bugmail) <jdahlin <at> async.com.br> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #5508|                            |review?(romaia <at> async.com.br
               Flag|                            |)

--- Comment #1 from Johan Dahlin (not reading bugmail) <jdahlin <at> async.com.br>  2011-02-14 14:27:17 BRT ---
Created an attachment (id=5508)
 --> (http://bugs.async.com.br/attachment.cgi?id=5508)
v1

--

-- 
Configure bugmail: http://bugs.async.com.br/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
bugzilla-daemon | 14 Feb 2011 17:24
Picon

[Bug 4292] New: Use locale.currency()

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

           Summary: Use locale.currency()
           Product: Kiwi
           Version: SVN trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: (unset)
          Priority: (unset)
         Component: Framework
        AssignedTo: jdahlin <at> async.com.br
        ReportedBy: jdahlin <at> async.com.br
         QAContact: kiwi <at> async.com.br
   Estimated Hours: 0.0

Use locale.currency() instead of our homegrown currency converter.

Python 2.5 introduced locale.currency() which is exactly what we need.
The builtin Python version does not allow to run without a locale set,
so remove the 'C' locale tests which are useless anyway.

--

-- 
Configure bugmail: http://bugs.async.com.br/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
bugzilla-daemon | 14 Feb 2011 17:43
Picon

[Bug 4292] Use locale.currency()

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

Silvio Rangel <silvio <at> async.com.br> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |silvio <at> async.com.br
             Blocks|                            |4293

--

-- 
Configure bugmail: http://bugs.async.com.br/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
bugzilla-daemon | 15 Feb 2011 14:58
Picon

[Bug 4026] Proxy Widgets does not display correctly if invalid.

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

Ronaldo Maia <romaia <at> async.com.br> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--

-- 
Configure bugmail: http://bugs.async.com.br/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
bugzilla-daemon | 15 Feb 2011 15:00
Picon

[Bug 4299] New: Remove IconEntry

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

           Summary: Remove IconEntry
           Product: Kiwi
           Version: SVN trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: (unset)
          Priority: (unset)
         Component: Widgets
        AssignedTo: jdahlin <at> async.com.br
        ReportedBy: romaia <at> async.com.br
         QAContact: kiwi <at> async.com.br
            Blocks: 4293
   Estimated Hours: 0.0

Ronaldo Maia <romaia <at> async.com.br> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #5510|                            |review?(jdahlin <at> async.com.b
               Flag|                            |r)

Created an attachment (id=5510)
 --> (http://bugs.async.com.br/attachment.cgi?id=5510)
v1 - romaia

Now that gtk offers an api to show icons in Entry widgets, we no longer need
IconEtry hacks.
(Continue reading)

bugzilla-daemon | 15 Feb 2011 15:37
Picon

[Bug 4299] Remove IconEntry

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

--- Comment #1 from Johan Dahlin (not reading bugmail) <jdahlin <at> async.com.br>  2011-02-15 12:37:03 BRT ---
(From update of attachment 5510)
>=== modified file 'kiwi/ui/entry.py'

>-    if HAVE_2_6:

Can you kill the HAVE_2_6 define above as well?
[and perhaps check if any imports can go]

>+    def _update_position(self):
>+        if self.get_property('xalign') > 0.5:
>+            self._icon_pos = gtk.POS_LEFT
>+        else:
>+            self._icon_pos = gtk.POS_RIGHT

Not that we currently care too much, but what about text right-to-left?

>+    def _on_notify_xalign(self, entry, pspec):
>+        self._update_position()

>     def set_tooltip(self, text):
>-        self._icon.set_tooltip(text)
>+        icon = 'primary-icon-tooltip-text'
>+        if self._icon_pos == gtk.POS_RIGHT:
>+            icon = 'secondary-icon-tooltip-text'

Guess an else is easier to follow here.

(Continue reading)

bugzilla-daemon | 15 Feb 2011 16:24
Picon

[Bug 4299] Remove IconEntry

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

--- Comment #2 from Ronaldo Maia <romaia <at> async.com.br>  2011-02-15 13:24:06 BRT ---
(In reply to comment #1)
> Can you kill the HAVE_2_6 define above as well?
> [and perhaps check if any imports can go]

done

> 
> >+    def _update_position(self):
> >+        if self.get_property('xalign') > 0.5:
> >+            self._icon_pos = gtk.POS_LEFT
> >+        else:
> >+            self._icon_pos = gtk.POS_RIGHT
> 
> Not that we currently care too much, but what about text right-to-left?

what about:

if RTL:
   self._icon_pos = [gtk.POS_RIGHT, gtk.POS_LEFT][self._icon_pos]

> Guess an else is easier to follow here.
> Ditto.

Fixed 

> I think you can just kill this of get_background() and do this at the
> get_background() callsite, which should only be one right?
(Continue reading)

bugzilla-daemon | 15 Feb 2011 18:52
Picon

[Bug 4299] Remove IconEntry

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

--- Comment #3 from Johan Dahlin (not reading bugmail) <jdahlin <at> async.com.br>  2011-02-15 15:52:24 BRT ---
(In reply to comment #2)
> (In reply to comment #1)
> > Can you kill the HAVE_2_6 define above as well?
> > [and perhaps check if any imports can go]
> 
> done
> 
> > 
> > >+    def _update_position(self):
> > >+        if self.get_property('xalign') > 0.5:
> > >+            self._icon_pos = gtk.POS_LEFT
> > >+        else:
> > >+            self._icon_pos = gtk.POS_RIGHT
> > 
> > Not that we currently care too much, but what about text right-to-left?
> 
> what about:
> 
> if RTL:
>    self._icon_pos = [gtk.POS_RIGHT, gtk.POS_LEFT][self._icon_pos]

Yuk! That'd give you a price for great obfuscation skills.

What's wrong with the dead simple:

if RTL:
  if self._icon_pos == gtk.POS_LEFT:
(Continue reading)

bugzilla-daemon | 18 Feb 2011 17:22
Picon

[Bug 4299] Remove IconEntry

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

Ronaldo Maia <romaia <at> async.com.br> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #5510|review?(jdahlin <at> async.com.b |
               Flag|r)                          |

--

-- 
Configure bugmail: http://bugs.async.com.br/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Gmane