Changeset 20752


Ignore:
Timestamp:
01/03/10 10:13:04 (2 years ago)
Author:
julie
Message:

added missing arguments

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bio/webapp/src/org/intermine/bio/web/logic/OrthologueConverter.java

    r20740 r20752  
    3838{ 
    3939 
    40      
     40 
    4141    // D. melanogaster, C. lupus familiaris 
    4242    private static final Pattern ORGANISM_SHORTNAME_MATCHER = Pattern.compile("([a-zA-Z]\\..+)"); 
    4343    private Model model; 
    44      
     44 
    4545 
    4646    /** 
     
    5858 
    5959        // organism 
    60         q.addConstraint("Gene.homologues.homologue.organism.shortName",  
     60        q.addConstraint("Gene.homologues.homologue.organism.shortName", 
    6161                Constraints.eq(organismName)); 
    6262 
     
    9898        return orthologues.toString(); 
    9999    } 
    100      
     100 
    101101    /** 
    102102     * runs the orthologue conversion pathquery and returns list of intermine IDs 
  • trunk/intermine/web/main/src/org/intermine/web/struts/PortalQueryAction.java

    r20740 r20752  
    171171                if (addparameters.length > 0) { 
    172172 
    173                     BagConverter bagConverter = getBagConverter(converterClassName); 
     173                    BagConverter bagConverter = getBagConverter(im, webConfig, converterClassName); 
    174174 
    175175                    imBag = profile.createBag(bagName, className, ""); 
     
    215215    } 
    216216 
    217     private BagConverter getBagConverter(String converterClassName) { 
     217    private BagConverter getBagConverter(InterMineAPI im, WebConfig webConfig,  
     218            String converterClassName) { 
    218219 
    219220        BagConverter bagConverter = bagConverters.get(converterClassName); 
     
    223224                Class clazz = Class.forName(converterClassName); 
    224225                Constructor constructor = clazz.getConstructor(); 
    225                 bagConverter = (BagConverter) constructor.newInstance(); 
     226                bagConverter = (BagConverter) constructor.newInstance(im, webConfig); 
    226227            } catch (Exception e) { 
    227228                throw new RuntimeException("Failed to construct bagconverter for " 
Note: See TracChangeset for help on using the changeset viewer.