Browse Source

publish muk_branding - 12.0

pull/9/head
MuK IT GmbH 6 years ago
parent
commit
429b8c535d
  1. 2
      muk_branding/__manifest__.py
  2. 5
      muk_branding/tools/debrand.py

2
muk_branding/__manifest__.py

@ -20,7 +20,7 @@
{ {
"name": "MuK Branding", "name": "MuK Branding",
"summary": """Branding Features""", "summary": """Branding Features""",
"version": "12.0.1.0.1",
"version": "12.0.1.0.2",
"category": "Extra Tools", "category": "Extra Tools",
"license": "AGPL-3", "license": "AGPL-3",
"website": "http://www.mukit.at", "website": "http://www.mukit.at",

5
muk_branding/tools/debrand.py

@ -41,10 +41,11 @@ def debrand_documentation(text, value, expression):
return text return text
def debrand_link(text, value, expression): def debrand_link(text, value, expression):
return re.sub(
r'\b{0}.com\b'.format(expression),
text = re.sub(
r'(http(s)?:\/\/)?(www.)?{0}.com'.format(expression),
value, text, flags=re.IGNORECASE value, text, flags=re.IGNORECASE
) )
return text
def debrand_text(text, value, expression): def debrand_text(text, value, expression):
cases = { cases = {

Loading…
Cancel
Save