1. lakin.wecker
  2. pyrqlate

Commits

ltnooy  committed 9dbabdf

Deparser can now handle select(), expand(), and sort()

  • Participants
  • Parent commits f02efb1
  • Branches default

Comments (0)

Files changed (1)

File __init__.py

View file
     def visit_ge(self, query):
         return u'%s=ge=%s' % (query.args[0], Converters.from_python(query.args[1]))
 
+    #---------------------------------------------------------------------------
+    def visit_sort(self, query):
+        return u'sort(%s)' % (','.join(query.args))
+
+    #---------------------------------------------------------------------------
+    def visit_expand(self, query):
+        return u'expand(%s)' % (','.join(query.args))
+    
+    #---------------------------------------------------------------------------
+    def visit_select(self, query):
+        return u'select(%s)' % (','.join(query.args))
+
+
 #-------------------------------------------------------------------------------
 def deparse(query):
     """Deparse an RQL query into its url encoding form."""