[1911] in Moira Commits

home help back first fref pref prev next nref lref last post

/svn/moira r4050 - trunk/moira/gen

daemon@ATHENA.MIT.EDU (Garry Zacheiss)
Fri Sep 2 16:35:51 2011

Date: Fri, 2 Sep 2011 16:35:44 -0400
From: Garry Zacheiss <zacheiss@MIT.EDU>
Message-Id: <201109022035.p82KZiWW011010@drugstore.mit.edu>
To: moira-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: zacheiss
Date: 2011-09-02 16:35:44 -0400 (Fri, 02 Sep 2011)
New Revision: 4050

Modified:
   trunk/moira/gen/warehouse-lists.pc
Log:
export some additional fields.

Modified: trunk/moira/gen/warehouse-lists.pc
===================================================================
--- trunk/moira/gen/warehouse-lists.pc	2011-09-01 02:26:06 UTC (rev 4049)
+++ trunk/moira/gen/warehouse-lists.pc	2011-09-02 20:35:44 UTC (rev 4050)
@@ -95,16 +95,20 @@
   int lid = id;
   char acl_type[LIST_ACL_TYPE_SIZE], modtime[LIST_MODTIME_SIZE];
   char acl_name[STRINGS_STRING_SIZE], login[USERS_LOGIN_SIZE];
-  char principal[STRINGS_STRING_SIZE];
-  int acl_id;
+  char principal[STRINGS_STRING_SIZE], description[LIST_DESCRIPTION_SIZE];
+  int acl_id, active, maillist, grouplist, nfsgroup, publicflg, hidden;
   EXEC SQL END DECLARE SECTION;
   char *maybecomma = "";
 
-  EXEC SQL SELECT acl_type, acl_id, modtime INTO :acl_type, :acl_id, :modtime
+  EXEC SQL SELECT acl_type, acl_id, modtime, active, maillist,
+    grouplist, nfsgroup, publicflg, hidden, description INTO :acl_type,
+    :acl_id, :modtime, :active, :maillist, :grouplist, :nfsgroup,
+    :publicflg, :hidden, :description	    
     FROM list WHERE list_id = :lid;
-
+  
   strtrim(acl_type);
   strtrim(modtime);
+  strtrim(description);
   
   strcpy(acl_name, "NONE");
   if (strcmp(acl_type, "LIST") == 0)
@@ -115,7 +119,8 @@
     EXEC SQL SELECT string into :acl_name FROM strings WHERE string_id = :acl_id;
   strtrim(acl_name);
 
-  fprintf(out, "%s|%s|%s|", list, acl_type, acl_name);
+  fprintf(out, "%s|%s|%s|%d|%d|%d|%d|%d|%d|%s|", list, acl_type,
+	  acl_name, active, maillist, grouplist, nfsgroup, publicflg, hidden, description);
 
   EXEC SQL DECLARE u_cursor CURSOR FOR
     SELECT UNIQUE u.login FROM users u, imembers i, list l


home help back first fref pref prev next nref lref last post