--- nfo/projects/netfraggle/bin/fraggleEngine.py 2004/09/15 22:27:06 1.11 +++ nfo/projects/netfraggle/bin/fraggleEngine.py 2004/09/17 09:42:30 1.12 @@ -5,13 +5,16 @@ # Author: joko # # Created: 2004/30/08 -# RCS-ID: $Id: fraggleEngine.py,v 1.11 2004/09/15 22:27:06 xabbu Exp $ +# RCS-ID: $Id: fraggleEngine.py,v 1.12 2004/09/17 09:42:30 xabbu Exp $ # Copyright: (c) 2004 netfrag.org # Licence: GPL #----------------------------------------------------------------------------- #----------------------------------------------------------------------------- # $Log: fraggleEngine.py,v $ +# Revision 1.12 2004/09/17 09:42:30 xabbu +# U function listItems() places a query to the server now and returns its results +# # Revision 1.11 2004/09/15 22:27:06 xabbu # +/- function fraggleSync replaced by function syncTopics which places a query # + function query has simple eval of error return code now @@ -93,9 +96,9 @@ def getTopicById(self, id): return self.topics[id] - def listItems(self,topicId): - result = self.queryCms("GET creator_id, language_id, description FROM contents") - #print result + def listItems(self,contentkey): + result = self.queryCms(str("GET creator_id, language_id, description FROM contents WITH type "+contentkey)) + return result def queryCms(self,nqlquery): @@ -103,9 +106,9 @@ rpc = Server('http://netfrag.org/nfo/netfraggle.php') result = rpc.query(nqlquery) if result['0']['error'] == '0': - #print result - return result - + #print result + return result + #else: #print result['0']['error'] #return result