Changeset 4974
- Timestamp:
- Jun 15, 2009, 11:05:06 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/credits.txt
r4947 r4974 1 1 $Id$ 2 2 3 The current BASE team is (at BASE 2.12. 0release)3 The current BASE team is (at BASE 2.12.1 release) 4 4 {{{ 5 5 Jari Häkkinen -
trunk/doc/src/docbook/developerdoc/plugin_developer.xml
r4963 r4974 1859 1859 </simpara> 1860 1860 1861 <simpara> 1862 Values are sent as strings to BASE that converts them to the 1863 proper value type before they are passed on to your plug-in. 1864 However, there is one case that can't be 1865 accurately represented with custom JSP pages, namely 'null' values. 1866 A null value is sent by not sending any value at all. This is not 1867 possible with a fixed form. It is of course possible to add some custom 1868 JavaScript that adds and removes form elements as needed, but it is 1869 also possible to let the empty string represent null. Just include a 1870 hidden parameter like this if you want an empty value for the 'one' 1871 parameter converted to null: 1872 </simpara> 1873 <programlisting language="xml"> 1874 <input type="hidden" name="parameter:one:emptyIsNull" value="1"> 1875 </programlisting> 1861 1876 </listitem> 1862 1877 </itemizedlist> -
trunk/src/clients/web/net/sf/basedb/clients/web/extensions/ExtensionsControl.java
r4872 r4974 128 128 */ 129 129 public static synchronized void init(ExtensionsDirectory directory, 130 ServletContext servletContext)130 ServletContext context) 131 131 { 132 132 if (initialised) return; 133 133 log.info("Initialising extensions controller"); 134 134 extensionsDir = directory; 135 servletContext = context; 135 136 136 137 // Create registry -
trunk/src/clients/web/net/sf/basedb/clients/web/extensions/RequestWrapper.java
r4703 r4974 41 41 private final String pathInfo; 42 42 private final String servletPath; 43 private final String originalServletPath; 43 44 44 45 public RequestWrapper(HttpServletRequest request, String servletPath, String pathInfo) … … 47 48 this.pathInfo = pathInfo; 48 49 this.servletPath = servletPath; 50 this.originalServletPath = super.getServletPath(); 49 51 } 50 52 … … 61 63 public String getServletPath() 62 64 { 63 return servletPath; 65 // If the result of 'super.getServletPath()' has changed since 66 // we created this wrapper, Tomcat is messing around with forward or 67 // include requests 68 String sp = super.getServletPath(); 69 return originalServletPath.equals(sp) ? servletPath : sp; 64 70 } 65 71 // ------------------------------------ -
trunk/src/core/net/sf/basedb/util/basefile/BaseFileWriter.java
r4930 r4974 227 227 228 228 private Pattern r = Pattern.compile("\r"); 229 private Pattern n = Pattern.compile("\ r");229 private Pattern n = Pattern.compile("\n"); 230 230 231 231 /** … … 236 236 public String baseEscape(String in) 237 237 { 238 in = r.matcher(in).replaceAll("\\\\ n");238 in = r.matcher(in).replaceAll("\\\\r"); 239 239 in = n.matcher(in).replaceAll("\\\\n"); 240 240 return in; -
trunk/src/core/net/sf/basedb/util/export/TableWriter.java
r4926 r4974 108 108 { 109 109 if (!first) print(ds); 110 if (d != null)print(d == null ? nv : d.toString());110 print(d == null ? nv : d.toString()); 111 111 first = false; 112 112 } -
trunk/src/core/net/sf/basedb/util/export/spotdata/BaseFileExporter.java
r4926 r4974 240 240 String key = entry.getKey(); 241 241 String value = entry.getValue(); 242 String section = null; 242 243 if (first) 243 244 { 245 first = false; 244 246 if ("section".equals(key)) 245 247 { 246 out.baseBeginSection(value);247 continue;248 section = value; 249 key = null; 248 250 } 249 251 else 250 252 { 251 out.baseBeginSection("settings");253 section = "settings"; 252 254 } 253 first = false;254 255 } 255 ++numParameters; 256 out.basePrintHeader(key, value); 256 if (section != null) out.baseBeginSection(section); 257 if (key != null) 258 { 259 ++numParameters; 260 out.basePrintHeader(key, value); 261 } 257 262 } 258 263 out.flush(); 259 264 return numParameters; 260 265 } 266 261 267 262 268 /** -
trunk/src/core/net/sf/basedb/util/export/spotdata/FieldConverter.java
r4930 r4974 271 271 { 272 272 DynamicField df = null; 273 for (int i = 1; i < source.getRawDataType().getChannels(); ++i)273 for (int i = 1; i <= source.getRawDataType().getChannels(); ++i) 274 274 { 275 275 if (fieldName.equals("intensity"+i)) -
trunk/src/plugins/core/net/sf/basedb/plugins/JepIntensityTransformer.java
r4917 r4974 354 354 { 355 355 String parameterName = "ch" + ch + ".expression"; 356 String defaultExpression = " ch(" + ch + ")";356 String defaultExpression = "rawCh(" + ch + ")"; 357 357 PluginParameter<String> chParameter = new PluginParameter<String>( 358 358 parameterName, "Ch " + ch + " transformation", -
trunk/www/common/plugin/index.jsp
r4962 r4974 372 372 { 373 373 String[] sValues = request.getParameterValues("parameter:"+param.getName()); 374 boolean emptyIsNull = Values.getBoolean(request.getParameter("parameter:" + param.getName() + ":emptyIsNull")); 375 if (emptyIsNull) 376 { 377 for (int i = 0; i < sValues.length; ++i) 378 { 379 if ("".equals(sValues[i])) sValues[i] = null; 380 } 381 } 374 382 Object[] oValues = null; 375 383 try -
trunk/www/plugins/net/sf/basedb/plugins/jep_intensity_transformer.jsp
r4917 r4974 315 315 <td style="text-align: right">Resulting transform</td> 316 316 <td> 317 <input type="hidden" name="parameter:resultTransform:emptyIsNull" value="1" /> 317 318 <select name="parameter:resultTransform"> 318 319 <option value="">- same as source data - -
trunk/www/views/experiments/bioassays/list_bioassays.jsp
r4908 r4974 369 369 sortable="false" 370 370 filterable="true" 371 exportable=" true"371 exportable="false" 372 372 formatter="<%=formatter%>" 373 373 />
Note: See TracChangeset
for help on using the changeset viewer.