Re: [Twisted-Python] accurate periodic call

2012-02-22 Thread Phil Mayers
On 02/22/2012 03:20 AM, Tristan Seligmann wrote: > On Tue, Feb 21, 2012 at 1:05 PM, Phil Mayers wrote: >> I realise this is tricky to solve, but I'll note it's not impossible for >> really REALLY big clock skews to happen. For example: recently we had a >> server kernel panic and need a cold reboo

[Twisted-Python] Conch text attribute flattening quirks

2012-02-22 Thread Jonathan Jacobs
Hello, I'm hoping to wrap up work on ticket #3844 [1] before the next release of Twisted, however there are a few quirks in the small DSL used for specifying text with attributes (see the ticket for some commentary on these.) I decided to look more closely at what happens with Conch (which is w

Re: [Twisted-Python] Conch text attribute flattening quirks

2012-02-22 Thread Tim Allen
On Wed, Feb 22, 2012 at 01:47:46PM +0200, Jonathan Jacobs wrote: > >>> from twisted.conch.insults.helper import CharacterAttribute > >>> from twisted.conch.insults.text import flatten, attributes as A > >>> flatten(A.normal['hello', A.bold[' world '], 'quux'], > >>> CharacterAttribute()) > 'hello\

Re: [Twisted-Python] Conch text attribute flattening quirks

2012-02-22 Thread Jonathan Jacobs
On Wed, Feb 22, 2012 at 17:25, Tim Allen wrote: > ...that is, there's no code for 'end bold' or 'end italics' (or blink, dim, > underline, invisible, any kind of colouring, etc.) just an 'end all > special attributes' code. Therefore it's reasonable for conch's helper > library to not handle neste

Re: [Twisted-Python] Which mocker tool for trial ?

2012-02-22 Thread Nicolas AGIUS
Thanks for the tips, Mockito work great with Trial. But it's a bit lazy for my needs, I think I''ll try to use Mock (http://www.voidspace.org.uk/python/mock/) Thx --- En date de : Mar 21.2.12, Johan Rydberg a écrit : De: Johan Rydberg Objet: Re: [Twisted-Python] Which mocker tool for trial