Author: whit
Date: 2007-07-31 19:51:57 -0400 (Tue, 31 Jul 2007)
New Revision: 7915
Modified:
TaggerStore/trunk/taggerstore/controllers/__init__.py
Log:
use the distinct entryid template
Modified: TaggerStore/trunk/taggerstore/controllers/__init__.py
===================================================================
--- TaggerStore/trunk/taggerstore/controllers/__init__.py 2007-07-31
23:50:39 UTC (rev 7914)
+++ TaggerStore/trunk/taggerstore/controllers/__init__.py 2007-07-31
23:51:57 UTC (rev 7915)
@@ -8,6 +8,7 @@
import taggerstore.helpers as h
from taggerclient.gdata import GDataQuery
from taggerclient.atom import tostring
+from taggerstore import rdf
class BaseController(WSGIController):
_tagger = None
@@ -34,7 +35,7 @@
def entries_for_query(self, query):
if isinstance(query, GDataQuery):
- query = query._sparql()
+ query = query._sparql(template=rdf.entryid_template)
results = self.graph.query(query).serialize(format='entryid_list')
entries = [self.atom_entries[entryid] for entryid in results]
return entries
@@ -48,3 +49,5 @@
# Include the '_' function in the public names
__all__ = [__name for __name in locals().keys() if not __name.startswith('_') \
or __name == '_']
+
+
--
Archive:
http://www.openplans.org/projects/opencore/lists/openplans-svn/archive/2007/07/1185925918305
To unsubscribe send an email with subject unsubscribe to [EMAIL PROTECTED]
Please contact [EMAIL PROTECTED] for questions.