~james-w/python-oops/update-readme-dependencies

« back to all changes in this revision

Viewing changes to oops/config.py

  • Committer: Robert Collins
  • Date: 2011-10-04 07:20:34 UTC
  • mfrom: (19.1.3 hostname)
  • Revision ID: robertc@robertcollins.net-20111004072034-4xn4kiz4m5v3gzfd
MergeĀ hostnameĀ support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
  ...    return 'id 1'
27
27
  >>> config.publishers.append(demo_publish)
28
28
 
 
29
  This allows aggregation of oops reports from different programs into one
 
30
  oops-tools install.
 
31
 
 
32
  >>> config.template['reporter'] = 'myprogram'
 
33
 
29
34
* Create a report::
30
35
 
31
36
  >>> report = config.create()
35
40
  >>> config.publish(report)
36
41
  ['id 1']
37
42
  >>> report
38
 
  {'id': 'id 1'}
 
43
  {'id': 'id 1', 'template': 'myprogram'}
39
44
 
40
45
* See the Config object pydoc for more information.
41
46
 
52
57
* type: The type of the exception that occurred.
53
58
* value: The value of the exception that occurred.
54
59
* time: The time at which the exception occurred.
55
 
* pageid: The identifier for the template/script that oopsed.
56
 
  [deprecated: This maps to the new topic key instead.]
 
60
* hostname: The hostname of the machine the oops was created on. (Set by default)
57
61
* branch_nick: The branch nickname.
58
62
* revno: The revision number of the branch.
59
63
* tb_text: A text version of the traceback.