diff roundup/backends/back_mysql.py @ 3460:c75dd71a7963 maint-0.8

merge from HEAD
author Richard Jones <richard@users.sourceforge.net>
date Fri, 13 Jan 2006 01:29:48 +0000
parents 6d6d7e331c54
children d1cda972f5d2
line wrap: on
line diff
--- a/roundup/backends/back_mysql.py	Sat Jan 07 10:13:44 2006 +0000
+++ b/roundup/backends/back_mysql.py	Fri Jan 13 01:29:48 2006 +0000
@@ -172,6 +172,16 @@
             self.sql('create index ids_name_idx on ids(name)')
             self.create_version_2_tables()
 
+    def load_dbschema(self):
+        ''' Load the schema definition that the database currently implements
+        '''
+        self.cursor.execute('select `schema` from `schema`')
+        schema = self.cursor.fetchone()
+        if schema:
+            self.database_schema = eval(schema[0])
+        else:
+            self.database_schema = {}
+
     def create_version_2_tables(self):
         # OTK store
         self.sql('''CREATE TABLE otks (otk_key VARCHAR(255),
@@ -507,9 +517,11 @@
 
         "search_matches" is {nodeid: marker} or None
 
-        The filter must match all properties specificed - but if the
-        property value to match is a list, any one of the values in the
-        list may match for that property to match.
+        The filter must match all properties specificed. If the property
+        value to match is a list:
+
+        1. String properties must match all elements in the list, and
+        2. Other properties must match any of the elements in the list.
         '''
         # we can't match anything if search_matches is empty
         if search_matches == {}:

Roundup Issue Tracker: http://roundup-tracker.org/