[Gnome-zeitgeist] [Bug 599138] Re: GAJ Not Launching - ERROR:dbus.connection:Unable to set arguments

2010-09-25 Thread Anton
brx75's work around doesn't work for me too... (((

-- 
GAJ Not Launching - ERROR:dbus.connection:Unable to set arguments
https://bugs.launchpad.net/bugs/599138
You received this bug notification because you are a member of GNOME
Zeitgeist Team, which is the registrant for GNOME Activity Journal.

Status in GNOME Activity Journal: Triaged

Bug description:
Ubuntu Lucid 10.4
GAJ 0.3.4.1+bzr20100619

GAJ is no longer launching, instead I get the following error;

$ gnome-activity-journal 
ERROR:dbus.connection:Unable to set arguments (1277506800, 1277593199) 
according to signature u'uus': type 'exceptions.TypeError': More items found 
in D-Bus signature than in Python arguments
Traceback (most recent call last):
  File /usr/bin/gnome-activity-journal, line 99, in module
from src.main import PortalWindow
  File /usr/share/gnome-activity-journal/src/main.py, line 30, in module
from activity_widgets import MultiViewContainer, TimelineViewContainer, 
ThumbViewContainer, PinnedPane
  File /usr/share/gnome-activity-journal/src/activity_widgets.py, line 34, in 
module
from store import ContentStruct, CLIENT
  File /usr/share/gnome-activity-journal/src/store.py, line 471, in module
STORE = Store()
  File /usr/share/gnome-activity-journal/src/store.py, line 351, in __init__
day = Day(date)
  File /usr/share/gnome-activity-journal/src/store.py, line 186, in __init__
facts = external.HAMSTER.get_facts(self.start, self.end)
  File /usr/share/gnome-activity-journal/src/external.py, line 259, in 
get_facts
return map(self.Fact, self.iface.GetFacts(start, end))
  File /usr/lib/pymodules/python2.6/dbus/proxies.py, line 68, in __call__
return self._proxy_method(*args, **keywords)
  File /usr/lib/pymodules/python2.6/dbus/proxies.py, line 140, in __call__
**keywords)
  File /usr/lib/pymodules/python2.6/dbus/connection.py, line 610, in 
call_blocking
message.append(signature=signature, *args)
TypeError: More items found in D-Bus signature than in Python arguments



___
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


[Zeitgeist] [Bug 646724] Re: not all files show up in files-place

2010-09-25 Thread Launchpad Bug Tracker
** Branch linked: lp:zeitgeist

-- 
not all files show up in files-place
https://bugs.launchpad.net/bugs/646724
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.

Status in Unity: Triaged
Status in Unity Files Place: Triaged
Status in Zeitgeist Data-Sources: In Progress

Bug description:
The Unity interface, with its files-place feature for user access to 
files/documents etc. is really great.

However there is a problem since the search feature relies wholly on zeitgeist 
(AFAIK), in the zeitgeist is not tracking everything.

E.g. in openoffice, I create a new file (or open an existing one) from within 
openoffice itself. This file does not show up, presumably because openoffice 
does not (yet) push its activity to zeitgeist.

I guess any number of other programs could suffer the same problem.

For the average user, this is surely going to be confusing. They will create 
documents via legitimate means ('New ...' buttons in their applications), and 
then expect to be able to search for them in the Unity files-place interface.

To avoid this confusion I would guess there really needs to be a filesystem 
watcher on the home dir (or key folders within it) so that zeitgeist is aware 
of activity caused by non-zeitgeist-aware applications.



___
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] Translation template import - zeitgeist in Zeitgeist Framework 0.1

2010-09-25 Thread rosetta
Hello Zeitgeist Framework Team,

On 2010-09-25 10:48z (3 minutes ago), you uploaded a translation
template for zeitgeist in Zeitgeist Framework 0.1 in Launchpad.

The template has now been imported successfully.


Thank you,

The Launchpad team

___
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] Translation template import - zeitgeist in Zeitgeist Framework 0.3

2010-09-25 Thread rosetta
Hello Zeitgeist Framework Team,

On 2010-09-25 10:48z (3 minutes ago), you uploaded a translation
template for zeitgeist in Zeitgeist Framework 0.3 in Launchpad.

The template has now been imported successfully.


Thank you,

The Launchpad team

___
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] Translation template import - zeitgeist in Zeitgeist Framework 0.5

2010-09-25 Thread rosetta
Hello Zeitgeist Framework Team,

On 2010-09-25 10:48z (3 minutes ago), you uploaded a translation
template for zeitgeist in Zeitgeist Framework 0.5 in Launchpad.

The template has now been imported successfully.


Thank you,

The Launchpad team

___
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 646724] Re: not all files show up in files-place

2010-09-25 Thread Siegfried Gevatter
I've just pushed a fix for zeitgeist-datahub (so that it'll find
OpenOffice.org files) to lp:zeitgeist. I think Didier Roche wanted to
get an updated Zeitgeist package into Maverick; I'll e-mail him about
including this change.

--
revision rai...@ubuntu.com-20100925104208-8eerljaq7ly6rhw0 (1608)
...
Branch: zeitgeist-trunk

recent.py: add workaround for OpenOffice.org files

Backport the workaround used in the Vala datahub, which special-cases
OpenOffice.org documents so that we can identify their .desktop file by
looking at the mime-type in addition to the executable name.
--

-- 
not all files show up in files-place
https://bugs.launchpad.net/bugs/646724
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.

Status in Unity: Triaged
Status in Unity Files Place: Triaged
Status in Zeitgeist Data-Sources: In Progress

Bug description:
The Unity interface, with its files-place feature for user access to 
files/documents etc. is really great.

However there is a problem since the search feature relies wholly on zeitgeist 
(AFAIK), in the zeitgeist is not tracking everything.

E.g. in openoffice, I create a new file (or open an existing one) from within 
openoffice itself. This file does not show up, presumably because openoffice 
does not (yet) push its activity to zeitgeist.

I guess any number of other programs could suffer the same problem.

For the average user, this is surely going to be confusing. They will create 
documents via legitimate means ('New ...' buttons in their applications), and 
then expect to be able to search for them in the Unity files-place interface.

To avoid this confusion I would guess there really needs to be a filesystem 
watcher on the home dir (or key folders within it) so that zeitgeist is aware 
of activity caused by non-zeitgeist-aware applications.



___
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] Translation template import - zeitgeist in Zeitgeist Framework 0.1

2010-09-25 Thread rosetta
Hello Zeitgeist Framework Team,

On 2010-09-25 11:28z (1 minutes ago), you uploaded a translation
template for zeitgeist in Zeitgeist Framework 0.1 in Launchpad.

The template has now been imported successfully.


Thank you,

The Launchpad team

___
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] Translation template import - zeitgeist in Zeitgeist Framework 0.3

2010-09-25 Thread rosetta
Hello Zeitgeist Framework Team,

On 2010-09-25 11:28z (1 minutes ago), you uploaded a translation
template for zeitgeist in Zeitgeist Framework 0.3 in Launchpad.

The template has now been imported successfully.


Thank you,

The Launchpad team

___
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:~zeitgeist/zeitgeist/fix-646124 into lp:zeitgeist

2010-09-25 Thread Seif Lotfy
Seif Lotfy has proposed merging lp:~zeitgeist/zeitgeist/fix-646124 into 
lp:zeitgeist.

Requested reviews:
  Zeitgeist Framework Team (zeitgeist)
Related bugs:
  #646124 Wrong understanding of the LeastRecentActors
  https://bugs.launchpad.net/bugs/646124


Basically all I did is replace LeastRecentActor with a new OldestActor and 
ported LeastRecentActor to our new understanding discussed in bug #646124
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/fix-646124/+merge/36628
Your team Zeitgeist Framework Team is requested to review the proposed merge of 
lp:~zeitgeist/zeitgeist/fix-646124 into lp:zeitgeist.
=== modified file '_zeitgeist/engine/main.py'
--- _zeitgeist/engine/main.py	2010-09-24 17:02:50 +
+++ _zeitgeist/engine/main.py	2010-09-25 11:45:54 +
@@ -343,7 +343,7 @@
 		else:
 			raise NotImplementedError, Unsupported return_mode.
 		
-		if order == ResultType.LeastRecentActor:
+		if order == ResultType.OldestActor:
 			sql += 
 NATURAL JOIN (
 	SELECT actor, min(timestamp) AS timestamp
@@ -366,7 +366,8 @@
 			 GROUP BY subj_origin ORDER BY timestamp DESC,
 			 GROUP BY subj_origin ORDER BY timestamp ASC,
 			 GROUP BY subj_origin ORDER BY COUNT(subj_origin) DESC, timestamp DESC,
-			 GROUP BY subj_origin ORDER BY COUNT(subj_origin) ASC, timestamp ASC)[order]
+			 GROUP BY subj_origin ORDER BY COUNT(subj_origin) ASC, timestamp ASC,
+			 GROUP BY actor ORDER BY timestamp ASC)[order]
 		
 		if max_events  0:
 			sql +=  LIMIT %d % max_events

=== modified file 'test/engine-test.py'
--- test/engine-test.py	2010-09-24 17:02:50 +
+++ test/engine-test.py	2010-09-25 11:45:54 +
@@ -596,6 +596,15 @@
 		events = self.engine.find_events(
 			TimeRange(105,107), [], StorageState.Any, 0, ResultType.MostRecentActor)
 		self.assertEquals([e[0][1] for e in events], [107, 105])
+	
+	def testResultTypesOldestActor(self):
+		import_events(test/data/twenty_events.js, self.engine)
+		
+		events = self.engine.find_events(
+			TimeRange.always(),
+			[Event.new_for_values(subject_manifestation=stfu:File)],
+			StorageState.Any, 0, ResultType.OldestActor)
+		self.assertEquals([e[0][1] for e in events], [100, 101, 105])
 
 	def testResultTypesLeastRecentActor(self):
 		import_events(test/data/twenty_events.js, self.engine)
@@ -604,11 +613,9 @@
 			TimeRange.always(),
 			[Event.new_for_values(subject_manifestation=stfu:File)],
 			StorageState.Any, 0, ResultType.LeastRecentActor)
-		self.assertEquals([e[0][1] for e in events], [100, 101, 105])
-		# LeastRecentActor should really be: 100, 101, 105. See bug #646124.
-		# This will be renamed to something like OldestActor.
+		self.assertEquals([e[0][1] for e in events], ['105', '114', '119'])
 
-	def testResultTypesLeastRecentActorBug641968(self):
+	def testResultTypesOldestActorBug641968(self):
 		events = [
 			Event.new_for_values(timestamp=1, actor=boo, subject_uri=tmp/boo),
 			Event.new_for_values(timestamp=2, actor=boo, subject_uri=home/boo),
@@ -619,20 +626,20 @@
 		
 		# Get the least recent actors
 		ids = self.engine.find_eventids(TimeRange.always(),
-			[], StorageState.Any, 0, ResultType.LeastRecentActor)
+			[], StorageState.Any, 0, ResultType.OldestActor)
 		self.assertEquals(ids, [1, 3, 4])
 		
 		# Get the least recent actors for home/boo
 		template = Event.new_for_values(subject_uri=home/boo)
 		ids = self.engine.find_eventids(TimeRange.always(),
-			[template], StorageState.Any, 0, ResultType.LeastRecentActor)
+			[template], StorageState.Any, 0, ResultType.OldestActor)
 		self.assertEquals(ids, [2])
 		
 		# Let's also try the same with MostRecentActor... Although there
 		# should be no problem here.
 		template = Event.new_for_values(subject_uri=home/boo)
 		ids = self.engine.find_eventids(TimeRange.always(),
-			[template], StorageState.Any, 0, ResultType.LeastRecentActor)
+			[template], StorageState.Any, 0, ResultType.OldestActor)
 		self.assertEquals(ids, [2])
 	
 	def testResultTypesMostPopularOrigin(self):

=== modified file 'zeitgeist/datamodel.py'
--- zeitgeist/datamodel.py	2010-08-28 15:14:42 +
+++ zeitgeist/datamodel.py	2010-09-25 11:45:54 +
@@ -1029,14 +1029,15 @@
 		ordered by the popularity of the actor))
 	LeastPopularActor = enum_factory((The last event of each different actor,
 		ordered ascendingly by the popularity of the actor))
-	MostRecentActor = enum_factory((The last event of each different actor))
-	LeastRecentActor = enum_factory((The first event of each different actor))	
+	MostRecentActor = enum_factory((The most recent event of each different actor))
+	LeastRecentActor = enum_factory((The least recent event of each different actor))	
 	MostRecentOrigin = enum_factory((The last event of each different origin))
 	LeastRecentOrigin = enum_factory((The first event of each different origin))
 	MostPopularOrigin = enum_factory((The last event of each different origin,
 		ordered by the popularity of the origins))
 	LeastPopularOrigin = enum_factory((The last event of each different origin,
 		

[Zeitgeist] [Bug 646124] Re: Wrong understanding of the LeastRecentActors

2010-09-25 Thread Seif Lotfy
** Branch linked: lp:~zeitgeist/zeitgeist/fix-646124

** Changed in: zeitgeist
   Status: Triaged = In Progress

-- 
Wrong understanding of the LeastRecentActors
https://bugs.launchpad.net/bugs/646124
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Zeitgeist Framework: In Progress

Bug description:
In an attempt to work on bug #641968 I discovered that we some of us defer on 
the understanding of LeastRecentActor

The documentation stated that LeastRecentActor = enum_factory((The first event 
of each different actor))

Let's assume we have sequential events. (The actors are defined by numbers)

2, 1, 3, 2, 1, 4

So we have 4 different actors (1,2,3,4) and we want to sort them by least 
recent.
the least recent is not 2 or 1 since they are used again at the end. the least 
recent is 3

This means LeastRecentActors should return the latest actors sorted ASC:

3, 2, 1, 4

and not

2, 1, 3, 4

When we look at LeastRecentSubjects = enum_factory((One event for each subject 
only, 
  ordered with oldest events first))
My understanding according to Siegfried is:

seif_ RainCT,
seif_ LeastRecentSubjects = enum_factory((One event for each subject only, 
seif_   ordered with oldest events first)
seif_ so i f i have
seif_ the subject
seif_ 1, 2, 1, 3, 4
seif_ what do i get returned
seif_ 1, 2, 3, 4
seif_ or
seif_ 2, 1, 3, 4
seif_ ?
RainCT seif_: the later
RainCT for each subject you only look at the most recent one
seif_ ok then we should do the same for the actors :)
RainCT Yes. Isn't it like this already?
seif_ no

In that case if we follow this convention I can update the doc strings and 
already have the bug fix for both this bug and #641968





___
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 646724] Re: not all files show up in files-place

2010-09-25 Thread Launchpad Bug Tracker
** Branch linked: lp:~zeitgeist/zeitgeist/0.5.2

-- 
not all files show up in files-place
https://bugs.launchpad.net/bugs/646724
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.

Status in Unity: Triaged
Status in Unity Files Place: Triaged
Status in Zeitgeist Data-Sources: In Progress

Bug description:
The Unity interface, with its files-place feature for user access to 
files/documents etc. is really great.

However there is a problem since the search feature relies wholly on zeitgeist 
(AFAIK), in the zeitgeist is not tracking everything.

E.g. in openoffice, I create a new file (or open an existing one) from within 
openoffice itself. This file does not show up, presumably because openoffice 
does not (yet) push its activity to zeitgeist.

I guess any number of other programs could suffer the same problem.

For the average user, this is surely going to be confusing. They will create 
documents via legitimate means ('New ...' buttons in their applications), and 
then expect to be able to search for them in the Unity files-place interface.

To avoid this confusion I would guess there really needs to be a filesystem 
watcher on the home dir (or key folders within it) so that zeitgeist is aware 
of activity caused by non-zeitgeist-aware applications.



___
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 641968] Re: Querying on LeastRecentActor with event templates doesn't work

2010-09-25 Thread Launchpad Bug Tracker
** Branch linked: lp:~zeitgeist/zeitgeist/0.5.2

-- 
Querying on LeastRecentActor with event templates doesn't work
https://bugs.launchpad.net/bugs/641968
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Zeitgeist Framework: Fix Committed

Bug description:
Scenario: I would like to know which actor touched a file with uri=home/boo 
least recently.

This query should do the job:
 template = Event.new_for_values(subject_uri=home/boo)
 ids = engine.find_eventids(TimeRange.always(), [template, ], 
 StorageState.Any, 0, ResultType.LeastRecentActor)

However as you can see in the attached script this does always return an empty 
result. It looks like LeastRecentActor plus any search template is not working.



___
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:~zeitgeist/zeitgeist/fix-646124 into lp:zeitgeist

2010-09-25 Thread Siegfried Gevatter
Review: Approve
Looks good, thanks for working on this Seif!
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/fix-646124/+merge/36628
Your team Zeitgeist Framework Team is subscribed to branch 
lp:~zeitgeist/zeitgeist/fix-646124.

___
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 642803] Re: Today's updates to lp:zeitgeist broke event_view

2010-09-25 Thread Siegfried Gevatter
I am closing this since the affected code was never released.

** Changed in: zeitgeist
   Status: Fix Committed = Fix Released

-- 
Today's updates to lp:zeitgeist broke event_view
https://bugs.launchpad.net/bugs/642803
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Zeitgeist Framework: Fix Released

Bug description:
As stateted by Mikkel in bug 642772 the event_view is broken for `old` databases

Traceback:

DBusException: org.freedesktop.DBus.Python.sqlite3.OperationalError: Traceback 
(most recent call last):
  File /usr/lib/pymodules/python2.6/dbus/service.py, line 702, in _message_cb
retval = candidate_method(self, *args, **keywords)
  File /media/devel/zeitgeist/trunk/zeitgeist/../_zeitgeist/engine/remote.py, 
line 197, in FindEventIds
num_events, result_type)
  File /media/devel/zeitgeist/trunk/zeitgeist/../_zeitgeist/engine/main.py, 
line 392, in find_eventids
return self._find_events(0, *args)
  File /media/devel/zeitgeist/trunk/zeitgeist/../_zeitgeist/engine/main.py, 
line 375, in _find_events
result = self._cursor.execute(sql, where.arguments).fetchall()
  File /media/devel/zeitgeist/trunk/zeitgeist/../_zeitgeist/engine/sql.py, 
line 59, in execute
return super(UnicodeCursor, self).execute(statement, parameters)
OperationalError: no such column: subj_uri_id



___
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 642898] Re: Upgrading database scheme is broken for newly created databases

2010-09-25 Thread Siegfried Gevatter
I am closing this since the affected code was never released.

** Changed in: zeitgeist
   Status: Fix Committed = Fix Released

-- 
Upgrading database scheme is broken for newly created databases
https://bugs.launchpad.net/bugs/642898
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Zeitgeist Framework: Fix Released

Bug description:
Todays newly created database version 2 broke the upgrade path, we have no 
upgrade script for 0 (which means 'no version entry found') to 2. This happens 
because no-existing databases do not have such table.


$ ZEITGEIST_DATABASE_PATH=/tmp/dfgdsfsddf ./zeitgeist-daemon
 :(
DEBUG:root:Checking for another running instance...
DEBUG:root:No running instances found.
INFO:zeitgeist.sql:Using database: /tmp/dfgdsfsddf
DEBUG:zeitgeist.sql:Schema 'core' not found: no such table: schema_version
INFO:zeitgeist.sql:Upgrading database 'core' from version 0 to 2. This may take 
a while
CRITICAL:zeitgeist.sql:Failed to upgrade database 'core' from version 0 to 2: 
No module named core_0_2

We have to check if we are operating on a new database.
(Side note: we need tests for upgrades)



___
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 646124] Re: Wrong understanding of the LeastRecentActors

2010-09-25 Thread Seif Lotfy
** Changed in: zeitgeist
   Status: In Progress = Fix Committed

** Changed in: zeitgeist
Milestone: 0.6 = 0.5.2

-- 
Wrong understanding of the LeastRecentActors
https://bugs.launchpad.net/bugs/646124
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Zeitgeist Framework: Fix Committed

Bug description:
In an attempt to work on bug #641968 I discovered that we some of us defer on 
the understanding of LeastRecentActor

The documentation stated that LeastRecentActor = enum_factory((The first event 
of each different actor))

Let's assume we have sequential events. (The actors are defined by numbers)

2, 1, 3, 2, 1, 4

So we have 4 different actors (1,2,3,4) and we want to sort them by least 
recent.
the least recent is not 2 or 1 since they are used again at the end. the least 
recent is 3

This means LeastRecentActors should return the latest actors sorted ASC:

3, 2, 1, 4

and not

2, 1, 3, 4

When we look at LeastRecentSubjects = enum_factory((One event for each subject 
only, 
  ordered with oldest events first))
My understanding according to Siegfried is:

seif_ RainCT,
seif_ LeastRecentSubjects = enum_factory((One event for each subject only, 
seif_   ordered with oldest events first)
seif_ so i f i have
seif_ the subject
seif_ 1, 2, 1, 3, 4
seif_ what do i get returned
seif_ 1, 2, 3, 4
seif_ or
seif_ 2, 1, 3, 4
seif_ ?
RainCT seif_: the later
RainCT for each subject you only look at the most recent one
seif_ ok then we should do the same for the actors :)
RainCT Yes. Isn't it like this already?
seif_ no

In that case if we follow this convention I can update the doc strings and 
already have the bug fix for both this bug and #641968





___
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 640277] Re: Bad documentation of zeitgeist.datamodel.Symbol

2010-09-25 Thread Siegfried Gevatter
*** This bug is a duplicate of bug 634055 ***
https://bugs.launchpad.net/bugs/634055

** Changed in: zeitgeist
   Status: Confirmed = Fix Committed

** Changed in: zeitgeist
 Assignee: Seif Lotfy (seif) = (unassigned)

** This bug has been marked a duplicate of bug 634055
   documentation of our ontology is hardly readable
 * You can subscribe to bug 634055 by following this link: 
https://bugs.edge.launchpad.net/zeitgeist/+bug/634055/+subscribe

-- 
Bad documentation of zeitgeist.datamodel.Symbol
https://bugs.launchpad.net/bugs/640277
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Zeitgeist Framework: Fix Committed

Bug description:
The documentation of the Symbol class is in a bad state. It is so bad that it 
is currently not shown in our public API docs.
This class has not docstring, and has a few (important) undocumented method, we 
should fix this.
Also we should remove the __doc__ property. This ugly hack was used in our old 
way of documenting the ontology, but with [0] we won't need it anymore.

[0] lp:~thekorn/zeitgeist/fix-634055-ontology-docs



___
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 639737] Re: Improve insertion times

2010-09-25 Thread Siegfried Gevatter
** Changed in: zeitgeist
Milestone: None = 0.6

-- 
Improve insertion times
https://bugs.launchpad.net/bugs/639737
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Zeitgeist Framework: In Progress

Bug description:
We insert pretty slowly with an average of 0.15 seconds for one event on my 
core i5 2.5 GHz beast.

RainCT had some optimization possibilities:
1) PRAGMA synchronous=OFF
2) PRAGMA journal_mode=OFF

The Chat:

kamstrup I think we are - but I can't recall... in case of failed 
transactions - but I don't even know if we use transactions these days...
seif RainCT try synchronous=OFF
seif RainCT but it can corrupt your database if your phone dies while ZG is 
inserting
seif RainCT and journal_mode=MEMORY
seif RainCT or OFF since we don't use rollback anyway
seif so maybe journal_mode = OFF is a good start?
kamstrup okay, he's probably right...
kamstrup 'grep -Ri rollback _zeitgeist/' is your friend :-)
kamstrup apparently we are not using rollback...

More info can be found here: http://www.sqlite.org/pragma.html


In order to get a better picture of what's going on, can you please try to get 
some more information, like:
1) How many events are in your database?
2) What's the insertion time for one event into an empty db?
3) Out of this 0.15 secs, how many time is spend in our python code, and what's 
the time of the actual sql action?
4) How much faster is adding 10 events at once compared to adding them one at a 
time?
5) You think 0.15 secs is slow for inserting one event, what time do you 
expect, and why?



___
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 634055] Re: documentation of our ontology is hardly readable

2010-09-25 Thread Siegfried Gevatter
** Changed in: zeitgeist
Milestone: None = 0.5.2

-- 
documentation of our ontology is hardly readable
https://bugs.launchpad.net/bugs/634055
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Zeitgeist Framework: Fix Committed

Bug description:
I just figured that the part of [0] where we list the interpretations and 
manifestations is hardly readable, esp. for people with no python background. 
Also it is not obvious at the first glance that these symbols have a certain 
structure.
I think if we could make the documentation of the symbols look like the tables 
on bottom of [1] it would be a big improvement.

[0] doc/zeitgeist/build/html/datamodel.html
[1] http://www.semanticdesktop.org/ontologies/2007/01/19/nie/



___
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 642686] Re: Add subj_uri_id and subj_origin_id columns to event_view

2010-09-25 Thread Siegfried Gevatter
** Changed in: zeitgeist
Milestone: None = 0.6

-- 
Add subj_uri_id and subj_origin_id columns to event_view
https://bugs.launchpad.net/bugs/642686
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Zeitgeist Framework: Fix Committed

Bug description:
If we add subj_uri_id and subj_origin_id columns to the event_view we could 
make the prefix searches about 10% faster. Combined with the upcoming 
optimization of the GLOB statement it will be possible to reduce the avg. time 
for this kind of queries from ~0.20s to ~0.12s.

As always I've added a script where you can test the proposed change to 
event_view yourself.

*** 551 entries starting with 'http://aa'

SELECT DISTINCT id FROM event_view WHERE(timestamp = ? AND timestamp 
= ? AND ((subj_uri IN (SELECT value FROM uri WHERE value GLOB ?  ORDER 
BY timestamp DESC [u'0', u'9223372036854775807', u'http://aa*']
--- get len(ids)=551 using pure sql in 0.206047s

SELECT DISTINCT id FROM event_view_new WHERE(timestamp = ? AND timestamp 
= ? AND ((subj_uri_id IN (SELECT id FROM uri WHERE value GLOB ?  ORDER 
BY timestamp DESC [u'0', u'9223372036854775807', u'http://aa*']
--- get len(ids)=551 using pure sql in 0.179763s



___
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 641198] Re: Prefix search is not using an index

2010-09-25 Thread Siegfried Gevatter
** Changed in: zeitgeist
Milestone: None = 0.6

-- 
Prefix search is not using an index
https://bugs.launchpad.net/bugs/641198
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Zeitgeist Framework: Fix Committed

Bug description:
In the prefix search we are using a 'GLOB' sql-statement, this statement is not 
using the index and thus slow, some timings from me running the attached script:

* Database with ~50k events
* ~1% of these event have a subject with uri beginning with 'http://aa'

* searching for all uris beginning with 'http://aa' using the 'GLOB' expression 
(what we have now in lp:zeitgeist) takes ~0.03 sec
* changing this query to some (x = S AND x  T) statement reduces this time to 
~0.002 sec

This is easy to implement (and test) for ascii chars, but as we support unicode 
esp. testing seems to be a bit tricky



___
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 641100] Re: ZeitgeistEngine.__init__(): statement to get last row id is not using the index

2010-09-25 Thread Siegfried Gevatter
** Changed in: zeitgeist
Milestone: None = 0.5.2

-- 
ZeitgeistEngine.__init__(): statement to get last row id is not using the index
https://bugs.launchpad.net/bugs/641100
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Zeitgeist Framework: Fix Committed

Bug description:
The attached script is  creating a log with ~49k events.
In the constructor of ZeitgeistEngine we need to search for the minimum and 
maximum event id. In the script I'm doing two different ways of getting these 
values:

Our current query:
SELECT MIN(id), MAX(id) FROM event
- this is not using the event index, and takes about 0.096 secunds for me

do the same in two queries:
SELECT MIN(id) FROM event+SELECT MAX(id) FROM event
- both queries are using the index, and together they take about 0.003 for me

I suggest changing the one query into two to get some speedups.



___
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 634744] Re: test suite fails if zeitgeist is installed on the system

2010-09-25 Thread Siegfried Gevatter
** Changed in: zeitgeist
Milestone: None = 0.6

-- 
test suite fails if zeitgeist is installed on the system
https://bugs.launchpad.net/bugs/634744
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Zeitgeist Framework: Fix Committed

Bug description:
Today I tried to run our test suite on a system which has zeitgeist installed 
and running (maverick netbook edition). The test suite fails with a lot of 
errors because it was unable to kill the running daemon instance.

We should make sure to run our tests on its own private dbus message bus.



___
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 634740] Re: explicitly define on a per testcase basis which extension needs to be loaded

2010-09-25 Thread Siegfried Gevatter
** Changed in: zeitgeist
Milestone: None = 0.6

-- 
explicitly define on a per testcase basis which extension needs to be loaded
https://bugs.launchpad.net/bugs/634740
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Zeitgeist Framework: Fix Committed

Bug description:
Right now we load all available extensions in our test runs. So if someone as a 
random (experimental) extension in ~/.local/share/zeitgeist/extensions which 
fails all our remote and engine testcases fail too.
As we have no influence on the installed extensions on the users system we 
should explicitly configure them on each test run.



___
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 646724] Re: not all files show up in files-place

2010-09-25 Thread Siegfried Gevatter
** Also affects: zeitgeist
   Importance: Undecided
   Status: New

** Changed in: zeitgeist
   Importance: Undecided = Low

** Changed in: zeitgeist
   Status: New = Fix Committed

** Changed in: zeitgeist
Milestone: None = 0.5.2

-- 
not all files show up in files-place
https://bugs.launchpad.net/bugs/646724
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Data-Sources.

Status in Unity: Triaged
Status in Unity Files Place: Triaged
Status in Zeitgeist Framework: Fix Committed
Status in Zeitgeist Data-Sources: In Progress

Bug description:
The Unity interface, with its files-place feature for user access to 
files/documents etc. is really great.

However there is a problem since the search feature relies wholly on zeitgeist 
(AFAIK), in the zeitgeist is not tracking everything.

E.g. in openoffice, I create a new file (or open an existing one) from within 
openoffice itself. This file does not show up, presumably because openoffice 
does not (yet) push its activity to zeitgeist.

I guess any number of other programs could suffer the same problem.

For the average user, this is surely going to be confusing. They will create 
documents via legitimate means ('New ...' buttons in their applications), and 
then expect to be able to search for them in the Unity files-place interface.

To avoid this confusion I would guess there really needs to be a filesystem 
watcher on the home dir (or key folders within it) so that zeitgeist is aware 
of activity caused by non-zeitgeist-aware applications.



___
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:~zeitgeist/zeitgeist/fix-646124 into lp:zeitgeist

2010-09-25 Thread noreply
The proposal to merge lp:~zeitgeist/zeitgeist/fix-646124 into lp:zeitgeist has 
been updated.

Status: Needs review = Merged
-- 
https://code.launchpad.net/~zeitgeist/zeitgeist/fix-646124/+merge/36628
Your team Zeitgeist Framework Team is subscribed to branch 
lp:~zeitgeist/zeitgeist/fix-646124.

___
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] Translation template import - zeitgeist in Zeitgeist Framework 0.1

2010-09-25 Thread rosetta
Hello Zeitgeist Framework Team,

On 2010-09-25 13:17z (9 minutes ago), you uploaded a translation
template for zeitgeist in Zeitgeist Framework 0.1 in Launchpad.

The template has now been imported successfully.


Thank you,

The Launchpad team

___
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] Translation template import - zeitgeist in Zeitgeist Framework 0.3

2010-09-25 Thread rosetta
Hello Zeitgeist Framework Team,

On 2010-09-25 13:17z (10 minutes ago), you uploaded a translation
template for zeitgeist in Zeitgeist Framework 0.3 in Launchpad.

The template has now been imported successfully.


Thank you,

The Launchpad team

___
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] Translation template import - zeitgeist in Zeitgeist Framework 0.5

2010-09-25 Thread rosetta
Hello Zeitgeist Framework Team,

On 2010-09-25 13:17z (11 minutes ago), you uploaded a translation
template for zeitgeist in Zeitgeist Framework 0.5 in Launchpad.

The template has now been imported successfully.


Thank you,

The Launchpad team

___
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 596478] [NEW] .ods (open office spreadsheets) files don't appear in GAJ while .xls files do

2010-09-25 Thread Launchpad Bug Tracker
You have been subscribed to a public bug:

In Gnome Activity Journal Open Office Spreadsheets (.ods) don't appear
while .odt files, and excel spreadsheets do.

** Affects: zeitgeist
 Importance: Undecided
 Status: New

-- 
.ods (open office spreadsheets) files don't appear in GAJ while .xls files do
https://bugs.edge.launchpad.net/bugs/596478
You received this bug notification because you are a member of Zeitgeist 
Framework Team, which is subscribed to Zeitgeist Framework.

___
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 626056] Re: zeitgeist-datahub crash when opening activity journal

2010-09-25 Thread Seif Lotfy
guys we would like to close this bug. :)
xof32 can you tell us the output for 

python -c import time; print time.mktime(time.gmtime(0))

Also confirm if zeitgeist-daemon still crashes with this error for you?

-- 
zeitgeist-datahub crash when opening activity journal
https://bugs.launchpad.net/bugs/626056
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Zeitgeist Framework: Incomplete
Status in “zeitgeist” package in Ubuntu: Incomplete

Bug description:
Binary package hint: zeitgeist

zeitgest crash when opening activity journal and it dosent display any 
information

ProblemType: Crash
DistroRelease: Ubuntu 10.10
Package: zeitgeist-datahub 0.5.0-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.35-19.26-generic 2.6.35.3
Uname: Linux 2.6.35-19-generic i686
Architecture: i386
Date: Sat Aug 28 17:18:53 2010
ExecutablePath: /usr/bin/zeitgeist-datahub
InstallationMedia: Ubuntu 10.04 LTS Lucid Lynx - Release i386 (20100429)
InterpreterPath: /usr/bin/python2.6
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/zeitgeist-datahub
ProcEnviron:
 SHELL=/bin/bash
 LANG=es_MX.utf8
PythonArgs: ['/usr/bin/zeitgeist-datahub']
SourcePackage: zeitgeist
Title: zeitgeist-datahub crashed with OverflowError in module()
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare



___
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] jado92mx deactivated by jado92mx

2010-09-25 Thread Friends of GNOME Zeitgeist
Hello Zeitgeist Framework Team,

The membership status of Juan Angel Ferrer Juárez (jado92mx) in the team
Friends of GNOME Zeitgeist (gnome-zeitgeist-users) was changed by the
user himself from Approved to Deactivated.
https://launchpad.net/~gnome-zeitgeist-users

___
Mailing list: https://launchpad.net/~zeitgeist
Post to : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp


[Gnome-zeitgeist] jado92mx deactivated by jado92mx

2010-09-25 Thread Friends of GNOME Zeitgeist
Hello GNOME Zeitgeist Team,

The membership status of Juan Angel Ferrer Juárez (jado92mx) in the team
Friends of GNOME Zeitgeist (gnome-zeitgeist-users) was changed by the
user himself from Approved to Deactivated.
https://launchpad.net/~gnome-zeitgeist-users

___
Mailing list: https://launchpad.net/~gnome-zeitgeist
Post to : gnome-zeitge...@lists.launchpad.net
Unsubscribe : https://launchpad.net/~gnome-zeitgeist
More help   : https://help.launchpad.net/ListHelp