Index: trunk/glueforge/templates/psdb/insertfits.tt
===================================================================
--- trunk/glueforge/templates/psdb/insertfits.tt	(revision 4341)
+++ trunk/glueforge/templates/psdb/insertfits.tt	(revision 5907)
@@ -1,9 +1,9 @@
-bool [% namespace %]InsertFits(psDB *dbh, const psFits *fits)
+bool [% table.namespace %]InsertFits(psDB *dbh, const psFits *fits)
 {
     psArray         *rowSet;
 
-    // move to (the first?) extension named  [% namespace FILTER upper %]_TABLE_NAME
-    if (!psFitsMoveExtName(fits, [% namespace FILTER upper %]_TABLE_NAME)) {
-        psError(PS_ERR_UNKNOWN, true, "failed to find FITS extension %s", [% namespace FILTER upper %]_TABLE_NAME);
+    // move to (the first?) extension named  [% table.namespace FILTER upper %]_TABLE_NAME
+    if (!psFitsMoveExtName(fits, [% table.namespace FILTER upper %]_TABLE_NAME)) {
+        psError(PS_ERR_UNKNOWN, true, "failed to find FITS extension %s", [% table.namespace FILTER upper %]_TABLE_NAME);
         return false;
     }
@@ -23,5 +23,5 @@
     }
 
-    if (!psDBInsertRows(dbh, [% namespace FILTER upper %]_TABLE_NAME, rowSet)) {
+    if (!psDBInsertRows(dbh, [% table.namespace FILTER upper %]_TABLE_NAME, rowSet)) {
         psError(PS_ERR_UNKNOWN, false, "databse insert failed");
         psFree(rowSet);
