Web.Basic> HTMLLink fixes

dev-linux
Ivan Maslov 4 years ago
parent 94b861041a
commit 6cb4705551

@ -41,7 +41,7 @@ def HTMLLinkJSOnClick(inJSOnClickStr, inTitleStr, inColorStr=None):
return lResult return lResult
# Create HTMLLink by the def, argdict, arglist, gsettingsStr, logger Str titleStr, color, (add in processor queue) # Create HTMLLink by the def, argdict, arglist, gsettingsStr, logger Str titleStr, color, (add in processor queue)
def HTMLLinkDefProcessor(inGSettings, inDef, inArgDict=None, inArgList=None, inArgGSettingsStr="", inArgLoggerStr="", inLinkTitleStr=None, inLinkColorStr=""): def HTMLLinkDefProcessor(inGSettings, inDef, inArgDict=None, inArgList=None, inArgGSettingsStr=None, inArgLoggerStr=None, inLinkTitleStr=None, inLinkColorStr=""):
lDefAliasStr = inDef lDefAliasStr = inDef
if callable(inDef): lDefAliasStr = str(inDef) if callable(inDef): lDefAliasStr = str(inDef)
if inLinkTitleStr is None: inLinkTitleStr = lDefAliasStr if inLinkTitleStr is None: inLinkTitleStr = lDefAliasStr
@ -52,7 +52,7 @@ def HTMLLinkDefProcessor(inGSettings, inDef, inArgDict=None, inArgList=None, inA
return lHTMLStr return lHTMLStr
# Create HTMLLink by the def, argdict, arglist, gsettingsStr, logger Str titleStr, color, (execute permanently) # Create HTMLLink by the def, argdict, arglist, gsettingsStr, logger Str titleStr, color, (execute permanently)
def HTMLLinkDefExecute(inGSettings, inDef, inArgDict=None, inArgList=None, inArgGSettingsStr="", inArgLoggerStr="", inLinkTitleStr=None, inLinkColorStr=""): def HTMLLinkDefExecute(inGSettings, inDef, inArgDict=None, inArgList=None, inArgGSettingsStr=None, inArgLoggerStr=None, inLinkTitleStr=None, inLinkColorStr=""):
lDefAliasStr = inDef lDefAliasStr = inDef
if callable(inDef): lDefAliasStr = str(inDef) if callable(inDef): lDefAliasStr = str(inDef)
if inLinkTitleStr is None: inLinkTitleStr = lDefAliasStr if inLinkTitleStr is None: inLinkTitleStr = lDefAliasStr

Loading…
Cancel
Save