Commits

Anonymous committed d9e91cf Merge

Merged changes

  • Participants
  • Parent commits 3eedab2, 5fb23dd

Comments (0)

Files changed (3)

         self.domain = options.get('DOMAIN', 'appspot.com')
         self.remote_api_path = options.get('REMOTE_API_PATH', None)
         self.secure_remote_api = options.get('SECURE_REMOTE_API', True)
+        self.operators = {
+            'exact': '= %s',
+            'gt': '> %s',
+            'gte': '>= %s',
+            'lt': '< %s',
+            'lte': '<= %s',
+            'in': 'in (%s)',
+            'range': 'between(%s)',
+        }
 
         remote = options.get('REMOTE', False)
         if on_production_server:
             pks_only = True
         self.db_table = self.query.get_meta().db_table
         self.pks_only = pks_only
+
         start_cursor = getattr(self.query, '_gae_start_cursor', None)
         end_cursor = getattr(self.query, '_gae_end_cursor', None)
         self.gae_query = [Query(self.db_table, keys_only=self.pks_only,
                                 cursor=start_cursor, end_cursor=end_cursor)]
 
-    # This is needed for debugging
-    def __repr__(self):
-        return '<GAEQuery: %r ORDER %r>' % (self.gae_query, self.ordering)
 
     @safe_call
     def fetch(self, low_mark, high_mark):
         if value in ([], ()):
             self.pk_filters = []
             return
-
+        
         # Emulated/converted lookups
         if column == self.query.get_meta().pk.column:
             column = '__key__'
Empty file added.