portal_web.services package

Submodules

portal_web.services.benchmark module

class portal_web.services.benchmark.benchmark(request, name, uid='Thu, 12 Sep 2024 11:48:40', normalize=1.0, scale=1.0, environment='development')[source]

Bases: object

portal_web.services.benchmark.benchmarks(delete=False)[source]

portal_web.services.csv module

portal_web.services.csv.csv_export(path, row, mode='a', **kwargs)[source]
portal_web.services.csv.csv_import(path, **kwargs)[source]

portal_web.services.iban module

exception portal_web.services.iban.IBANError(errmsg)[source]

Bases: Exception

portal_web.services.iban.check_iban(iban)[source]

Check the syntax and the checksum of an IBAN.

Return the parts of the IBAN: Country Code, Checksum, Bank/Branch Code and Account number. Raise an IBANError exception if the input is not correct.

portal_web.services.iban.create_iban(code, bank, account, alternative=0)[source]

Check the input, calculate the checksum and assemble the IBAN.

Return the calculated IBAN. Return the alternative IBAN if alternative is true. Raise an IBANError exception if the input is not correct.

portal_web.services.mailer module

portal_web.services.mailer.get_content(request, template, variables={})[source]
portal_web.services.mailer.get_locale(request)[source]
portal_web.services.mailer.get_template_paths(request)[source]
portal_web.services.mailer.get_template_raw(paths, filename)[source]
portal_web.services.mailer.send_mail(request, template, variables={}, *args, **kwargs)[source]

portal_web.services.translator module

Module contents