Re: [Gtg-user] [Weekly report] Week 1: Add Geolocalized tasks (geoclue, libchamplain) in Getting Things Gnome



Hi !

Good luck for implementing the plugin system. There will be a great
improvement for GTG.

About that, have you take a look at the imp module. Whit this imp and
pkgutils you can import any python file in your application so a plugin
can be a python file with a specific class in a plugin directory for the
user home.

This is a exemple which only import plugins, stock them in a dictionary
and get description :

import pkgutil
import imp

def list_plugins(plugin_path) :
    result = {}
    for loader, name, ispkg in pkgutil.iter_modules(plugin_path):
        file, pathname, desc = imp.find_module(name, plugin_path)
        result[name] = imp.load_module(name, file, pathname, desc)
    return result

for name, plugin in list_plugins().items() :
    print "file name :", name
    plugin_object = plugin.Main()
    print "Description :", plugin_object.description

Pititjo

PS : sorry to Paulo who probably receive this mail twice.


Le jeudi 04 juin 2009 à 22:32 +0100, Paulo Cabido a écrit :
> No problem, sorry all for the inconvenience. Here's the report. :-)
> 
> Here’s what I have done after the first official summer of code week…
> 
> First of all I created a wiki page[1] that concentrates all of the
> projects info and where you can follow my progress on the project
(this
> page is a work in progress).
> 
> An important part of my project is Geoclue and integrating it on GTG!.
I
> have dedicated some time to understand how Geoclue works and I made
some
> examples of how Geoclue can be used with Python/D-Bus.
> This led to the idea of creating a python-geoclue lib/module to
> facilitate the Geoclue integration on python projects.
> 
> The examples are available here[2].
> I’m thinking on creating a git branch to upload all my soc work.
> 
> We (me and Lionel) decided that this integration is best made as a
GTG!
> plug-in because there may be some users that don’t want to use such
> features and also GTG! will benefit from a plug-in system. So I’ll be
> implementing a plug-in system on GTG! and most of this weeks time was
> spent on research for the best way to implement a plug-in system,
> talking or trying to talk to developers who have implemented such
> systems.
> 
> For the next week/weeks the TODO list is:
> 
>       * Implement the plug-in system on GTG!
>       * Build the python-geoclue lib/module
>       * Finish the mockup
> 
> I also have to mention Bertrand Rousseau, the other GTG! developer,
who
> as always been available and helping.
> 
> Like other students my final exams and assignments discussions for the
> university have started and until mid June I’ll be dividing my time
with
> soc and the university.
> 
> Also, during the past week I received the debt card and already have
the
> 505 dollars there. I’m now thinking on the best way to get them into
my
> account (to Portugal in euros). If anyone has a good idea, please let
me
> know.
> 
> [1]http://live.gnome.org/gtg/soc/
> [2]http://www.paulocabido.com/soc/geoclue-examples/
> 
> Regards,
> Paulo
> 
> Qui, 2009-06-04 às 14:16 -0700, Sandy Armstrong escreveu:
> > On Thu, Jun 4, 2009 at 1:56 PM, Paulo Cabido
<paulo cabido gmail com> wrote:
> > > Hi,
> > >
> > > I have also written my first week report, I'll be writing my
reports and
> > > soc experiences on my blog (http://www.paulocabido.com).
> > >
> > > My report for week one is available here:
> > > http://www.paulocabido.com/gsoc/google-summer-of-code-week-1/
> > 
> > Hey Paulo,
> > 
> > Everybody needs to post their reports in email form on this list, so
> > if you prefer to do it in blog form, just copy/paste it into an
email
> > for us when you're done, please.  :-)
> > 
> > Thanks!
> > Sandy
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~gtg-user
> Post to     : gtg-user lists launchpad net
> Unsubscribe : https://launchpad.net/~gtg-user
> More help   : https://help.launchpad.net/ListHelp




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]