Mercurial > public > ostc4
annotate ostc4pack/OSTC4_RTE_upload.bin @ 291:24ff72e627f4 div-fixes-6
Deco Models: limit NDL to 240 minutes
Limit the deco models to report up to 240 minutes of NDL. This was
triggered by commit 54d14bc2083c. The logbook uses a 8bit UINT, so
storing a value of 300 is impossible (which was taken care of in
that commit). But, as the small OSTCs also use 240 min. as maximum
NDL, we better do that here too (from a consistency point of view).
And while we are at it ... kick out some commented and useless code.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author | Jan Mulder <jlmulder@xs4all.nl> --> --> |
---|
<type 'exceptions.AttributeError'> | Python 2.7.17: /usr/bin/python Mon Nov 4 17:25:09 2024 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/var/www/vhosts/heinrichsweikamp.com/code/hgweb-public.cgi in <module>() |
15 |
16 from mercurial import demandimport; demandimport.enable() |
17 from mercurial.hgweb import hgweb, wsgicgi |
18 application = hgweb(config) |
=> 19 wsgicgi.launch(application) |
wsgicgi = <module 'mercurial.hgweb.wsgicgi' from '/usr/lib...on2.7/dist-packages/mercurial/hgweb/wsgicgi.pyc'>, wsgicgi.launch = <function launch>, application = <mercurial.hgweb.hgwebdir_mod.hgwebdir object> |
/usr/lib/python2.7/dist-packages/mercurial/hgweb/wsgicgi.py in launch(application=<mercurial.hgweb.hgwebdir_mod.hgwebdir object>) |
83 content = application(environ, start_response) |
84 try: |
=> 85 for chunk in content: |
86 write(chunk) |
87 if not headers_sent: |
chunk = '/public/ostc4/rev/24ff72e627f4">changeset</a></l...#115;4all.nl>', content = <generator object run_wsgi> |
/usr/lib/python2.7/dist-packages/mercurial/hgweb/hgwebdir_mod.py in run_wsgi(self=<mercurial.hgweb.hgwebdir_mod.hgwebdir object>, req=<mercurial.hgweb.request.wsgirequest object>) |
227 with profiling.profile(self.ui, enabled=profile): |
228 try: |
=> 229 for r in self._runwsgi(req): |
230 yield r |
231 finally: |
r = '/public/ostc4/rev/24ff72e627f4">changeset</a></l...#115;4all.nl>', self = <mercurial.hgweb.hgwebdir_mod.hgwebdir object>, self._runwsgi = <bound method hgwebdir._runwsgi of <mercurial.hgweb.hgwebdir_mod.hgwebdir object>>, req = <mercurial.hgweb.request.wsgirequest object> |
/usr/lib/python2.7/dist-packages/mercurial/hgweb/hgweb_mod.py in run_wsgi(self=<mercurial.hgweb.hgweb_mod.hgweb object>, req=<mercurial.hgweb.request.wsgirequest object>) |
316 profile = repo.ui.configbool('profiling', 'enabled') |
317 with profiling.profile(repo.ui, enabled=profile): |
=> 318 for r in self._runwsgi(req, repo): |
319 yield r |
320 |
r = '/public/ostc4/rev/24ff72e627f4">changeset</a></l...#115;4all.nl>', self = <mercurial.hgweb.hgweb_mod.hgweb object>, self._runwsgi = <bound method hgweb._runwsgi of <mercurial.hgweb.hgweb_mod.hgweb object>>, req = <mercurial.hgweb.request.wsgirequest object>, repo = <filteredrepo:served <mercurial.localrepo.localrepository object>> |
/usr/lib/python2.7/dist-packages/mercurial/util.py in increasingchunks(source=<generator object _flatten>, min=4096, max=65536) |
1015 buf = [] |
1016 blen = 0 |
=> 1017 for chunk in source: |
1018 buf.append(chunk) |
1019 blen += len(chunk) |
chunk = '">\n ', source = <generator object _flatten> |
/usr/lib/python2.7/dist-packages/mercurial/templater.py in _flatten(thing=<generator object runtemplate>) |
1279 yield pycompat.bytestr(i) |
1280 else: |
=> 1281 for j in _flatten(i): |
1282 yield j |
1283 |
j = '">\n<span>Ignore whitespace changes - </span>\n<sp..."ignorewseol-checkbox" type="checkbox" />\n</form>', global _flatten = <function _flatten>, i = <generator object runmap> |
/usr/lib/python2.7/dist-packages/mercurial/templater.py in _flatten(thing=<generator object runmap>) |
1270 yield pycompat.bytestr(thing) |
1271 else: |
=> 1272 for i in thing: |
1273 i = templatekw.unwraphybrid(i) |
1274 if isinstance(i, bytes): |
i undefined, thing = <generator object runmap> |
/usr/lib/python2.7/dist-packages/mercurial/templater.py in runmap(context=<mercurial.templater.engine object>, mapping={'annotate': <function annotate>, 'author': 'Jan Mulder <jlmulder@xs4all.nl>', 'bookmarks': [], 'branch': [{'name': 'div-fixes-6'}], 'branches': [], 'child': <function <lambda>>, 'date': (1556781367.0, -7200), 'desc': 'Deco Models: limit NDL to 240 minutes\n\nLimit the....\n\nSigned-off-by: Jan Mulder <jlmulder@xs4all.nl>', 'diffopts': {'context': 3, 'git': False, 'ignoreblanklines': False, 'ignorews': False, 'ignorewsamount': False, 'ignorewseol': False, 'index': 0, 'nobinary': False, 'nodates': False, 'noprefix': False, ...}, 'extra': {'branch': 'div-fixes-6', 'histedit_source': '0702f458c85751d6e148226c4b42099727b9b51e', 'rebase_source': '8621f5f218fcc8d5cac0d02c01f2d4c0acd536b3'}, ...}, data=((<function runsymbol>, 'annotate'), (<function runtemplate>, [(<function runstring>, '\n<tr id="'), (<function runsymbol>, 'lineid'), (<function runstring>, '"'), (<function ifeq>, [(<function runsymbol>, 'node'), (<function runsymbol>, 'originalnode'), (<function runstring>, ' class="thisrev"')]), (<function runstring>, '>\n<td class="annotate parity'), (<function runsymbol>, 'blockparity'), (<function runstring>, '">\n'), (<function if_>, [(<function runsymbol>, 'blockhead'), (<function runtemplate>, [...])]), (<function runstring>, '\n<div class="annotate-info">\n<div>\n<a href="'), (<function runfilter>, ((<function runsymbol>, 'url'), <function urlescape>)), (<function runstring>, 'annotate/'), (<function runfilter>, ((<function runsymbol>, 'node'), <function short>)), (<function runstring>, '/'), (<function runfilter>, ((<function runsymbol>, 'file'), <function urlescape>)), (<function runmap>, ((<function runsymbol>, 'sessionvars'), (<function runtemplate>, [...]))), (<function runstring>, '#l'), (<function runsymbol>, 'targetline'), (<function runstring>, '">\n'), (<function runfilter>, ((<function runsymbol>, 'node'), <function short>)), (<function runstring>, '</a>\n'), ...]))) |
460 raise error.ParseError(_("%r is not iterable") % d) |
461 |
=> 462 for i, v in enumerate(diter): |
463 lm = mapping.copy() |
464 lm['index'] = i |
i undefined, v undefined, builtin enumerate = <type 'enumerate'>, diter = <generator object annotate> |
/usr/lib/python2.7/dist-packages/mercurial/hgweb/webcommands.py in annotate(**map={'annotate': <function annotate>, 'author': 'Jan Mulder <jlmulder@xs4all.nl>', 'bookmarks': [], 'branch': [{'name': 'div-fixes-6'}], 'branches': [], 'child': <function <lambda>>, 'date': (1556781367.0, -7200), 'desc': 'Deco Models: limit NDL to 240 minutes\n\nLimit the....\n\nSigned-off-by: Jan Mulder <jlmulder@xs4all.nl>', 'diffopts': {'context': 3, 'git': False, 'ignoreblanklines': False, 'ignorews': False, 'ignorewsamount': False, 'ignorewseol': False, 'index': 0, 'nobinary': False, 'nodates': False, 'noprefix': False, ...}, 'extra': {'branch': 'div-fixes-6', 'histedit_source': '0702f458c85751d6e148226c4b42099727b9b51e', 'rebase_source': '8621f5f218fcc8d5cac0d02c01f2d4c0acd536b3'}, ...}) |
907 blockparitygen = paritygen(1) |
908 for lineno, (aline, l) in enumerate(lines): |
=> 909 f = aline.fctx |
910 rev = f.rev() |
911 if rev != previousrev: |
f undefined, aline = (<filectx ostc4pack/OSTC4_RTE_upload.bin@c659fda83e44>, 1), aline.fctx undefined |
<type 'exceptions.AttributeError'>: 'tuple' object has no attribute 'fctx'
args =
("'tuple' object has no attribute 'fctx'",)
message =
"'tuple' object has no attribute 'fctx'"