[Gnome-zeitgeist] [Bug 705545] Re: gstreamer0.10-plugins-base dependency?
You want to say that when you hover the mouse over the video, the video doesn't run or GAJ doesn't start at all? -- You received this bug notification because you are a member of GNOME Zeitgeist Team, which is the registrant for GNOME Activity Journal. https://bugs.launchpad.net/bugs/705545 Title: gstreamer0.10-plugins-base dependency? Status in GNOME Activity Journal: New Bug description: gnome-activity-journal 0.5.0.1-0ubuntu1 i installed, went to run it and I was getting playbin errors. After looking around i installed gstreamer0.10-plugins-base. dpkg -S playbin gstreamer0.10-plugins-base: /usr/lib/gstreamer-0.10/libgstplaybin.so but its not a gaj dependency, shouldn't it be? also is it not possible to use assigned mime to get thumbnails or whatever. i don't like gstreamer and use my own ffmpegthumbs solution. that would be pretty nice. ___ Mailing list: https://launchpad.net/~gnome-zeitgeist Post to : gnome-zeitgeist@lists.launchpad.net Unsubscribe : https://launchpad.net/~gnome-zeitgeist More help : https://help.launchpad.net/ListHelp
Re: [Zeitgeist] [Merge] lp:~federico-gnome/zeitgeist/fixes into lp:zeitgeist
sounds good to me +1 Mikkel you can change that in trunk directly then :) On Thu, Jan 20, 2011 at 8:07 AM, Mikkel Kamstrup Erlandsen mikkel.kamst...@gmail.com wrote: Maybe we can replace the check for rdfpipe with something ala: python -c import rdflib if [ $? != 0 ]; then echo You need the Python module 'rdflib' in order to compile Zeitgeist exit 1 fi -- https://code.launchpad.net/~federico-gnome/zeitgeist/fixes/+merge/46803 You are subscribed to branch lp:zeitgeist. -- This is me doing some advertisement for my blog http://seilo.geekyogre.com https://code.launchpad.net/~federico-gnome/zeitgeist/fixes/+merge/46803 Your team Zeitgeist Framework Team is requested to review the proposed merge of lp:~federico-gnome/zeitgeist/fixes into lp:zeitgeist. ___ Mailing list: https://launchpad.net/~zeitgeist Post to : zeitgeist@lists.launchpad.net Unsubscribe : https://launchpad.net/~zeitgeist More help : https://help.launchpad.net/ListHelp
[Zeitgeist] [Bug 704931] Re: Publish property names, accesslevel and type in introspection data
I *feel* that our solution could look much simpler than the one from aptdaemon, Let me just try and see how this can be implemented, we can mark this bug as won't fix laterone if it turns out to be too complex, slow or hackish compared to the gain. -- You received this bug notification because you are a member of Zeitgeist Framework Team, which is subscribed to Zeitgeist Framework. https://bugs.launchpad.net/bugs/704931 Title: Publish property names, accesslevel and type in introspection data Status in Zeitgeist Framework: New Bug description: Our .Log dbus interface has two properties, version and extensions. It would be great if we could publish their existence in the introspect xml data. [0] is one example of how this can be achieved in python. [0] http://bazaar.launchpad.net/~aptdaemon- developers/aptdaemon/main/view/head:/aptdaemon/core.py#L150 ___ Mailing list: https://launchpad.net/~zeitgeist Post to : zeitgeist@lists.launchpad.net Unsubscribe : https://launchpad.net/~zeitgeist More help : https://help.launchpad.net/ListHelp
[Zeitgeist] [Merge] lp:~thekorn/zeitgeist/dbus-inspect-properties into lp:zeitgeist
Markus Korn has proposed merging lp:~thekorn/zeitgeist/dbus-inspect-properties into lp:zeitgeist. Requested reviews: Zeitgeist Framework Team (zeitgeist) For more details, see: https://code.launchpad.net/~thekorn/zeitgeist/dbus-inspect-properties/+merge/46890 * Changed dbus introspection output to show information about properties (LP: #704931). * raise a ValueError if the property methods are called on an unknown interface. -- https://code.launchpad.net/~thekorn/zeitgeist/dbus-inspect-properties/+merge/46890 Your team Zeitgeist Framework Team is requested to review the proposed merge of lp:~thekorn/zeitgeist/dbus-inspect-properties into lp:zeitgeist. === modified file '_zeitgeist/engine/remote.py' --- _zeitgeist/engine/remote.py 2011-01-18 10:49:04 + +++ _zeitgeist/engine/remote.py 2011-01-20 11:21:12 + @@ -5,6 +5,7 @@ # Copyright © 2009-2010 Siegfried-Angel Gevatter Pujals rai...@ubuntu.com # Copyright © 2009 Mikkel Kamstrup Erlandsen mikkel.kamst...@gmail.com # Copyright © 2010 Seif Lotfy s...@lotfy.com +# Copyright © 2011 Markus Korn thek...@gmx.de # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by @@ -23,6 +24,8 @@ import dbus.service import logging +from xml.etree import ElementTree + from zeitgeist.datamodel import TimeRange, StorageState, ResultType, NULL_EVENT from _zeitgeist.engine.datamodel import Event, Subject from _zeitgeist.engine import get_engine @@ -30,6 +33,18 @@ from _zeitgeist.engine import constants from _zeitgeist.singleton import SingletonApplication +class DBUSProperty(property): + + def __init__(self, fget=None, fset=None, in_signature=None, out_signature=None): + assert not (fget and not out_signature), fget needs a dbus signature + assert not (fset and not in_signature), fset needs a dbus signature + assert (fget and not fset) or (fset and fget), \ + dbus properties needs to be either readonly or readwritable + self.in_signature = in_signature + self.out_signature = out_signature + super(DBUSProperty, self).__init__(fget, fset) + + class RemoteInterface(SingletonApplication): Primary interface to the Zeitgeist engine. Used to update and query @@ -42,8 +57,8 @@ :const:`org.gnome.zeitgeist.Engine`. _dbus_properties = { - version: property(lambda self: (0, 7, 0)), - extensions: property(lambda self: list(self._engine.extensions.iter_names())), + version: DBUSProperty(lambda self: (0, 7, 0), out_signature=iii), + extensions: DBUSProperty(lambda self: list(self._engine.extensions.iter_names()), out_signature=as), } # Initialization @@ -357,6 +372,11 @@ @dbus.service.method(dbus_interface=dbus.PROPERTIES_IFACE, in_signature=ss, out_signature=v) def Get(self, interface_name, property_name): + if interface_name != constants.DBUS_INTERFACE: + raise ValueError( +'%s' doesn't know anything about the '%s' interface \ +%(constants.DBUS_INTERFACE, interface_name) + ) try: return self._dbus_properties[property_name].fget(self) except KeyError, e: @@ -365,6 +385,11 @@ @dbus.service.method(dbus_interface=dbus.PROPERTIES_IFACE, in_signature=ssv, out_signature=) def Set(self, interface_name, property_name, value): + if interface_name != constants.DBUS_INTERFACE: + raise ValueError( +'%s' doesn't know anything about the '%s' interface \ +%(constants.DBUS_INTERFACE, interface_name) + ) try: prop = self._dbus_properties[property_name].fset(self, value) except (KeyError, TypeError), e: @@ -373,7 +398,32 @@ @dbus.service.method(dbus_interface=dbus.PROPERTIES_IFACE, in_signature=s, out_signature=a{sv}) def GetAll(self, interface_name): + if interface_name != constants.DBUS_INTERFACE: + raise ValueError( +'%s' doesn't know anything about the '%s' interface \ +%(constants.DBUS_INTERFACE, interface_name) + ) return dict((k, v.fget(self)) for (k,v) in self._dbus_properties.items()) + + # Instrospection Interface + + @dbus.service.method(dbus.INTROSPECTABLE_IFACE, in_signature=, out_signature=s, + path_keyword=object_path, connection_keyword=connection) + def Introspect(self, object_path, connection): + data = dbus.service.Object.Introspect(self, object_path, connection) + xml = ElementTree.fromstring(data) + for iface in xml.findall(interface): + if iface.attrib[name] != constants.DBUS_INTERFACE: +continue + for prop_name, prop_func in self._dbus_properties.iteritems(): +prop = {name: prop_name} +if prop_func.fset is not None: + prop[access] = readwrite +else: + prop[access] = read +prop[type] = prop_func.out_signature +iface.append(ElementTree.Element(property, prop)) + return ElementTree.tostring(xml, encoding=UTF-8) # Notifications interface ___ Mailing list: https://launchpad.net/~zeitgeist Post to : zeitgeist@lists.launchpad.net
[Zeitgeist] [Bug 704931] Re: Publish property names, accesslevel and type in introspection data
** Branch linked: lp:~thekorn/zeitgeist/dbus-inspect-properties ** Changed in: zeitgeist Status: New = In Progress -- You received this bug notification because you are a member of Zeitgeist Framework Team, which is subscribed to Zeitgeist Framework. https://bugs.launchpad.net/bugs/704931 Title: Publish property names, accesslevel and type in introspection data Status in Zeitgeist Framework: In Progress Bug description: Our .Log dbus interface has two properties, version and extensions. It would be great if we could publish their existence in the introspect xml data. [0] is one example of how this can be achieved in python. [0] http://bazaar.launchpad.net/~aptdaemon- developers/aptdaemon/main/view/head:/aptdaemon/core.py#L150 ___ Mailing list: https://launchpad.net/~zeitgeist Post to : zeitgeist@lists.launchpad.net Unsubscribe : https://launchpad.net/~zeitgeist More help : https://help.launchpad.net/ListHelp
Re: [Zeitgeist] [Merge] lp:~thekorn/zeitgeist/dbus-inspect-properties into lp:zeitgeist
I'm going to change this branch such that we only use one xml parser, minidom or etree, thanks Mikkel for pointing this out. -- https://code.launchpad.net/~thekorn/zeitgeist/dbus-inspect-properties/+merge/46890 Your team Zeitgeist Framework Team is requested to review the proposed merge of lp:~thekorn/zeitgeist/dbus-inspect-properties into lp:zeitgeist. ___ Mailing list: https://launchpad.net/~zeitgeist Post to : zeitgeist@lists.launchpad.net Unsubscribe : https://launchpad.net/~zeitgeist More help : https://help.launchpad.net/ListHelp
[Zeitgeist] [Merge] lp:~federico-gnome/zeitgeist/fixes into lp:zeitgeist
Federico Mena Quintero has proposed merging lp:~federico-gnome/zeitgeist/fixes into lp:zeitgeist. Requested reviews: Zeitgeist Framework Team (zeitgeist) For more details, see: https://code.launchpad.net/~federico-gnome/zeitgeist/fixes/+merge/46950 Instead of checking for rdfpipe(1), we now check for the rdflib module from python. -- https://code.launchpad.net/~federico-gnome/zeitgeist/fixes/+merge/46950 Your team Zeitgeist Framework Team is requested to review the proposed merge of lp:~federico-gnome/zeitgeist/fixes into lp:zeitgeist. === modified file 'configure.ac' --- configure.ac 2011-01-18 10:49:04 + +++ configure.ac 2011-01-20 18:39:08 + @@ -37,10 +37,13 @@ AC_MSG_ERROR(You need the tool `rapper' from the `raptor-utils' package in order to compile Zeitgeist) fi -# check for rdflib -AC_CHECK_PROG(HAVE_RDFLIB, rdfpipe, yes, no) -if test x$HAVE_RDFLIB = xno; then - AC_MSG_ERROR(You need the tool `rdfpipe' from the `python-rdflib' package in order to compile Zeitgeist) +# check for python-rdflib +AC_MSG_CHECKING([for python-rdflib]) +echo import rdflib | python - 2/dev/null +if test $? -ne 0 ; then + AC_MSG_FAILURE([failed. Please install the python-rdflib package.]) +else + AC_MSG_RESULT([yes]) fi AC_OUTPUT ___ Mailing list: https://launchpad.net/~zeitgeist Post to : zeitgeist@lists.launchpad.net Unsubscribe : https://launchpad.net/~zeitgeist More help : https://help.launchpad.net/ListHelp
Re: [Zeitgeist] [Merge] lp:~federico-gnome/zeitgeist/fixes into lp:zeitgeist
OK, I added the necessary autofoo to do a similar check. Can someone please check it? :) -- https://code.launchpad.net/~federico-gnome/zeitgeist/fixes/+merge/46950 Your team Zeitgeist Framework Team is requested to review the proposed merge of lp:~federico-gnome/zeitgeist/fixes into lp:zeitgeist. ___ Mailing list: https://launchpad.net/~zeitgeist Post to : zeitgeist@lists.launchpad.net Unsubscribe : https://launchpad.net/~zeitgeist More help : https://help.launchpad.net/ListHelp