Skip to content

Commit

Permalink
HUE-2579 [sqoop] Support new REST API attributes without breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
generalpiston committed Mar 3, 2015
1 parent 31d5d13 commit 7c3b1a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions apps/sqoop/src/sqoop/client/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

class Config(object):

def __init__(self, id, name, type, inputs=[]):
def __init__(self, id, name, type, inputs=[], **kwargs):
self.id = id
self.name = name
self.type = type
Expand All @@ -43,7 +43,7 @@ def to_dict(self):

class Input(object):

def __init__(self, id, type, name, value=None, values=None, sensitive=False, size=-1):
def __init__(self, id, type, name, value=None, values=None, sensitive=False, size=-1, **kwargs):
self.id = id
self.type = type
self.name = name
Expand Down
10 changes: 5 additions & 5 deletions apps/sqoop/src/sqoop/templates/app.mako
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,6 @@ ${ commonheader(None, "sqoop", user) | n,unicode }
</a>
</div>
<!-- /ko -->
<div class="clearfix"></div>
<a data-bind="routie: 'link/new'" href="javascript:void(0);" style="margin: 5px; display: block">
<i class="fa fa-plus"></i> ${_('Add a new link')}
</a>
</div>
</div>

Expand All @@ -433,7 +429,11 @@ ${ commonheader(None, "sqoop", user) | n,unicode }
</a>
</div>
<!-- /ko -->
<div class="clearfix"></div>
</div>
</div>

<div class="control-group">
<div class="controls">
<a data-bind="routie: 'link/new'" href="javascript:void(0);" style="margin: 5px; display: block">
<i class="fa fa-plus"></i> ${_('Add a new link')}
</a>
Expand Down

0 comments on commit 7c3b1a2

Please sign in to comment.