Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75710
b: "refs/heads/CMSSW_7_1_X"
c: cf575b6
h: "refs/heads/CMSSW_7_1_X"
v: v3
  • Loading branch information
Emilio Meschi committed Oct 19, 2009
1 parent 5be93d6 commit 3e4f294
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
refs/heads/gh-pages: 09c786f70121f131b3715aaf3464996502bbeb7e
"refs/heads/CMSSW_7_1_X": 56a000da2406f93aa014d11ed0389dabfac5b875
"refs/heads/CMSSW_7_1_X": cf575b6f195e9fe30fba6a0e9f45a181cbb592a2
1 change: 1 addition & 0 deletions trunk/EventFilter/Utilities/plugins/BuildFile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
<use name=EventFilter/Utilities>
<use name=DataFormats/FEDRawData>
<use name=xdaq>
<use name=boost>
<flags EDM_PLUGIN=1>
</library>
22 changes: 18 additions & 4 deletions trunk/EventFilter/Utilities/plugins/ExceptionGenerator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#include "FWCore/Utilities/interface/Exception.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"

#include "boost/tokenizer.hpp"

#include <stdio.h>

using namespace std;
Expand Down Expand Up @@ -76,6 +78,7 @@ namespace evf{
std::string path;
std::string urn;
std::string mname;
std::string query;
try
{
cgicc::Cgicc cgi(in);
Expand All @@ -93,8 +96,8 @@ namespace evf{
cgicc::CgiEnvironment cgie(in);
if(original_referrer_ == "")
original_referrer_ = cgie.getReferrer();
path = cgie.getPathInfo() + "?" + cgie.getQueryString();

path = cgie.getPathInfo();
query = cgie.getQueryString();
}
catch (const std::exception & e)
{
Expand Down Expand Up @@ -163,8 +166,19 @@ namespace evf{

*out << cgicc::form().set("method","GET").set("action", path )
<< std::endl;
*out << cgicc::input().set("type","hidden").set("name","module").set("value", mname)
<< std::endl;
boost::char_separator<char> sep("&");
boost::tokenizer<boost::char_separator<char> > tokens(query, sep);
for (boost::tokenizer<boost::char_separator<char> >::iterator tok_iter = tokens.begin();
tok_iter != tokens.end(); ++tok_iter){
size_t pos = (*tok_iter).find_first_of("=");
if(pos != std::string::npos){
std::string first = (*tok_iter).substr(0 , pos);
std::string second = (*tok_iter).substr(pos+1, (*tok_iter).length()-pos-1);
*out << cgicc::input().set("type","hidden").set("name",first).set("value", second)
<< std::endl;
}
}

*out << "Select " << endl;
*out << cgicc::select().set("name","exceptiontype") << std::endl;
char istring[2];
Expand Down

0 comments on commit 3e4f294

Please sign in to comment.