##// END OF EJS Templates
configitems: register the 'email.cc' config
Boris Feld -
r34599:0a68c615 default
parent child Browse files
Show More
@@ -1,809 +1,812
1 1 # configitems.py - centralized declaration of configuration option
2 2 #
3 3 # Copyright 2017 Pierre-Yves David <pierre-yves.david@octobus.net>
4 4 #
5 5 # This software may be used and distributed according to the terms of the
6 6 # GNU General Public License version 2 or any later version.
7 7
8 8 from __future__ import absolute_import
9 9
10 10 import functools
11 11
12 12 from . import (
13 13 encoding,
14 14 error,
15 15 )
16 16
17 17 def loadconfigtable(ui, extname, configtable):
18 18 """update config item known to the ui with the extension ones"""
19 19 for section, items in configtable.items():
20 20 knownitems = ui._knownconfig.setdefault(section, {})
21 21 knownkeys = set(knownitems)
22 22 newkeys = set(items)
23 23 for key in sorted(knownkeys & newkeys):
24 24 msg = "extension '%s' overwrite config item '%s.%s'"
25 25 msg %= (extname, section, key)
26 26 ui.develwarn(msg, config='warn-config')
27 27
28 28 knownitems.update(items)
29 29
30 30 class configitem(object):
31 31 """represent a known config item
32 32
33 33 :section: the official config section where to find this item,
34 34 :name: the official name within the section,
35 35 :default: default value for this item,
36 36 :alias: optional list of tuples as alternatives.
37 37 """
38 38
39 39 def __init__(self, section, name, default=None, alias=()):
40 40 self.section = section
41 41 self.name = name
42 42 self.default = default
43 43 self.alias = list(alias)
44 44
45 45 coreitems = {}
46 46
47 47 def _register(configtable, *args, **kwargs):
48 48 item = configitem(*args, **kwargs)
49 49 section = configtable.setdefault(item.section, {})
50 50 if item.name in section:
51 51 msg = "duplicated config item registration for '%s.%s'"
52 52 raise error.ProgrammingError(msg % (item.section, item.name))
53 53 section[item.name] = item
54 54
55 55 # special value for case where the default is derived from other values
56 56 dynamicdefault = object()
57 57
58 58 # Registering actual config items
59 59
60 60 def getitemregister(configtable):
61 61 return functools.partial(_register, configtable)
62 62
63 63 coreconfigitem = getitemregister(coreitems)
64 64
65 65 coreconfigitem('auth', 'cookiefile',
66 66 default=None,
67 67 )
68 68 # bookmarks.pushing: internal hack for discovery
69 69 coreconfigitem('bookmarks', 'pushing',
70 70 default=list,
71 71 )
72 72 # bundle.mainreporoot: internal hack for bundlerepo
73 73 coreconfigitem('bundle', 'mainreporoot',
74 74 default='',
75 75 )
76 76 # bundle.reorder: experimental config
77 77 coreconfigitem('bundle', 'reorder',
78 78 default='auto',
79 79 )
80 80 coreconfigitem('censor', 'policy',
81 81 default='abort',
82 82 )
83 83 coreconfigitem('chgserver', 'idletimeout',
84 84 default=3600,
85 85 )
86 86 coreconfigitem('chgserver', 'skiphash',
87 87 default=False,
88 88 )
89 89 coreconfigitem('cmdserver', 'log',
90 90 default=None,
91 91 )
92 92 coreconfigitem('color', 'mode',
93 93 default='auto',
94 94 )
95 95 coreconfigitem('color', 'pagermode',
96 96 default=dynamicdefault,
97 97 )
98 98 coreconfigitem('commands', 'status.relative',
99 99 default=False,
100 100 )
101 101 coreconfigitem('commands', 'status.skipstates',
102 102 default=[],
103 103 )
104 104 coreconfigitem('commands', 'status.verbose',
105 105 default=False,
106 106 )
107 107 coreconfigitem('commands', 'update.requiredest',
108 108 default=False,
109 109 )
110 110 coreconfigitem('debug', 'dirstate.delaywrite',
111 111 default=0,
112 112 )
113 113 coreconfigitem('devel', 'all-warnings',
114 114 default=False,
115 115 )
116 116 coreconfigitem('devel', 'bundle2.debug',
117 117 default=False,
118 118 )
119 119 coreconfigitem('devel', 'cache-vfs',
120 120 default=None,
121 121 )
122 122 coreconfigitem('devel', 'check-locks',
123 123 default=False,
124 124 )
125 125 coreconfigitem('devel', 'check-relroot',
126 126 default=False,
127 127 )
128 128 coreconfigitem('devel', 'default-date',
129 129 default=None,
130 130 )
131 131 coreconfigitem('devel', 'deprec-warn',
132 132 default=False,
133 133 )
134 134 coreconfigitem('devel', 'disableloaddefaultcerts',
135 135 default=False,
136 136 )
137 137 coreconfigitem('devel', 'empty-changegroup',
138 138 default=False,
139 139 )
140 140 coreconfigitem('devel', 'legacy.exchange',
141 141 default=list,
142 142 )
143 143 coreconfigitem('devel', 'servercafile',
144 144 default='',
145 145 )
146 146 coreconfigitem('devel', 'serverexactprotocol',
147 147 default='',
148 148 )
149 149 coreconfigitem('devel', 'serverrequirecert',
150 150 default=False,
151 151 )
152 152 coreconfigitem('devel', 'strip-obsmarkers',
153 153 default=True,
154 154 )
155 155 coreconfigitem('devel', 'warn-config',
156 156 default=None,
157 157 )
158 158 coreconfigitem('devel', 'warn-config-default',
159 159 default=None,
160 160 )
161 161 coreconfigitem('devel', 'user.obsmarker',
162 162 default=None,
163 163 )
164 164 coreconfigitem('diff', 'nodates',
165 165 default=None,
166 166 )
167 167 coreconfigitem('diff', 'showfunc',
168 168 default=None,
169 169 )
170 170 coreconfigitem('diff', 'unified',
171 171 default=None,
172 172 )
173 173 coreconfigitem('diff', 'git',
174 174 default=None,
175 175 )
176 176 coreconfigitem('diff', 'ignorews',
177 177 default=None,
178 178 )
179 179 coreconfigitem('diff', 'ignorewsamount',
180 180 default=None,
181 181 )
182 182 coreconfigitem('diff', 'ignoreblanklines',
183 183 default=None,
184 184 )
185 185 coreconfigitem('diff', 'ignorewseol',
186 186 default=None,
187 187 )
188 188 coreconfigitem('diff', 'nobinary',
189 189 default=None,
190 190 )
191 191 coreconfigitem('diff', 'noprefix',
192 192 default=None,
193 193 )
194 194 coreconfigitem('email', 'bcc',
195 195 default=None,
196 196 )
197 coreconfigitem('email', 'cc',
198 default=None,
199 )
197 200 coreconfigitem('email', 'charsets',
198 201 default=list,
199 202 )
200 203 coreconfigitem('email', 'from',
201 204 default=None,
202 205 )
203 206 coreconfigitem('email', 'method',
204 207 default='smtp',
205 208 )
206 209 coreconfigitem('experimental', 'allowdivergence',
207 210 default=False,
208 211 )
209 212 coreconfigitem('experimental', 'bundle-phases',
210 213 default=False,
211 214 )
212 215 coreconfigitem('experimental', 'bundle2-advertise',
213 216 default=True,
214 217 )
215 218 coreconfigitem('experimental', 'bundle2-output-capture',
216 219 default=False,
217 220 )
218 221 coreconfigitem('experimental', 'bundle2.pushback',
219 222 default=False,
220 223 )
221 224 coreconfigitem('experimental', 'bundle2lazylocking',
222 225 default=False,
223 226 )
224 227 coreconfigitem('experimental', 'bundlecomplevel',
225 228 default=None,
226 229 )
227 230 coreconfigitem('experimental', 'changegroup3',
228 231 default=False,
229 232 )
230 233 coreconfigitem('experimental', 'clientcompressionengines',
231 234 default=list,
232 235 )
233 236 coreconfigitem('experimental', 'copytrace',
234 237 default='on',
235 238 )
236 239 coreconfigitem('experimental', 'copytrace.sourcecommitlimit',
237 240 default=100,
238 241 )
239 242 coreconfigitem('experimental', 'crecordtest',
240 243 default=None,
241 244 )
242 245 coreconfigitem('experimental', 'editortmpinhg',
243 246 default=False,
244 247 )
245 248 coreconfigitem('experimental', 'maxdeltachainspan',
246 249 default=-1,
247 250 )
248 251 coreconfigitem('experimental', 'mmapindexthreshold',
249 252 default=None,
250 253 )
251 254 coreconfigitem('experimental', 'nonnormalparanoidcheck',
252 255 default=False,
253 256 )
254 257 coreconfigitem('experimental', 'stabilization',
255 258 default=list,
256 259 alias=[('experimental', 'evolution')],
257 260 )
258 261 coreconfigitem('experimental', 'stabilization.bundle-obsmarker',
259 262 default=False,
260 263 alias=[('experimental', 'evolution.bundle-obsmarker')],
261 264 )
262 265 coreconfigitem('experimental', 'stabilization.track-operation',
263 266 default=True,
264 267 alias=[('experimental', 'evolution.track-operation')]
265 268 )
266 269 coreconfigitem('experimental', 'exportableenviron',
267 270 default=list,
268 271 )
269 272 coreconfigitem('experimental', 'extendedheader.index',
270 273 default=None,
271 274 )
272 275 coreconfigitem('experimental', 'extendedheader.similarity',
273 276 default=False,
274 277 )
275 278 coreconfigitem('experimental', 'format.compression',
276 279 default='zlib',
277 280 )
278 281 coreconfigitem('experimental', 'graphshorten',
279 282 default=False,
280 283 )
281 284 coreconfigitem('experimental', 'graphstyle.parent',
282 285 default=dynamicdefault,
283 286 )
284 287 coreconfigitem('experimental', 'graphstyle.missing',
285 288 default=dynamicdefault,
286 289 )
287 290 coreconfigitem('experimental', 'graphstyle.grandparent',
288 291 default=dynamicdefault,
289 292 )
290 293 coreconfigitem('experimental', 'hook-track-tags',
291 294 default=False,
292 295 )
293 296 coreconfigitem('experimental', 'httppostargs',
294 297 default=False,
295 298 )
296 299 coreconfigitem('experimental', 'manifestv2',
297 300 default=False,
298 301 )
299 302 coreconfigitem('experimental', 'mergedriver',
300 303 default=None,
301 304 )
302 305 coreconfigitem('experimental', 'obsmarkers-exchange-debug',
303 306 default=False,
304 307 )
305 308 coreconfigitem('experimental', 'rebase.multidest',
306 309 default=False,
307 310 )
308 311 coreconfigitem('experimental', 'revertalternateinteractivemode',
309 312 default=True,
310 313 )
311 314 coreconfigitem('experimental', 'revlogv2',
312 315 default=None,
313 316 )
314 317 coreconfigitem('experimental', 'spacemovesdown',
315 318 default=False,
316 319 )
317 320 coreconfigitem('experimental', 'treemanifest',
318 321 default=False,
319 322 )
320 323 coreconfigitem('experimental', 'updatecheck',
321 324 default=None,
322 325 )
323 326 coreconfigitem('format', 'aggressivemergedeltas',
324 327 default=False,
325 328 )
326 329 coreconfigitem('format', 'chunkcachesize',
327 330 default=None,
328 331 )
329 332 coreconfigitem('format', 'dotencode',
330 333 default=True,
331 334 )
332 335 coreconfigitem('format', 'generaldelta',
333 336 default=False,
334 337 )
335 338 coreconfigitem('format', 'manifestcachesize',
336 339 default=None,
337 340 )
338 341 coreconfigitem('format', 'maxchainlen',
339 342 default=None,
340 343 )
341 344 coreconfigitem('format', 'obsstore-version',
342 345 default=None,
343 346 )
344 347 coreconfigitem('format', 'usefncache',
345 348 default=True,
346 349 )
347 350 coreconfigitem('format', 'usegeneraldelta',
348 351 default=True,
349 352 )
350 353 coreconfigitem('format', 'usestore',
351 354 default=True,
352 355 )
353 356 coreconfigitem('hostsecurity', 'ciphers',
354 357 default=None,
355 358 )
356 359 coreconfigitem('hostsecurity', 'disabletls10warning',
357 360 default=False,
358 361 )
359 362 coreconfigitem('http_proxy', 'always',
360 363 default=False,
361 364 )
362 365 coreconfigitem('http_proxy', 'host',
363 366 default=None,
364 367 )
365 368 coreconfigitem('http_proxy', 'no',
366 369 default=list,
367 370 )
368 371 coreconfigitem('http_proxy', 'passwd',
369 372 default=None,
370 373 )
371 374 coreconfigitem('http_proxy', 'user',
372 375 default=None,
373 376 )
374 377 coreconfigitem('logtoprocess', 'commandexception',
375 378 default=None,
376 379 )
377 380 coreconfigitem('logtoprocess', 'commandfinish',
378 381 default=None,
379 382 )
380 383 coreconfigitem('logtoprocess', 'command',
381 384 default=None,
382 385 )
383 386 coreconfigitem('logtoprocess', 'develwarn',
384 387 default=None,
385 388 )
386 389 coreconfigitem('logtoprocess', 'uiblocked',
387 390 default=None,
388 391 )
389 392 coreconfigitem('merge', 'checkunknown',
390 393 default='abort',
391 394 )
392 395 coreconfigitem('merge', 'checkignored',
393 396 default='abort',
394 397 )
395 398 coreconfigitem('merge', 'followcopies',
396 399 default=True,
397 400 )
398 401 coreconfigitem('merge', 'preferancestor',
399 402 default=lambda: ['*'],
400 403 )
401 404 coreconfigitem('pager', 'ignore',
402 405 default=list,
403 406 )
404 407 coreconfigitem('pager', 'pager',
405 408 default=dynamicdefault,
406 409 )
407 410 coreconfigitem('patch', 'eol',
408 411 default='strict',
409 412 )
410 413 coreconfigitem('patch', 'fuzz',
411 414 default=2,
412 415 )
413 416 coreconfigitem('paths', 'default',
414 417 default=None,
415 418 )
416 419 coreconfigitem('paths', 'default-push',
417 420 default=None,
418 421 )
419 422 coreconfigitem('phases', 'checksubrepos',
420 423 default='follow',
421 424 )
422 425 coreconfigitem('phases', 'new-commit',
423 426 default='draft',
424 427 )
425 428 coreconfigitem('phases', 'publish',
426 429 default=True,
427 430 )
428 431 coreconfigitem('profiling', 'enabled',
429 432 default=False,
430 433 )
431 434 coreconfigitem('profiling', 'format',
432 435 default='text',
433 436 )
434 437 coreconfigitem('profiling', 'freq',
435 438 default=1000,
436 439 )
437 440 coreconfigitem('profiling', 'limit',
438 441 default=30,
439 442 )
440 443 coreconfigitem('profiling', 'nested',
441 444 default=0,
442 445 )
443 446 coreconfigitem('profiling', 'output',
444 447 default=None,
445 448 )
446 449 coreconfigitem('profiling', 'showmax',
447 450 default=0.999,
448 451 )
449 452 coreconfigitem('profiling', 'showmin',
450 453 default=dynamicdefault,
451 454 )
452 455 coreconfigitem('profiling', 'sort',
453 456 default='inlinetime',
454 457 )
455 458 coreconfigitem('profiling', 'statformat',
456 459 default='hotpath',
457 460 )
458 461 coreconfigitem('profiling', 'type',
459 462 default='stat',
460 463 )
461 464 coreconfigitem('progress', 'assume-tty',
462 465 default=False,
463 466 )
464 467 coreconfigitem('progress', 'changedelay',
465 468 default=1,
466 469 )
467 470 coreconfigitem('progress', 'clear-complete',
468 471 default=True,
469 472 )
470 473 coreconfigitem('progress', 'debug',
471 474 default=False,
472 475 )
473 476 coreconfigitem('progress', 'delay',
474 477 default=3,
475 478 )
476 479 coreconfigitem('progress', 'disable',
477 480 default=False,
478 481 )
479 482 coreconfigitem('progress', 'estimateinterval',
480 483 default=60.0,
481 484 )
482 485 coreconfigitem('progress', 'refresh',
483 486 default=0.1,
484 487 )
485 488 coreconfigitem('progress', 'width',
486 489 default=dynamicdefault,
487 490 )
488 491 coreconfigitem('push', 'pushvars.server',
489 492 default=False,
490 493 )
491 494 coreconfigitem('server', 'bundle1',
492 495 default=True,
493 496 )
494 497 coreconfigitem('server', 'bundle1gd',
495 498 default=None,
496 499 )
497 500 coreconfigitem('server', 'compressionengines',
498 501 default=list,
499 502 )
500 503 coreconfigitem('server', 'concurrent-push-mode',
501 504 default='strict',
502 505 )
503 506 coreconfigitem('server', 'disablefullbundle',
504 507 default=False,
505 508 )
506 509 coreconfigitem('server', 'maxhttpheaderlen',
507 510 default=1024,
508 511 )
509 512 coreconfigitem('server', 'preferuncompressed',
510 513 default=False,
511 514 )
512 515 coreconfigitem('server', 'uncompressed',
513 516 default=True,
514 517 )
515 518 coreconfigitem('server', 'uncompressedallowsecret',
516 519 default=False,
517 520 )
518 521 coreconfigitem('server', 'validate',
519 522 default=False,
520 523 )
521 524 coreconfigitem('server', 'zliblevel',
522 525 default=-1,
523 526 )
524 527 coreconfigitem('smtp', 'host',
525 528 default=None,
526 529 )
527 530 coreconfigitem('smtp', 'local_hostname',
528 531 default=None,
529 532 )
530 533 coreconfigitem('smtp', 'password',
531 534 default=None,
532 535 )
533 536 coreconfigitem('smtp', 'port',
534 537 default=dynamicdefault,
535 538 )
536 539 coreconfigitem('smtp', 'tls',
537 540 default='none',
538 541 )
539 542 coreconfigitem('smtp', 'username',
540 543 default=None,
541 544 )
542 545 coreconfigitem('sparse', 'missingwarning',
543 546 default=True,
544 547 )
545 548 coreconfigitem('trusted', 'groups',
546 549 default=list,
547 550 )
548 551 coreconfigitem('trusted', 'users',
549 552 default=list,
550 553 )
551 554 coreconfigitem('ui', '_usedassubrepo',
552 555 default=False,
553 556 )
554 557 coreconfigitem('ui', 'allowemptycommit',
555 558 default=False,
556 559 )
557 560 coreconfigitem('ui', 'archivemeta',
558 561 default=True,
559 562 )
560 563 coreconfigitem('ui', 'askusername',
561 564 default=False,
562 565 )
563 566 coreconfigitem('ui', 'clonebundlefallback',
564 567 default=False,
565 568 )
566 569 coreconfigitem('ui', 'clonebundleprefers',
567 570 default=list,
568 571 )
569 572 coreconfigitem('ui', 'clonebundles',
570 573 default=True,
571 574 )
572 575 coreconfigitem('ui', 'color',
573 576 default='auto',
574 577 )
575 578 coreconfigitem('ui', 'commitsubrepos',
576 579 default=False,
577 580 )
578 581 coreconfigitem('ui', 'debug',
579 582 default=False,
580 583 )
581 584 coreconfigitem('ui', 'debugger',
582 585 default=None,
583 586 )
584 587 coreconfigitem('ui', 'fallbackencoding',
585 588 default=None,
586 589 )
587 590 coreconfigitem('ui', 'forcecwd',
588 591 default=None,
589 592 )
590 593 coreconfigitem('ui', 'forcemerge',
591 594 default=None,
592 595 )
593 596 coreconfigitem('ui', 'formatdebug',
594 597 default=False,
595 598 )
596 599 coreconfigitem('ui', 'formatjson',
597 600 default=False,
598 601 )
599 602 coreconfigitem('ui', 'formatted',
600 603 default=None,
601 604 )
602 605 coreconfigitem('ui', 'graphnodetemplate',
603 606 default=None,
604 607 )
605 608 coreconfigitem('ui', 'http2debuglevel',
606 609 default=None,
607 610 )
608 611 coreconfigitem('ui', 'interactive',
609 612 default=None,
610 613 )
611 614 coreconfigitem('ui', 'interface',
612 615 default=None,
613 616 )
614 617 coreconfigitem('ui', 'logblockedtimes',
615 618 default=False,
616 619 )
617 620 coreconfigitem('ui', 'logtemplate',
618 621 default=None,
619 622 )
620 623 coreconfigitem('ui', 'merge',
621 624 default=None,
622 625 )
623 626 coreconfigitem('ui', 'mergemarkers',
624 627 default='basic',
625 628 )
626 629 coreconfigitem('ui', 'mergemarkertemplate',
627 630 default=('{node|short} '
628 631 '{ifeq(tags, "tip", "", '
629 632 'ifeq(tags, "", "", "{tags} "))}'
630 633 '{if(bookmarks, "{bookmarks} ")}'
631 634 '{ifeq(branch, "default", "", "{branch} ")}'
632 635 '- {author|user}: {desc|firstline}')
633 636 )
634 637 coreconfigitem('ui', 'nontty',
635 638 default=False,
636 639 )
637 640 coreconfigitem('ui', 'origbackuppath',
638 641 default=None,
639 642 )
640 643 coreconfigitem('ui', 'paginate',
641 644 default=True,
642 645 )
643 646 coreconfigitem('ui', 'patch',
644 647 default=None,
645 648 )
646 649 coreconfigitem('ui', 'portablefilenames',
647 650 default='warn',
648 651 )
649 652 coreconfigitem('ui', 'promptecho',
650 653 default=False,
651 654 )
652 655 coreconfigitem('ui', 'quiet',
653 656 default=False,
654 657 )
655 658 coreconfigitem('ui', 'quietbookmarkmove',
656 659 default=False,
657 660 )
658 661 coreconfigitem('ui', 'remotecmd',
659 662 default='hg',
660 663 )
661 664 coreconfigitem('ui', 'report_untrusted',
662 665 default=True,
663 666 )
664 667 coreconfigitem('ui', 'rollback',
665 668 default=True,
666 669 )
667 670 coreconfigitem('ui', 'slash',
668 671 default=False,
669 672 )
670 673 coreconfigitem('ui', 'ssh',
671 674 default='ssh',
672 675 )
673 676 coreconfigitem('ui', 'statuscopies',
674 677 default=False,
675 678 )
676 679 coreconfigitem('ui', 'strict',
677 680 default=False,
678 681 )
679 682 coreconfigitem('ui', 'style',
680 683 default='',
681 684 )
682 685 coreconfigitem('ui', 'supportcontact',
683 686 default=None,
684 687 )
685 688 coreconfigitem('ui', 'textwidth',
686 689 default=78,
687 690 )
688 691 coreconfigitem('ui', 'timeout',
689 692 default='600',
690 693 )
691 694 coreconfigitem('ui', 'traceback',
692 695 default=False,
693 696 )
694 697 coreconfigitem('ui', 'tweakdefaults',
695 698 default=False,
696 699 )
697 700 coreconfigitem('ui', 'usehttp2',
698 701 default=False,
699 702 )
700 703 coreconfigitem('ui', 'username',
701 704 alias=[('ui', 'user')]
702 705 )
703 706 coreconfigitem('ui', 'verbose',
704 707 default=False,
705 708 )
706 709 coreconfigitem('verify', 'skipflags',
707 710 default=None,
708 711 )
709 712 coreconfigitem('web', 'accesslog',
710 713 default='-',
711 714 )
712 715 coreconfigitem('web', 'address',
713 716 default='',
714 717 )
715 718 coreconfigitem('web', 'allow_archive',
716 719 default=list,
717 720 )
718 721 coreconfigitem('web', 'allow_read',
719 722 default=list,
720 723 )
721 724 coreconfigitem('web', 'baseurl',
722 725 default=None,
723 726 )
724 727 coreconfigitem('web', 'cacerts',
725 728 default=None,
726 729 )
727 730 coreconfigitem('web', 'certificate',
728 731 default=None,
729 732 )
730 733 coreconfigitem('web', 'collapse',
731 734 default=False,
732 735 )
733 736 coreconfigitem('web', 'csp',
734 737 default=None,
735 738 )
736 739 coreconfigitem('web', 'deny_read',
737 740 default=list,
738 741 )
739 742 coreconfigitem('web', 'descend',
740 743 default=True,
741 744 )
742 745 coreconfigitem('web', 'description',
743 746 default="",
744 747 )
745 748 coreconfigitem('web', 'encoding',
746 749 default=lambda: encoding.encoding,
747 750 )
748 751 coreconfigitem('web', 'errorlog',
749 752 default='-',
750 753 )
751 754 coreconfigitem('web', 'ipv6',
752 755 default=False,
753 756 )
754 757 coreconfigitem('web', 'maxchanges',
755 758 default=10,
756 759 )
757 760 coreconfigitem('web', 'maxfiles',
758 761 default=10,
759 762 )
760 763 coreconfigitem('web', 'maxshortchanges',
761 764 default=60,
762 765 )
763 766 coreconfigitem('web', 'motd',
764 767 default='',
765 768 )
766 769 coreconfigitem('web', 'name',
767 770 default=dynamicdefault,
768 771 )
769 772 coreconfigitem('web', 'port',
770 773 default=8000,
771 774 )
772 775 coreconfigitem('web', 'prefix',
773 776 default='',
774 777 )
775 778 coreconfigitem('web', 'push_ssl',
776 779 default=True,
777 780 )
778 781 coreconfigitem('web', 'refreshinterval',
779 782 default=20,
780 783 )
781 784 coreconfigitem('web', 'stripes',
782 785 default=1,
783 786 )
784 787 coreconfigitem('web', 'style',
785 788 default='paper',
786 789 )
787 790 coreconfigitem('web', 'templates',
788 791 default=None,
789 792 )
790 793 coreconfigitem('web', 'view',
791 794 default='served',
792 795 )
793 796 coreconfigitem('worker', 'backgroundclose',
794 797 default=dynamicdefault,
795 798 )
796 799 # Windows defaults to a limit of 512 open files. A buffer of 128
797 800 # should give us enough headway.
798 801 coreconfigitem('worker', 'backgroundclosemaxqueue',
799 802 default=384,
800 803 )
801 804 coreconfigitem('worker', 'backgroundcloseminfilecount',
802 805 default=2048,
803 806 )
804 807 coreconfigitem('worker', 'backgroundclosethreadcount',
805 808 default=4,
806 809 )
807 810 coreconfigitem('worker', 'numcpus',
808 811 default=None,
809 812 )
General Comments 0
You need to be logged in to leave comments. Login now