Hi Devin:

On Wed, 11 Jun 2008, Devin Bougie wrote:
> We have just started setting up v0.99.0.  When creating a new
> collection (for example, "CIHEP"), we get the following error:
> Operation failed. Reason:
> Unknown column 'en' in 'field list'

Fixed in CVS, thanks for reporting the problem!

Here is a simple patch for v0.99.0 for websearchadminlib.py:

| @@ -2982,7 +2983,8 @@
|              res = run_sql("INSERT INTO collection (id,name,dbquery) VALUES 
(1,%s,%s)",
|                            (colNAME,dbquery))
|          colID = run_sql("SELECT id FROM collection WHERE name=%s", 
(colNAME,))
| -        res = run_sql("INSERT INTO collectionname(id_collection, type, ln, 
value) VALUES (%s,%s,%s,%s)" % (colID[0][0], rtype, CFG_SITE_LANG, colNAME))
| +        res = run_sql("INSERT INTO collectionname(id_collection, type, ln, 
value) VALUES (%s,%s,%s,%s)",
| +                      (colID[0][0], rtype, CFG_SITE_LANG, colNAME))
|          if colID:
|              return (1, colID[0][0])
|          else:

Best regards
-- 
Tibor Simko ** CERN Document Server ** <http://cds.cern.ch/>

Reply via email to