def get_registered_columns(self): i = 1 columns = [] while True: column_num = "column%s" % i column_id = self.core.config.read('Columns', column_num) if column_id: account_id = get_account_id_from(column_id) column_slug = get_column_slug_from(column_id) columns.append(Column(account_id, column_slug)) i += 1 else: break return columns
def set_column_id(self, column_id): self.id_ = column_id self.account_id = get_account_id_from(column_id) self.protocol_id = get_protocol_from(self.account_id) self.webview.column_id = column_id