Commit Graph

15083 Commits

Author SHA1 Message Date
radix 5d193fe5e9 Put the tag in the right place
git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/tags/releases/twisted-8.2.0@25736 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-12-28 21:07:32 +00:00
radix 9c88094af2 TAG TWISTED 8.2.0
Now I'm doomed


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/tags/twisted-8.2.0@25734 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-12-28 19:12:47 +00:00
radix 6e7480900b add NEWS entries even for projects that haven't been changed
git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/releases/release-8.2.x-3540@25733 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-12-28 17:35:20 +00:00
radix a1ba46382b NEWS fixes from review
git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/releases/release-8.2.x-3540@25720 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-12-20 17:14:52 +00:00
radix fba7b732de finalize version number in README and _version.py files
git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/releases/release-8.2.x-3540@25699 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-12-17 04:37:54 +00:00
radix 54ac178c4c finalize NEWS dates and release number
git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/releases/release-8.2.x-3540@25698 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-12-17 04:36:43 +00:00
radix 00b2e825ff Use English
git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/releases/release-8.2.x-3540@25479 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-21 01:02:06 +00:00
radix e4e64443e0 update version numbers to 8.2.0pre2
git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/releases/release-8.2.x-3540@25478 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-21 01:00:44 +00:00
radix 48afc43cb7 update NEWS for pre2
git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/releases/release-8.2.x-3540@25477 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-21 00:59:26 +00:00
ralphm b6d8203b43 Merge r25471 from trunk: Jabber workaround to connect to Google Talk.
git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/releases/release-8.2.x-3540@25472 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-20 18:36:39 +00:00
radix cc87b8570a copy news to project-specific NEWS files
git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/releases/release-8.2.x-3540@25387 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-17 01:43:02 +00:00
radix 76cf576b58 Update version numbers to 8.2.0pre1
git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/releases/release-8.2.x-3540@25386 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-17 01:38:08 +00:00
radix 5b1303e33b oh right, pre1
git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/releases/release-8.2.x-3540@25385 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-17 01:29:42 +00:00
radix ad19767916 add header explaining how to look up ticket numbers to every NEWS file
git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/releases/release-8.2.x-3540@25384 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-17 01:25:21 +00:00
radix 39bb3f4321 QOTR and mention that we support 2.6 now
git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/releases/release-8.2.x-3540@25383 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-17 01:21:50 +00:00
radix 2065476a72 formatting and typos
git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/releases/release-8.2.x-3540@25382 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-16 23:50:44 +00:00
radix 32246a0ea4 oh my GOD a news file
git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/releases/release-8.2.x-3540@25381 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-16 21:03:04 +00:00
radix 566784d9af Branching to 'releases/release-8.2.x-3540'
git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/releases/release-8.2.x-3540@25380 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-16 18:45:56 +00:00
radix bdd26c9da7 Merge configure-log-observer-in-tacs-3534
Author: radix
Reviewer: therve
Fixes: #3534

Now it's possible to specify the log observer used by twistd in a .tac
file by setting the ILogObserver component on the application.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25379 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-16 17:26:17 +00:00
thijs 02d18ee652 Merge doc-diff-service-671: Document the differences between t.a.service.IService.disownServiceParent and t.a.service.IServiceCollection.removeService.
Author: thijs
Reviewer: exarkun, therve
Fixes: #671


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25377 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-16 15:40:19 +00:00
thijs 9c23fd953e Merge drop-faq-3236: Remove the FAQ from doc/core/howto, since it is a duplicate of the FAQ wiki page.
Author: thijs
Reviewer: exarkun, therve
Fixes: #3236


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25375 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-16 15:08:28 +00:00
thijs 9f2aac6268 Merge outdated-coding-standard-3381: Update for the script section of the coding standard.
Author: thijs
Reviewer: exarkun, glyph, therve
Fixes: #3381


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25374 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-16 14:37:02 +00:00
thijs 72eedccd33 Merge update-test-std-2748: General updates for the test-standard document.
Author: thijs
Reviewer: exarkun, therve
Fixes: #2748


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25373 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-16 14:25:48 +00:00
thijs 5ec85563aa Apply misleading-callFromThread-doc.patch: make docs for reactor.callFromThread() clear about when the callable must be threadsafe.
Author: thijs
Reviewer: therve
Fixes: #2449


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25371 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-16 14:10:04 +00:00
thijs b6ffd08392 Merge new-style-classes-2486: Change coding standard to require all new classes to be new style.
Author: thijs
Reviewer: therve
Fixes: #2486


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25370 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-16 14:05:55 +00:00
exarkun 9d53c7934d Merge pid-doc-3197-2
Author: thijs, exarkun
Reviewer: radix
Fixes: #3197

Expand the interface documentation for `IProcessTransport.pid`.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25367 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-16 04:52:25 +00:00
exarkun 156b40ba7d Merge processexited-failure-3521
Author: exarkun
Reviewer: radix
Fixes: #3521

Fix the implementation of `IReactorProcess` so that it passes a `Failure` to
`IProcessProtocol.processExited` instead of passing an exception.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25366 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-16 04:29:49 +00:00
glyph 59955d03de Fixes for the conch client's known_hosts parsing and host key verification.
Fixes #1376
Fixes #1301
Fixes #3494
Fixes #3496
Fixes #1292
Fixes #3499

The main thrust of this change is that it adds a new module to conch, `twisted.conch.client.knownhosts`, which provides a structured representation of OpenSSH's `known_hosts` file.  This is a big step in the direction of modularizing conch's support for verifying host keys and storing the results of that verification, although the internal connection APIs are mostly unchanged at this point, they could now easily be adjusted to speak to an abstract interface and still manipulate the user's actual known_hosts entries rather than completely overriding them.

The individual bugs which this change fixes are too numerous to bother describing twice; have a look at the tickets themselves more information.  Suffice it to say that the conch client is now a lot more reliable (although it still has a long way to go).

In addition to making the conch client more stable, the new API allows for some programmatic manipulation of known_hosts files, which might be independently useful.

Additionally, although the review notes some ways in which the tests can still be improved, the tests for this module can be cited as a ''much'' better example for conch contributors as to how unit tests within conch should look.  While these tests are covering almost exclusively new code, they are covering functionality which has existed (and been broken) for quite some time.

Author: glyph

Reviewers: exarkun, jml


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25365 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-16 02:54:52 +00:00
thijs cd6510c589 Apply gendef-doc-bug.patch: fix documentation bug by removing an incorrect statement about the largeFibonnaciNumber thread.
Author: thijs
Reviewer: exarkun
Fixes: #3524


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25352 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-15 19:29:13 +00:00
exarkun 11fb883017 Apply versions-format.2.patch
Author: feisley
Reviewer: exarkun
Fixes: #3511

Add support to `twisted.python.versions` for parsing SVN format 9 and 10 entries
files.  These are the versions used by subversion 1.5 and (speculatively) 1.6
respectively.  They do not differ from format 8 as far as `Version` is concerned,
so the version 8 parser is re-used.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25349 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-15 17:20:42 +00:00
exarkun 20292629c9 Merge amp-keys-doc-3216
Author: thijs, exarkun
Reviewer: therve
Fixes: #3216

Clarify the amp box key ordering rules in the amp module docstring.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25346 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-15 16:10:59 +00:00
radix 82a508b939 Merge release-script-3439
Author: radix
Reviewer: exarkun
Fixes: #3439

Two new scripts, bin/admin/build-tarballs and build/admin/change-versions,
now automate most of basics of the release process. These scripts are
excluded from the release itself.




git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25335 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-09 23:33:34 +00:00
thijs dd0a79ee4e Apply lorelinks.diff: Fixing dead links in lore documentation.
Author: kehander1
Reviewer: spiv, thijs
Fixes: #3484


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25332 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-09 20:54:16 +00:00
glyph 56d763031c Adjust the stylesheets on lore documents to simply use the default `PRE` font.
This change remove font and size rules left over from an earlier generation of browsers, when the defaults looked truly awful.  These rules would sometimes cause code samples to be displayed in a proportional font, so this corrects buggy rendering of the documentation in some configurations.

Author: glyph

Reviewers: exarkun, jml

Fixes #3121


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25323 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-04 16:42:00 +00:00
exarkun e3c4582b00 Merge negative-tzoffset-3515
Author: exarkun
Reviewer: therve
Fixes: #3515

Fix the formatting done by `FileLogObserver` of timezone offsets
between -1 and -59 minutes (ie, log events emitted in Liberia
before May 1, 1972 or in Ireland between 1880 and October 1, 1916).

Previously these timezone offsets would be incorrectly reported as
positive rather than negative.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25286 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-02 17:09:14 +00:00
exarkun eaec060a95 Apply trial-warnings.patch with changes based on review
Author: exarkun
Reviewer: glyph
Fixes: #3520

Add documentation about the interaction between trial and the `warnings` module.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25280 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-02 15:56:25 +00:00
exarkun da7a35346e Merge flushwarnings-3487
Author: radix, itamar, exarkun
Reviewer: glyph
Fixes: #3487
Fixes: #3427
Fixes: #2820
Fixes: #3506

Introduce `TestCase.flushWarnings`, an API for interacting with the Python warnings
module in unit tests.  By default, the default trial reporter will write warnings
emitted by tests to its output stream (no longer does the runner print them to
stdout).  `flushWarnings` may be used to prevent this from happening in particular
tests, and its return value may be used to make assertions about what warnings have
been emitted.  `TestCase.assertWarns` and `TestCase.callDeprecated` are both now
implemented in terms of this more flexible API.

The default reporter includes rudamentary support for duplicate suppression: each
warning will be reported only once per test, but if a warning is emitted by two or
more tests, it will be reported for each test (isolating tests from each other
further by making warning behavior the same regardless of what other tests have run).

There is also some support for failing tests based on warnings emitted.  If the Python
warnings filters system is used to turn a warning into an exception, any test which
causes such a warning to be emitted will have an error attributed to it.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25279 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-02 14:59:21 +00:00
exarkun 7b1de6b643 Apply strcred-file.patch
Author: exarkun
Reviewer: therve
Fixes: #3519

Use `FilePath` in the strcred tests to write test data to a file.  A
useful consequence of this is that any obscure details about how files
should be written (such as that they should be closed explicitly) is
done for us.  This helps Python runtimes which don't do refcounting
by making sure the data actually ends up in the file before the tests
need it.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25273 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-02 13:59:18 +00:00
ralphm 8735b49bac Add XMPP router functionality and twistd plugin 'xmpp-router'.
Author: ralphm.
Reviewer: therve.
Fixes #3407.

An XMPP router connects parts of a Jabber server known as 'components' and
routes XML Stanzas between components based on addressing on stanzas.
Components usually connect over a TCP socket, so this change adds a factory to
listen for incoming component connections that are tied to the router. Using
the new XmlPipe, components can also be connected to the router within the same
process without using a socket. Finally, a random stream ID is generated for
all incoming XML Streams.

The new xmpp-router twistd plugin allows for easy deployment of a stand-alone
XMPP router.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25272 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-02 12:24:57 +00:00
ralphm 8678109e99 Revert r25269, api-documentation errors.
Reopens #3407.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25270 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-02 12:12:38 +00:00
ralphm a949bd0f89 Add XMPP router functionality and twistd plugin 'xmpp-router'.
Author: ralphm.
Reviewer: therve.
Fixes #3407.

An XMPP router connects parts of a Jabber server known as 'components' and
routes XML Stanzas between components based on addressing on stanzas.
Components usually connect over a TCP socket, so this change adds a factory to
listen for incoming component connections that are tied to the router. Using
the new XmlPipe, components can also be connected to the router within the same
process without using a socket. Finally, a random stream ID is generated for
all incoming XML Streams.

The new xmpp-router twistd plugin allows for easy deployment of a stand-alone
XMPP router.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25269 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-02 11:10:26 +00:00
exarkun 0f1000e8d6 Merge amp-key-enforcer-3478
Author: exarkun
Reviewer: glyph
Fixes: #3478

Change `BinaryBoxProtocol` so that as soon as it receives a key length
prefix larger than 255 it closes the connection and reports a protocol
violation as the reason for any failures.  Keys are restricted to 255
or fewer bytes by the protocol; early disconnection for violation of this
simplifies tracking down bugs in protocol implementations.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25267 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-02 03:11:06 +00:00
exarkun ae8e62e53c Merge early-sendbox-3477
Author: exarkun
Reviewer: glyph
Fixes: #3477
Refs: #3476


Fix `BinaryBoxProtocol` so that its `IBoxReceiver` can send boxes in its
`startReceivingBoxes` callback such that they are actually written to the
transport rather than result in an exception.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25248 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-01 16:37:01 +00:00
exarkun 1e9bd15657 Merge acmodtime-sftp-2902
Author: mwh, exarkun
Reviewer: glyph
Fixes: #2902

Fix the value of FILEXFER_ATTR_ACMODTIME in the sftp implementation and add tests
which parse chunks of the relevant draft standard to make sure all the constants
are correct.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25243 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-01 15:32:22 +00:00
ralphm 738a6a9555 Let XmlStreamServerFactory not hold onto authenticator instances.
Author: ralphm.
Reviewer: exarkun.
Fixes #3464.

This splits the code installing bootstrap event observers in a seperate class
`t.w.x.xmlstream.BootstrapMixin` to have
`t.w.p.j.xmlstream.XmlStreamServerFactory` depend on that, instead of
`t.w.x.xmlstream.XmlStreamFactoryMixin`. The former now builds the protocol
itself, so the odd dance with the `args` attribute is not needed.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25242 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-11-01 10:06:04 +00:00
exarkun 8e58e6dbdd Merge testcase-comparison-2605
Author: exarkun
Reviewer: radix
Fixes: #2605

Explicitly define equal and not-equal comparison for `TestCase` so that instances
only compare equal to themselves.  This is the Python 2.3 - 2.5 behavior but not
the Python 2.6 behavior.  It is required in order for a particular test method to
be runnable more than once in a single suite.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25227 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-10-31 22:07:23 +00:00
exarkun bd50beffbd Revert 25218 - test suite regression
Reopens #2902

The newly added test fails on Python 2.3:

{{{
===============================================================================
[FAIL]: twisted.conch.test.test_filetransfer.TestConstants.test_constantsAgainstSpec

Traceback (most recent call last):
  File "/srv/bb-slave/Run/slave/full2.3/Twisted/twisted/conch/test/test_filetransfer.py", line 676, in test_constantsAgainstSpec
    self.assertEqual(v, getattr(filetransfer, k))
twisted.trial.unittest.FailTest: not equal:
a = -2147483648
b = 2147483648L

-------------------------------------------------------------------------------
}}}

This appears to be due to the behavior of int("0x80000000", 0) on Python 2.3 (which
differs from the behavior on later versions of Python).


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25219 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-10-31 17:47:25 +00:00
mwh bd7ef5aa0f Merge my patch: Fix the value of FILEXFER_ATTR_ACMODTIME in the sftp implementation.
Fix the value of FILEXFER_ATTR_ACMODTIME in twisted.conch.ssh.filetransfer, and
add tests that parse chunks of the relevant draft standard to make sure all the
constants are correct.

Author: mwh
Reviewer: glyph
Fixes: #2902


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25218 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-10-31 17:27:30 +00:00
exarkun a50971043c Merge ftp-delete-3491-2
Author: tarjei, exarkun
Reviewer: thijs, radix
Fixes: #3491

Add `FTPClient.removeFile` method for using the file deletion feature of FTP.

Also deprecate `FTPClient.changeDirectory` which added incorrect response
handling on top of `FTPClient.cwd`.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25201 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-10-30 18:07:26 +00:00
exarkun 3488963d28 Merge firsterror-display-3298
Author: exarkun, itamar
Reviewer: thijs, radix
Fixes: #3298

Change the `__str__` and `__repr__` of `FirstError` so that they include better
and more complete information about the underlying failure (and therefore the
real cause of the exception).  This means that when these errors are logged, the
log will now include information about the exception which caused the `FirstError`.

The deprecated tuple-like interface is also removed.


git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/trunk@25200 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb
2008-10-30 16:57:56 +00:00