--- a/server/sources/__init__.py Thu Mar 04 18:02:33 2010 +0100
+++ b/server/sources/__init__.py Thu Mar 04 18:04:26 2010 +0100
@@ -382,6 +382,22 @@
"""
raise NotImplementedError()
+ def modified_entities(self, session, etypes, mtime):
+ """return a 2-uple:
+ * list of (etype, eid) of entities of the given types which have been
+ modified since the given timestamp (actually entities whose full text
+ index content has changed)
+ * list of (etype, eid) of entities of the given types which have been
+ deleted since the given timestamp
+ """
+ raise NotImplementedError()
+
+ def index_entity(self, session, entity):
+ """create an operation to [re]index textual content of the given entity
+ on commit
+ """
+ raise NotImplementedError()
+
def fti_unindex_entity(self, session, eid):
"""remove text content for entity with the given eid from the full text
index
@@ -393,16 +409,6 @@
"""
raise NotImplementedError()
- def modified_entities(self, session, etypes, mtime):
- """return a 2-uple:
- * list of (etype, eid) of entities of the given types which have been
- modified since the given timestamp (actually entities whose full text
- index content has changed)
- * list of (etype, eid) of entities of the given types which have been
- deleted since the given timestamp
- """
- raise NotImplementedError()
-
# sql system source interface #############################################
def sqlexec(self, session, sql, args=None):