Archive for the ‘Canola’ Category

Canola 2 Beta 1 is finally out!

December 20, 2007

Hey, finally Canola 2 Beta 1 is out! It’s been a tough time hacking from infrastructure part up to application itself to make everything work. I hope you all have good times using it and please report to us any bugs so we can make it even better. Let the new era of Canola 2 begin! ;-)

Wrapped GObjects and subclasses in Python

August 28, 2007

If you are using h2def.py/codegen.py to generate Python wrappers for your GObjects do pay attention to these messages:

Warning: Constructor for <your GObject here> needs to be updated to new API.
              See http://live.gnome.org/PyGTK_2fWhatsNew28#update-constructors

That has the consequence that you’ll have problems subclassing the wrapped objects. That page doesn’t exist but you can see the explanation and how to solve it here.

Class variables and Python wrappers for GObjects

August 21, 2007

So I was generating Python wrappers for some GObjects in C with h2def.py/codegen.py/scanvirtuals.py and I wanted to access a class variable in my classes (if you don’t know the difference between class and instance variables in Python, read the programmer’s note on this page). However, I couldn’t find an easy way of doing this until I found this function:

pyg_register_class_init(GType, PyGClassInitFunc)

It can add a function to be called when the class for that GType is initialized. That solved my problem because I only had to register a class init function for my base class. This function verifies if my python class has a specific variable and just uses it if it has or raises an exception if it doesn’t. Simple and to the point but if someone has a better way of doing this, just post a comment, please. :-)

Starting over

August 19, 2007

After a long time with nothing new here I’ll try to post something at least once a month (I hope I can do it :-).

Now let me say a few words about what has happened in the first half of 2007. After being directly involved with BlueZ and CarMan development I went to Germany for three months to do a consulting work on Maemo and embedded Linux in general. Overall, it was a nice experience but I’m really glad to be back in Brazil among my friends and relatives.

I’m back in Brazil for over a month now and I’m working on the new version of Canola with the rest of the team. I’m working in the infrastructure of this new Canola in Python and also in the low-level integration of CarMan (see this post from Marcelo). I’ll try to post later some of the glitches and things I’ve been working on lately. Stay tuned, because we’re working hard to make this new Canola rock even more! :-)