2021-05-29 18:22:51 +02:00
|
|
|
# -*- mode: python -*-
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2021-06-02 14:50:41 +02:00
|
|
|
"""essai: ceci serait un module scodoc/sco_xxx.py
|
2021-05-29 18:22:51 +02:00
|
|
|
"""
|
|
|
|
|
|
|
|
import types
|
|
|
|
|
|
|
|
import sco_utils as scu
|
|
|
|
|
2021-06-02 14:50:41 +02:00
|
|
|
|
2021-05-29 18:22:51 +02:00
|
|
|
def sco_get_version(context, REQUEST=None):
|
2021-06-02 14:50:41 +02:00
|
|
|
"""Une fonction typique de ScoDoc7"""
|
2021-05-29 18:22:51 +02:00
|
|
|
return """<html><body><p>%s</p></body></html>""" % scu.SCOVERSION
|
|
|
|
|
2021-06-02 14:50:41 +02:00
|
|
|
|
|
|
|
def test_refactor(context, x=1):
|
|
|
|
x = context.toto()
|
|
|
|
y = ("context=" + context.module_is_locked("alpha")) + "23"
|