<s> from __future__ import unicode_literals <EOL> from django import forms <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from reviewboard . hostingsvcs . forms import HostingServiceForm <EOL> from reviewboard . hostingsvcs . service import HostingService <EOL> class CodebaseHQForm ( HostingServiceForm ) : <EOL> codebasehq_project_name = forms . CharField ( <EOL> label = _ ( '<STR_LIT>' ) , <EOL> max_length = <NUM_LIT:64> , <EOL> required = True , <EOL> widget = forms . TextInput ( attrs = { '<STR_LIT:size>' : '<STR_LIT>' } ) ) <EOL> codebasehq_group_name = forms . CharField ( <EOL> label = _ ( '<STR_LIT>' ) , <EOL> max_length = <NUM_LIT> , <EOL> required = True , <EOL> widget = forms . TextInput ( attrs = { '<STR_LIT:size>' : '<STR_LIT>' } ) , <EOL> help_text = _ ( '<STR_LIT>' ) ) <EOL> codebasehq_repo_name = forms . CharField ( <EOL> label = _ ( '<STR_LIT>' ) , <EOL> max_length = <NUM_LIT> , <EOL> required = True , <EOL> widget = forms . TextInput ( attrs = { '<STR_LIT:size>' : '<STR_LIT>' } ) , <EOL> help_text = _ ( '<STR_LIT>' <EOL> '<STR_LIT>' ) ) <EOL> codebasehq_api_username = forms . CharField ( <EOL> label = _ ( '<STR_LIT>' ) , <EOL> max_length = <NUM_LIT> , <EOL> required = True , <EOL> widget = forms . TextInput ( attrs = { '<STR_LIT:size>' : '<STR_LIT>' } ) , <EOL> help_text = _ ( <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) ) <EOL> codebasehq_api_key = forms . CharField ( <EOL> label = _ ( '<STR_LIT>' ) , <EOL> max_length = <NUM_LIT> , <EOL> required = True , <EOL> widget = forms . TextInput ( attrs = { '<STR_LIT:size>' : '<STR_LIT>' } ) ) <EOL> class CodebaseHQ ( HostingService ) : <EOL> name = '<STR_LIT>' <EOL> form = CodebaseHQForm <EOL> supports_repositories = True <EOL> supported_scmtools = [ '<STR_LIT>' ] <EOL> repository_fields = { <EOL> '<STR_LIT>' : { <EOL> '<STR_LIT:username>' : '<STR_LIT>' , <EOL> '<STR_LIT:password>' : '<STR_LIT>' , <EOL> '<STR_LIT:path>' : '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' , <EOL> } , <EOL> } </s>
