From 860ca5d8f7b55894610951da929f268601046aaf Mon Sep 17 00:00:00 2001 From: IDK Date: Fri, 5 Feb 2021 22:16:30 +0100 Subject: [PATCH] pylint --- TrivialFormulator.py | 10 ++----- VERSION.py | 6 +++- notesdb.py | 6 ++-- pe_settag.py | 2 +- pe_view.py | 2 +- sco_edit_module.py | 3 +- sco_parcours_dut.py | 32 +++++++++++++++++++-- sco_pvpdf.py | 67 ++++++++++++++++++++++++++------------------ sco_trombino.py | 26 +++++++++++------ scolog.py | 6 ++-- 10 files changed, 104 insertions(+), 56 deletions(-) diff --git a/TrivialFormulator.py b/TrivialFormulator.py index 788d95da..5cadf929 100644 --- a/TrivialFormulator.py +++ b/TrivialFormulator.py @@ -9,7 +9,7 @@ v 1.2 """ -from types import * +from types import BooleanType, StringType def TrivialFormulator( @@ -44,7 +44,7 @@ def TrivialFormulator( -1 cancel (if cancelbutton specified) HTML form: html string (form to insert in your web page) values: None or, when the form is submitted and correctly filled, - a dictionnary with the requeted values. + a dictionnary with the requeted values. formdescription: sequence [ (field, description), ... ] where description is a dict with following (optional) keys: default : default value for this field ('') @@ -63,7 +63,7 @@ def TrivialFormulator( withcheckbox: if true, place a checkbox at the left of the input elem. Checked items will be returned in 'tf-checked' attributes: a liste of strings to put in the HTML form element - template: HTML template for element + template: HTML template for element HTML elements: input_type : 'text', 'textarea', 'password', 'radio', 'menu', 'checkbox', @@ -368,9 +368,6 @@ class TF: idx = 0 for idx in range(len(self.formdescription)): (field, descr) = self.formdescription[idx] - nextitemname = None - if idx < len(self.formdescription) - 2: - nextitemname = self.formdescription[idx + 1][0] if descr.get("readonly", False): R.append(self._ReadOnlyElement(field, descr)) continue @@ -682,7 +679,6 @@ class TF: "Generate HTML for an element, read-only" R = [] title = descr.get("title", field.capitalize()) - withcheckbox = descr.get("withcheckbox", False) input_type = descr.get("input_type", "text") klass = descr.get("cssclass", "") klass = " " + klass diff --git a/VERSION.py b/VERSION.py index 68853baa..8e8a40a4 100644 --- a/VERSION.py +++ b/VERSION.py @@ -1,11 +1,15 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "7.21" +SCOVERSION = "7.22" SCONAME = "ScoDoc" SCONEWS = """ +

Année 2021

+

Année 2020