From janripke at gmail.com Fri Aug 18 00:25:49 2006 From: janripke at gmail.com (Jan Ripke) Date: Fri, 18 Aug 2006 00:25:49 +0200 Subject: [python-nl] Building a plugin enable application Message-ID: <9123436d0608171525r3f3e342an218d7f68b8de1c7d@mail.gmail.com> Hi, Where can i find documentation and or (simple) examples on how to build a plugin enabled engine, wriiten in Python, which can incorporate Python plugin code. Thanks Jan -- See my personal page for more info; http://insignis.xs4all.nl/openform.php?formname=home.jan For more information about our Open Source Projects, see: http://insignis.xs4all.nl/openform.php?formname=projects http://sourceforge.net/projects/imotion http://sourceforge.net/projects/openerp From mj at python.org Fri Aug 18 10:39:23 2006 From: mj at python.org (Martijn Pieters) Date: Fri, 18 Aug 2006 10:39:23 +0200 Subject: [python-nl] Building a plugin enable application In-Reply-To: <9123436d0608171525r3f3e342an218d7f68b8de1c7d@mail.gmail.com> References: <9123436d0608171525r3f3e342an218d7f68b8de1c7d@mail.gmail.com> Message-ID: <44E57CBB.2080603@python.org> Jan Ripke wrote: > Where can i find documentation and or (simple) examples on how to > build a plugin enabled engine, wriiten in Python, which can > incorporate Python plugin code. We praten over het algemeen gewoon Nederlands op de Python-NL lijst.. :) Ik zou op de Python Package Index (PyPI) kijken: http://cheeseshop.python.org/pypi Daar zoeken op 'plugin' levert o.a. op: PlugBoard 0.2 An application framework to create plugin-based applications http://cheeseshop.python.org/pypi/PlugBoard/0.2 Echter, Python's introspectie en flexibiliteit maken het erg makkelijk om zelf een plugin systeem te maken. PyMP'd, bijvoorbeeld, heeft zijn eigen code hiervoor: http://svn.sourceforge.net/viewvc/pympd/trunk/pympd/src/modules/pympdriver.py?revision=203&view=markup#l_2622 Quod Libet/Ex Falso net zo: http://www.sacredchao.net/quodlibet/browser/trunk/quodlibet/plugins/__init__.py HHD (Hopelijk Help Dit), Martijn Pieters From a.molenaar at yirdis.nl Mon Aug 21 05:52:35 2006 From: a.molenaar at yirdis.nl (Arjan Molenaar) Date: Mon, 21 Aug 2006 05:52:35 +0200 Subject: [python-nl] Building a plugin enable application In-Reply-To: <44E57CBB.2080603@python.org> References: <9123436d0608171525r3f3e342an218d7f68b8de1c7d@mail.gmail.com> <44E57CBB.2080603@python.org> Message-ID: <20060821055235.r3tqa9djkgc00css@server> Martijn Pieters wrote: > Jan Ripke wrote: >> Where can i find documentation and or (simple) examples on how to >> build a plugin enabled engine, wriiten in Python, which can >> incorporate Python plugin code. > > We praten over het algemeen gewoon Nederlands op de Python-NL lijst.. :) > > Ik zou op de Python Package Index (PyPI) kijken: > > http://cheeseshop.python.org/pypi > > Daar zoeken op 'plugin' levert o.a. op: > > PlugBoard 0.2 > An application framework to create plugin-based applications > http://cheeseshop.python.org/pypi/PlugBoard/0.2 > > Echter, Python's introspectie en flexibiliteit maken het erg makkelijk > om zelf een plugin systeem te maken. PyMP'd, bijvoorbeeld, heeft zijn > eigen code hiervoor: > > http://svn.sourceforge.net/viewvc/pympd/trunk/pympd/src/modules/pympdriver.py?revision=203&view=markup#l_2622 > > Quod Libet/Ex Falso net zo: > > http://www.sacredchao.net/quodlibet/browser/trunk/quodlibet/plugins/__init__.py Gaphor heeft er eentje welke losjes geinspireerd is op Eclipse (met xml file enzo): http://svn.sourceforge.net/viewvc/gaphor/gaphor/trunk/gaphor/pluginmanager.py?revision=913&view=markup gr. Arjan > > HHD (Hopelijk Help Dit), > > Martijn Pieters > _______________________________________________ > Python-nl mailing list > Python-nl at python.org > http://mail.python.org/mailman/listinfo/python-nl > From winfried at tilanus.com Thu Aug 24 10:15:15 2006 From: winfried at tilanus.com (Winfried Tilanus) Date: Thu, 24 Aug 2006 10:15:15 +0200 Subject: [python-nl] Building a plugin enable application In-Reply-To: <20060821055235.r3tqa9djkgc00css@server> References: <9123436d0608171525r3f3e342an218d7f68b8de1c7d@mail.gmail.com> <44E57CBB.2080603@python.org> <20060821055235.r3tqa9djkgc00css@server> Message-ID: <44ED6013.5070508@tilanus.com> On 08/21/2006 Arjan Molenaar wrote: > Gaphor heeft er eentje welke losjes geinspireerd is op Eclipse (met > xml file enzo): En als dat een overkill is: de meest basis functie hiervoor is __import__() Mijn werk drijft op varianten op deze code: for job in settings['jobs']: mod = __import__(job) mod.job() Er van uitgaande dat settings['jobs'] een lijst met paden naar de plugins bevat en dat elke plugin een functie job heeft. groet, Winfried -- http://www.tilanus.com jid:winfried at jabber.xs4all.nl tel. 015-3613996 / 06-23303960 fax. 015-3614406 From janripke at gmail.com Wed Aug 30 23:18:50 2006 From: janripke at gmail.com (Jan Ripke) Date: Wed, 30 Aug 2006 23:18:50 +0200 Subject: [python-nl] pyGtk en het ListStore object Message-ID: <9123436d0608301418s407fefdcm784c819670a1f8e3@mail.gmail.com> Hoi, Om data te kunnen opnemen in een Treeview object wordt een ListStore object met bijvoorbeeld de 4 argumenten int,str,str,str meegegeven die de data kolommen representeren die je wil laden. self.liststore = gtk.ListStore(int,str,str,str) Na veel zoeken ben ik er niet achter gekomen hoe je nadat het object is aangemaakt een kolom aan deze set kan toevoegen, of hoe je via code het aantal kolommen dynamisch kan aanmaken. Ik wil namelijk de inhoud van een willekeurige tabel in de liststore zetten en weet van te voren niet uit hoeveel kolommen deze zal bestaan, oftewel het aantal kolommen zal varieren per tabel. Weten jullie misschien hoe ik dit kan aanpakken of oplossen? Jan -- See my personal page for more info; http://insignis.xs4all.nl/openform.php?formname=home.jan For more information about our Open Source Projects, see: http://insignis.xs4all.nl/openform.php?formname=projects http://sourceforge.net/projects/imotion http://sourceforge.net/projects/openerp