CVSTrac Legacy Code

Check-in [976179c75a]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:(#774) make external tools work in reports
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 976179c75a0a7883e5c2b485185f218eae898757
User & Date: cpb 2008-12-28 15:03:16
Context
2009-01-17
16:31
(#777) an index on filechng(vers) speeds the update quite a bit for larger projects. check-in: c6b04561ea user: cpb tags: trunk
2008-12-28
15:03
(#774) make external tools work in reports check-in: 976179c75a user: cpb tags: trunk
2008-11-27
17:49
oops, that's supposed to be a call, not output check-in: d78282a902 user: cpb tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to view.c.

1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
....
1183
1184
1185
1186
1187
1188
1189

1190
1191
1192
1193
1194
1195
1196
  azTools = db_query("SELECT tool.name FROM tool,user "
                     "WHERE tool.object='rpt' AND user.id='%q' "
                     "      AND cap_and(tool.perms,user.capabilities)!=''",
                     g.zUser);

  for(i=0; azTools[i]; i++){
    if( zExcept && 0==strcmp(zExcept,azTools[i]) ) continue;
    zLink = mprintf("rptrool?t=%T&rn=%d", azTools[i], rn);
    common_add_action_item(zLink, azTools[i]);
  }
}

/*
** WEBPAGE: /rpttool
**
................................................................................
      mprintf("rptview?tablist=1&%s", getenv("QUERY_STRING")),
      "Raw Data"
    );
    if( g.okAdmin || (g.okQuery && strcmp(g.zUser,zOwner)==0) ){
      common_add_action_item( mprintf("rptedit?rn=%d",rn), "Edit");
    }
    common_add_action_item( mprintf("rptsql?rn=%d",rn), "SQL");

    common_header("%s", zTitle);
    if( zDesc && zDesc[0] ){
      @ <div class="wiki">
      output_formatted(zDesc,0);
      @ </div>
    }
    output_color_key(zClrKey, 1, "border=0 cellpadding=3 cellspacing=0 class=\"report\"");







|







 







>







1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
....
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
  azTools = db_query("SELECT tool.name FROM tool,user "
                     "WHERE tool.object='rpt' AND user.id='%q' "
                     "      AND cap_and(tool.perms,user.capabilities)!=''",
                     g.zUser);

  for(i=0; azTools[i]; i++){
    if( zExcept && 0==strcmp(zExcept,azTools[i]) ) continue;
    zLink = mprintf("rpttool?t=%T&rn=%d", azTools[i], rn);
    common_add_action_item(zLink, azTools[i]);
  }
}

/*
** WEBPAGE: /rpttool
**
................................................................................
      mprintf("rptview?tablist=1&%s", getenv("QUERY_STRING")),
      "Raw Data"
    );
    if( g.okAdmin || (g.okQuery && strcmp(g.zUser,zOwner)==0) ){
      common_add_action_item( mprintf("rptedit?rn=%d",rn), "Edit");
    }
    common_add_action_item( mprintf("rptsql?rn=%d",rn), "SQL");
    add_rpt_tools(NULL,rn);
    common_header("%s", zTitle);
    if( zDesc && zDesc[0] ){
      @ <div class="wiki">
      output_formatted(zDesc,0);
      @ </div>
    }
    output_color_key(zClrKey, 1, "border=0 cellpadding=3 cellspacing=0 class=\"report\"");