summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Pierre Ledure <jp@ledure.be>2019-08-17 16:15:00 +0200
committerJean-Pierre Ledure <jp@ledure.be>2019-08-17 16:15:00 +0200
commitcd963fe2f8607dc829a529adfe3a8a7464835070 (patch)
tree9b4b5fb2f78cb6494deb96493f92d19cacae8f95
parente01949e9c56c1605a4eccbae285f85d1b3085e15 (diff)
Access2Base - access2base.py fix module class
Properties changed to methods when having arguments Methods Find and ProcOfLine not supported because they require passing arguments by reference (not available in Python) Change-Id: I92044e8ea4a07e2093b23699bf28b9d1ac0fe695
-rw-r--r--wizards/source/access2base/access2base.py21
1 files changed, 15 insertions, 6 deletions
diff --git a/wizards/source/access2base/access2base.py b/wizards/source/access2base/access2base.py
index c3f20a479dda..b831fcd4efca 100644
--- a/wizards/source/access2base/access2base.py
+++ b/wizards/source/access2base/access2base.py
@@ -1322,15 +1322,24 @@ class _Form(_BasicObject):
class _Module(_BasicObject):
- classProperties = dict(CountOfDeclarationLines = False, CountOfLines = False, Lines = False
- , ProcBodyLine = False, ProcCountLines = False, ProcOfLine = False, ProcStartLine = False
- , Type = False
+ classProperties = dict(CountOfDeclarationLines = False, CountOfLines = False
+ , ProcStartLine = False, Type = False
)
- def Find(self, target, startline, startcolumn, endline, endcolumn, wholeword = False
+ """ def Find(self, target, startline, startcolumn, endline, endcolumn, wholeword = False
, matchcase = False, patternsearch = False):
return self.W(_vbMethod, self.objectreference, 'Find', target, startline, startcolumn, endline
- , endcolumn, wholeword, matchcase, patternsearch)
+ , endcolumn, wholeword, matchcase, patternsearch) """
+ def Lines(self, line, numlines):
+ return self.W(_vbMethod, self.objectreference, 'Lines', line, numlines)
+ def ProcBodyLine(self, procname, prockind):
+ return self.W(_vbMethod, self.objectreference, 'ProcBodyLine', procname, prockind)
+ def ProcCountLines(self, procname, prockind):
+ return self.W(_vbMethod, self.objectreference, 'ProcCountLines', procname, prockind)
+ """ def ProcOfLine(self, line, prockind):
+ return self.W(_vbMethod, self.objectreference, 'ProcOfLine', line, prockind) """
+ def ProcStartLine(self, procname, prockind):
+ return self.W(_vbMethod, self.objectreference, 'ProcStartLine', procname, prockind)
class _OptionGroup(_BasicObject):
@@ -1435,7 +1444,7 @@ Set of directly callable error handling methods
def DebugPrint(*args):
dargs = ()
for arg in args:
- if isinstance(arg, _BasicObject): arg = '[OBJECT]'
+ if isinstance(arg, _BasicObject): arg = '[' + arg.objecttype + ']'
dargs = dargs + (arg,)
return _A2B.invokeMethod('DebugPrint', _WRAPPERMODULE, *dargs)
def TraceConsole(): return _A2B.invokeMethod('TraceConsole', 'Trace')