The search for requests is giving me the following error.
Interesting because if I use the Advanced Search works well.
Do you have any ideas where I should look?
Other than this, I pretty much have a working version for Tracking Samples via Galaxy.
We are mounting our run directory directly to the server running galaxy so at this point we do not need to transfer anything.
To connect a sample to the tracking system, we might use a data library with a local path to that sample. Seems reasonable?

Thanks in advance.
AttributeError: 'StateColumn' object has no attribute 'get_filter'

Hi, I'm source!

Extra Data

CGI Variables
HTTP_ACCEPT 'application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5'
HTTP_ACCEPT_ENCODING 'gzip, deflate'
HTTP_CONNECTION 'keep-alive'
HTTP_COOKIE 'galaxysession=c6ca0ddb55be603a9d10856f5a7750a46606c5ee2c7c9708d522a267a74384365d964a7f30438d18'
HTTP_HOST 'mir-13:8087'
HTTP_REFERER 'http://mir-13:8087/requests_admin/list'
HTTP_USER_AGENT 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-us) AppleWebKit/533.18.1 (KHTML, like Gecko) Version/5.0.2 Safari/533.18.5'
PATH_INFO '/requests_admin/list'
QUERY_STRING 'f-deleted=False&f-state=New&f-name=All&f-desc=All&sort=-update_time&async=false&page=1&f-free-text-search=cells&'

Extra Data

WSGI Variables
application <paste.debug.prints.PrintDebugMiddleware object at 0x1a2ec150>
paste.cookies (<SimpleCookie: galaxysession='c6ca0ddb55be603a9d10856f5a7750a46606c5ee2c7c9708d522a267a74384365d964a7f30438d18'>, 'galaxysession=c6ca0ddb55be603a9d10856f5a7750a46606c5ee2c7c9708d522a267a74384365d964a7f30438d18')
paste.evalexception <weberror.evalexception.middleware.EvalException object at 0x1a6c3110>
paste.evalexception.debug_count 1287428209
paste.expected_exceptions [<class 'paste.httpexceptions.HTTPException'>]
paste.httpexceptions <paste.httpexceptions.HTTPExceptionHandler object at 0x1a2dadd0>
paste.httpserver.thread_pool <paste.httpserver.ThreadPool object at 0x167f8490>
paste.printdebug_listeners [<cStringIO.StringO object at 0x1b13c810>, <open file '<stderr>', mode 'w' at 0x2af73d376210>]
paste.recursive.forward <paste.recursive.Forwarder from />
paste.recursive.include <paste.recursive.Includer from />
paste.recursive.include_app_iter <paste.recursive.IncluderAppIter from />
paste.recursive.script_name ''
paste.remove_printdebug <function remove_printdebug at 0x1b193050>
paste.throw_errors True
weberror.evalexception <weberror.evalexception.middleware.EvalException object at 0x1a6c3110>
weberror.evalexception.debug_count 1287428209
webob._parsed_query_vars (MultiDict([('f-deleted', 'False'), ('f-state', 'New'), ('f-name', 'All'), ('f-desc', 'All'), ('sort', '-update_time'), ('async', 'false'), ('page', '1'), ('f-free-text-search', 'cells')]), 'f-deleted=False&f-state=New&f-name=All&f-desc=All&sort=-update_time&async=false&page=1&f-free-text-search=cells&')
wsgi process 'Multithreaded'

No Template information available.

Error Traceback:

View as:   Interactive  |  Text  |  XML (full)
AttributeError: 'StateColumn' object has no attribute 'get_filter'
URL: http://mir-13:8087/requests_admin/list?f-deleted=False&f-state=New&f-name=All&f-desc=All&sort=-update_time&async=false&page=1&f-free-text-search=cells&
Module weberror.evalexception.middleware:364 in respond         view
>>  app_iter = self.application(environ, detect_start_response)
Module paste.debug.prints:98 in __call__         view
>>  environ, self.app)
Module paste.wsgilib:539 in intercept_output         view
>>  app_iter = application(environ, replacement_start_response)
Module paste.recursive:80 in __call__         view
>>  return self.application(environ, start_response)
Module paste.httpexceptions:632 in __call__         view
>>  return self.application(environ, start_response)
Module galaxy.web.framework.base:145 in __call__         view
>>  body = method( trans, **kwargs )
Module galaxy.web.framework:139 in decorator         view
>>  return func( self, trans, *args, **kwargs )
Module galaxy.web.controllers.requests_admin:343 in list         view
>>  return self.request_grid( trans, **kwd )
Module galaxy.web.framework.helpers.grids:138 in __call__         view
>>  query = column.filter( trans, trans.user, query, column_filter )
Module galaxy.web.framework.helpers.grids:593 in filter         view
>>  clause_list.append( column.get_filter( trans, user, column_filter ) )
AttributeError: 'StateColumn' object has no attribute 'get_filter'

Extra Features
>>Display the lines of code near each part of the traceback
Show a debug prompt to allow you to directly debug the code at the traceback

On Oct 18, 2010, at 12:40 PM, Kelly Vincent wrote:


Yes, it is totally fine to ask questions like this.

To answer your question, unfortunately, there is a weakness in the testing framework that limits the way repeat elements can be tested, but I believe the testing you want to do can be done. The only way to test a tool with a repeat element is with a test that includes exactly one _set_ for each repeat. (When you run the tool, you could include 0, 1, or more than 1 sets, but you can only test with 1.) 

In your case, you have a repeat element that requires two files, as follows:
  <repeat name="replicates" title="Replicate">
    <param name="tfile" type="data" label="Treatment file"/>
    <param name="cfile" type="data" label="Control file"/>
So your test should include something like: 
    <param name="tfile" value="ma2c_treatment_ce4.pair" />
    <param name="cfile" value="controlfile.name" />
Both files need to be included and only one pair (set) can be. The parameter names in the test should exactly match the names in the input parameter declaration. Note that the syntax for the command line should refer to the repeat items something like this:
  #for $r in $replicates
  #end for

If you want to see a simple example, tools/filters/sorter.xml has a fairly complex repeat element with multiple items and tests that run.

Let us know if you have any other questions.


On Oct 18, 2010, at 11:39 AM, WANGYi wrote:

Our team is now testing our integrated tools under galaxy testing framework.
At present, we are trying to test the '<repeat>' elements in one of our tools, e.g.
<repeat name="replicates" title="Replicate">
      <param name="tfile" type="data" label="Treatment file"/>
      <param name="cfile" type="data" label="Control file"/>

we tried add the following section into the <test> tag and ran the test, but did not make it.
    <param name="tfile" value="ma2c_treatment_ce4.pair" />
    <param name="tfile" value="ma2c_treatment_ce5.pair" />

after searching all over the internet, we were not able to come up with any solution (maybe we missed). 
I dont know if it proper to ask you a question like this. but we are kinda desprated for this issue. 
Could you please kindly tell us, how to write the test section when there are two or more 'replicates' inputed?
Appreciate so much.
galaxy-dev mailing list

galaxy-dev mailing list