def create_repo_path_line_edit(self):
    self.repo_path_line_edit_layout = QtGui.QHBoxLayout()
    self.repo_path_line_edit_layout.addWidget(QtGui.QLabel('Relative Watch Path:'))
    self.repo_path_line_edit = QtGui.QLineEdit()
    self.repo_path_line_edit_layout.addWidget(self.repo_path_line_edit)
    if (self.mode == 'create'):
        paths = tc.get_dirs_with_naming(self.sobject_item.get_search_key(), process_list=['watch_folder'])
        self.repo_path_line_edit.setText(paths['versionless'][0])
    elif (self.mode == 'edit'):
        self.repo_path_line_edit.setText(self.sobject_item.get_watch_folder_path())
    self.main_layout.addLayout(self.repo_path_line_edit_layout, 0, 0, 1, 2)
def create_repo_path_line_edit(self):
    self.repo_path_line_edit_layout = QtGui.QHBoxLayout()
    self.repo_path_line_edit_layout.addWidget(QtGui.QLabel('Relative Watch Path:'))
    self.repo_path_line_edit = QtGui.QLineEdit()
    self.repo_path_line_edit_layout.addWidget(self.repo_path_line_edit)
    if (self.mode == 'create'):
        paths = tc.get_dirs_with_naming(self.sobject_item.get_search_key(), process_list=['watch_folder'])
        self.repo_path_line_edit.setText(paths['versionless'][0])
    elif (self.mode == 'edit'):
        self.repo_path_line_edit.setText(self.sobject_item.get_watch_folder_path())
    self.main_layout.addLayout(self.repo_path_line_edit_layout, 0, 0, 1, 2)