Seems like missing import:

from galaxy.model.orm import or_

I will check on it tomorrow as a whole.

Thanks for reporting this.

M.

On Tue, Oct 7, 2014 at 7:03 PM, Saket Choudhary <saketkc@gmail.com> wrote:
I am trying to reset metadata on all my repositories at once using the
"Reset metadata on my repositories" button on
https://testtoolshed.g2.bx.psu.edu/ It fails with:

Internal Server Error

Galaxy was unable to successfully complete your request

URL: http://testtoolshed.g2.bx.psu.edu/repository/reset_metadata_on_my_writable_repositories_in_tool_shed
Module galaxy.web.framework.middleware.error:149 in __call__
>>  app_iter = self.application(environ, sr_checker)
Module paste.debug.prints:106 in __call__
>>  environ, self.app)
Module paste.wsgilib:543 in intercept_output
>>  app_iter = application(environ, replacement_start_response)
Module paste.recursive:84 in __call__
>>  return self.application(environ, start_response)
Module paste.httpexceptions:633 in __call__
>>  return self.application(environ, start_response)
Module galaxy.web.framework.base:132 in __call__
>>  return self.handle_request( environ, start_response )
Module galaxy.web.framework.base:190 in handle_request
>>  body = method( trans, **kwargs )
Module galaxy.webapps.tool_shed.controllers.repository:2795
inreset_metadata_on_my_writable_repositories_in_tool_shed
>>  my_writable=True )
Module tool_shed.metadata.repository_metadata_manager:65 in
build_repository_ids_select_field
>>  query = self.get_query_for_setting_metadata_on_repositories( my_writable=my_writable,order=True )
Module tool_shed.metadata.repository_metadata_manager:513 in
get_query_for_setting_metadata_on_repositories
>>  .filter( or_( *clause_list ) )
NameError: global name 'or_' is not defined
extra data
___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
  http://lists.bx.psu.edu/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/