<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/raven.git/tests/context/tests.py, branch awslambda-integration</title>
<subtitle>github.com: getsentry/raven-python.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/raven.git/'/>
<entry>
<title>Added support for improved context thread binding</title>
<updated>2016-05-03T21:12:51+00:00</updated>
<author>
<name>Armin Ronacher</name>
<email>armin.ronacher@active-4.com</email>
</author>
<published>2016-05-03T21:12:51+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/raven.git/commit/?id=18529f23558a10ca9fdb33be25d57a4305152783'/>
<id>18529f23558a10ca9fdb33be25d57a4305152783</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>New context() API</title>
<updated>2013-12-03T04:08:51+00:00</updated>
<author>
<name>David Cramer</name>
<email>dcramer@gmail.com</email>
</author>
<published>2013-12-03T03:53:20+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/raven.git/commit/?id=6f03dee429633f437c278faa7d62d5213b16ba37'/>
<id>6f03dee429633f437c278faa7d62d5213b16ba37</id>
<content type='text'>
This makes the API much easier to use, and resembles the raven-ruby implementation. Users can continually merge context (generally within their middleware), and simply need to call context.clear() to refresh it.

The following APIs are added as part of this changeset:

```
Client.context -- the accessible context instance
&gt;&gt;&gt; Client.context.get()

Client.context.clear() -- flush the current context
&gt;&gt;&gt; Client.context.clear()

Client.user_context() -- a shortcut to set the user interface
&gt;&gt;&gt; Client.user_context({'email': 'foo@example.com'})

Client.tags_context() -- add additional tags to context (or overwrite an existing tag)
&gt;&gt;&gt; Client.tags_context({'key': 'value'})

Client.extra_context() -- add additional data to context (or overwrite an existing key in the data)
&gt;&gt;&gt; Client.extra_context({'key': 'value'})
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This makes the API much easier to use, and resembles the raven-ruby implementation. Users can continually merge context (generally within their middleware), and simply need to call context.clear() to refresh it.

The following APIs are added as part of this changeset:

```
Client.context -- the accessible context instance
&gt;&gt;&gt; Client.context.get()

Client.context.clear() -- flush the current context
&gt;&gt;&gt; Client.context.clear()

Client.user_context() -- a shortcut to set the user interface
&gt;&gt;&gt; Client.user_context({'email': 'foo@example.com'})

Client.tags_context() -- add additional tags to context (or overwrite an existing tag)
&gt;&gt;&gt; Client.tags_context({'key': 'value'})

Client.extra_context() -- add additional data to context (or overwrite an existing key in the data)
&gt;&gt;&gt; Client.extra_context({'key': 'value'})
```
</pre>
</div>
</content>
</entry>
<entry>
<title>Move TestCase into raven.utils.testutils</title>
<updated>2013-05-17T18:10:37+00:00</updated>
<author>
<name>David Cramer</name>
<email>dcramer@gmail.com</email>
</author>
<published>2013-05-17T18:10:37+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/raven.git/commit/?id=3a57e6db4b499432888a58cadfad4bbdfd21cfb3'/>
<id>3a57e6db4b499432888a58cadfad4bbdfd21cfb3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use compat's TestCase</title>
<updated>2013-03-28T19:24:14+00:00</updated>
<author>
<name>Xavier Ordoquy</name>
<email>xordoquy@linovia.com</email>
</author>
<published>2013-03-28T19:24:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/raven.git/commit/?id=7eaf78a30c69c9c536f2ae4c4d7d3b5fab2bd945'/>
<id>7eaf78a30c69c9c536f2ae4c4d7d3b5fab2bd945</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Switch to exam test runner instead of our fixture implementation</title>
<updated>2012-12-26T21:29:47+00:00</updated>
<author>
<name>David Cramer</name>
<email>dcramer@gmail.com</email>
</author>
<published>2012-12-26T21:29:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/raven.git/commit/?id=3ee500c7d58027e01309230a53da1bf781553ac4'/>
<id>3ee500c7d58027e01309230a53da1bf781553ac4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add client.context()</title>
<updated>2012-12-20T04:26:59+00:00</updated>
<author>
<name>David Cramer</name>
<email>dcramer@gmail.com</email>
</author>
<published>2012-12-20T04:26:35+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/python-packages/raven.git/commit/?id=7224c399261bd0c0ddb7e4d1d00d180cce431738'/>
<id>7224c399261bd0c0ddb7e4d1d00d180cce431738</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
