Skip to content

Commit

Permalink
Fixed pylint error and removed doctest.
Browse files Browse the repository at this point in the history
  • Loading branch information
nuwang committed Feb 27, 2016
1 parent e5bd386 commit 6a83c5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
9 changes: 0 additions & 9 deletions lib/galaxy/tools/parameters/basic.py
Expand Up @@ -651,15 +651,6 @@ def to_dict( self, trans, view='collection', value_mapper=None, other_values=Non
class GenomespaceFileToolParameter(ToolParameter):
"""
Parameter that takes one of two values.
>>> p = GenomespaceFileToolParameter( None, XML( '<param name="genomespace_input_file"
type="genomespacefile"
label="..."
select_type="FILE" size="40"
token_field="genomespace_token" />' ) )
>>> print p.name
genomespace_input_file
>>> print p.get_html()
<input type="hidden" name="blah" value="wax so rockin">
"""

def __init__(self, tool, elem):
Expand Down
4 changes: 2 additions & 2 deletions lib/galaxy/web/form_builder.py
Expand Up @@ -236,11 +236,10 @@ def get_html( self, prefix="" ):
rval += '<div class="toolParamHelp">This Galaxy server allows you to upload files via FTP. To upload some files, log in to the FTP server at <strong>%s</strong> using your Galaxy credentials (email address and password).</div>' % self.ftp_site
return rval


class GenomespaceFileField(BaseField):
"""
A genomspace file browser field.
>>> print GenomespaceFileField( "foo", 100 ).get_html()
<input type="text" name="foo" ...>
"""
def __init__(self, name, value=None):
self.name = name
Expand All @@ -258,6 +257,7 @@ def to_dict( self ):
return dict(name=self.name,
token_field=self.token_field)


class HiddenField(BaseField):
"""
A hidden field.
Expand Down

0 comments on commit 6a83c5d

Please sign in to comment.