Re: [Twisted-Python] Forking after starting AsyncioSelectorReactor: Supported?

2018-08-27 Thread Tim Allen
On Mon, Aug 27, 2018 at 09:12:57PM -0700, David Foster wrote: > So my question is, does Twisted support being forked after starting a > reactor or not? I haven't used Twisted with the AsyncioSelectorReactor on macOS myself, but the `asyncio` docs suggest[1] that the default macOS event loop uses t

Re: [Twisted-Python] Twisted 16.7.0rc1 Release Candidate Announcement

2016-12-29 Thread Tim Allen
On Thu, Dec 29, 2016 at 05:27:44AM -0800, Glyph Lefkowitz wrote: > Increasingly, we are assuming a pip-like packaging toolchain for > dealing with Twisted's dependencies, so getting familiar with this > stuff - pip, requirements.txt, pinning, virtualenv - is worthwhile. > (It'll make your life easi

Re: [Twisted-Python] Problem with installing twisted 13.0 with Python 2.7 on 64 bit Win 7

2013-06-18 Thread Tim Allen
On Tue, Jun 18, 2013 at 04:12:17PM +1000, Weikai (Victor) Xie wrote: > >>> import twisted > >>> twisted.web > Traceback (most recent call last): > File "", line 1, in > AttributeError: 'module' object has no attribute 'web' I believe that's just how packages work in Python. On a Linux machine I

Re: [Twisted-Python] question : How to listen to USB-HID

2013-05-17 Thread Tim Allen
On Fri, May 17, 2013 at 02:54:47PM +0700, b...@indoakses-online.com wrote: > But I plan to replace arduino with digispark ( > http://digistump.com/products/1 ) > > Problem is I just realize that this device will recognized as USB-HID >From this page: http://digistump.com/wiki/digispark/tutor

[Twisted-Python] So... Python 3.4 is getting its own async I/O system

2013-03-18 Thread Tim Allen
In Guido's keynote at PyCon 2013, apparently he talked about adding an async I/O module to Python 3.4. It looks like his slides can be viewed here: https://www.dropbox.com/s/xknbe58zcvjhzhv/PyCon2013.pptx ...while this is the PEP he's talking about: http://www.python.org/dev/peps/pep-315

Re: [Twisted-Python] Effects of backlog parameter on listenTCP

2012-07-18 Thread Tim Allen
On Wed, Jul 18, 2012 at 04:43:01PM -0700, Tobias Oberstein wrote: > Could someone shortly elaborate on the semantics / effect of the parameter > "backlog" with listenTCP? It exactly corresponds to the "backlog" parameter of the BSD socket API function "listen(int sockfd, int backlog)". On my Debi

Re: [Twisted-Python] questions about twisted usage

2012-03-22 Thread Tim Allen
On Thu, Mar 22, 2012 at 02:34:41PM +0200, Uri Okrent wrote: > Maybe I should clarify my question: > > thing = 0 > def a(): > thing += 1 > thing += 1 > thing += 1 > thing += 1 > thing += 1 > > def b(): > thing = 0 > > def show_thing(): > print thing > > a.addCallback(

Re: [Twisted-Python] questions about twisted usage

2012-03-22 Thread Tim Allen
On Thu, Mar 22, 2012 at 12:20:37PM +0200, Uri Okrent wrote: > 1. Is deferToThread running the function in a real python thread? > Should this be used (rather than a standard deferred) for any function > that might block? Yes, deferToThread() runs things in a real Python thread. If you have code th

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] Question : Combining wokel XMPP and twisted.internet.serial

2011-12-22 Thread Tim Allen
On Fri, Dec 23, 2011 at 11:09:32AM +0700, bino oetomo wrote: > the "print self.writethis" do as told > > but the "self.serial.write(self.writethis)" line raise an exceptions > --START- >File "./mytac01.tac", line 44, in onMessage > self.serial.write(self.writet

Re: [Twisted-Python] Log output formatting (was Re: logging question)

2011-11-30 Thread Tim Allen
On Wed, Nov 30, 2011 at 01:04:27PM -, exar...@twistedmatrix.com wrote: > On 04:07 am, screwt...@froup.com wrote: > >If the standard Twisted logging functions automatically constructed > >LogMessage instances from dict instances, it should be easy enough for > >future ILogObserver implementation

Re: [Twisted-Python] Log output formatting (was Re: logging question)

2011-11-29 Thread Tim Allen
On Tue, Nov 29, 2011 at 10:44:21AM -0800, Don Dwiggins wrote: > Looking at the source of log.py, I'm at a bit of a loss to reconcile > these two forces. Certainly, the two log observers implemented there > use textFromEventDict, but one could create a different observer that > does things entir

Re: [Twisted-Python] Twisted Project Jobs Volunteer

2011-11-16 Thread Tim Allen
On Wed, Nov 16, 2011 at 08:17:51AM -0600, Jeffrey Ollie wrote: > The solution that I've come up with is to use git-svn to create a > separate Git repository for each branch, and then git-push that branch > into a central Git repository. This does burn *a lot* of disk space, > but only one person n

Re: [Twisted-Python] Twisted Project Jobs Volunteer

2011-11-16 Thread Tim Allen
On Mon, Nov 14, 2011 at 01:33:45PM -0500, Glyph wrote: > Really the most important thing here though is just to get the > automatic mirroring initially set up, not the never-ending > ambassadorial work. That way git users wouldn't _need_ elaborate > instructions as to what to clone and how; if we

Re: [Twisted-Python] Twisted Project Jobs Volunteer

2011-11-14 Thread Tim Allen
On Mon, Nov 14, 2011 at 12:22:59AM -0500, Glyph wrote: > Tim: you're right that there isn't much interest among the current > Twisted core development team. But the whole point of having a Git > mirror (and a presence on Github, which I think is the next step) is > to attract new developers to thi

Re: [Twisted-Python] Twisted Project Jobs Volunteer

2011-11-14 Thread Tim Allen
On Sun, Nov 13, 2011 at 09:20:46PM -0500, Glyph Lefkowitz wrote: > On Nov 13, 2011, at 1:13 AM, Tim Allen wrote: > > Should I update the "GitMirror" page to suggest people run "git svn > > clone -rHEAD" instead of using the no-longer-updated official mirror?

Re: [Twisted-Python] Twisted Project Jobs Volunteer

2011-11-13 Thread Tim Allen
On Sun, Nov 13, 2011 at 09:20:46PM -0500, Glyph Lefkowitz wrote: > On Nov 13, 2011, at 1:13 AM, Tim Allen wrote: > > Should I update the "GitMirror" page to suggest people run "git svn > > clone -rHEAD" instead of using the no-longer-updated official mirror?

Re: [Twisted-Python] Twisted Project Jobs Volunteer

2011-11-12 Thread Tim Allen
On Thu, Nov 10, 2011 at 10:18:03AM +1100, Tim Allen wrote: > In fact, it seems you can just specify "-rHEAD" and you'll get a repo > with only the latest trunk revision in it. If the resulting repository > can gracefully handle updates that add new branches, and new commit

Re: [Twisted-Python] Twisted Project Jobs Volunteer

2011-11-09 Thread Tim Allen
On Wed, Nov 09, 2011 at 02:49:50PM -, exar...@twistedmatrix.com wrote: > On 02:18 pm, screwt...@froup.com wrote: > >On Wed, Nov 09, 2011 at 01:22:19PM -, exar...@twistedmatrix.com > >wrote: > >>Why do we need to do this again? There's already > >>

Re: [Twisted-Python] Twisted Project Jobs Volunteer

2011-11-09 Thread Tim Allen
On Wed, Nov 09, 2011 at 09:30:57AM -0500, Tom Davis wrote: > It's worth noting that you aren't *required* to clone all eight trillion > Twisted revisions in order to get a working clone. Doing `git svn clone > -rN:HEAD ` where `N` is some revision number will only clone from > that revision. Ye

Re: [Twisted-Python] Twisted Project Jobs Volunteer

2011-11-09 Thread Tim Allen
On Wed, Nov 09, 2011 at 01:39:44PM -0600, Jeffrey Ollie wrote: > On Wed, Nov 9, 2011 at 6:49 AM, Tim Allen wrote: > > > > I believe the next step should be that somebody with the required > > permissions should connect to a machine on the same physical network as >

Re: [Twisted-Python] Twisted Project Jobs Volunteer

2011-11-09 Thread Tim Allen
On Wed, Nov 09, 2011 at 01:22:19PM -, exar...@twistedmatrix.com wrote: > Why do we need to do this again? There's already > , > , and > . The wiki mention

Re: [Twisted-Python] Twisted Project Jobs Volunteer

2011-11-09 Thread Tim Allen
On Wed, Nov 09, 2011 at 12:50:23AM -0800, Glyph Lefkowitz wrote: > On Nov 8, 2011, at 7:39 PM, Tim Allen wrote: > > As far as I know (having written most of the documentation in the linked > > wiki page, and from a brief skim through the git-svn manpage) it's > > imp

Re: [Twisted-Python] Twisted Project Jobs Volunteer

2011-11-08 Thread Tim Allen
On Tue, Nov 08, 2011 at 05:43:09PM -0800, Glyph Lefkowitz wrote: > > On 7 Jul, 01:28 pm, p.may...@imperial.ac.uk wrote: > >> http://twistedmatrix.com/trac/wiki/GitMirror > > I should stress that the most pressing problem here is not necessarily > to provide a comprehensive, elaborate, automatic mi

Re: [Twisted-Python] Global reactor unit tests in the Twisted test suite

2011-11-01 Thread Tim Allen
On Tue, Nov 01, 2011 at 02:48:02PM -0400, Glyph wrote: > If you can think of a better solution that addresses all of these > concerns simultaneously somehow, please share, I'd love to hear it > :-). I'm not sure if it addresses all your concerns, but twisted.python.context will let you set a parti

Re: [Twisted-Python] Running the same trial test suite against a live server and a mock server

2011-09-26 Thread Tim Allen
On Mon, Sep 26, 2011 at 01:37:16PM +0200, Laurens Van Houtven wrote: > The obvious solution is to have a makeClient function defined in module > scope for the given test module. I could then have a bin/liveTest.py that > takes a username, password and cert, and monkeypatches that module. I'm > assu

Re: [Twisted-Python] Async-pep (again)

2011-07-14 Thread Tim Allen
On Thu, Jul 14, 2011 at 07:05:38PM +1000, Tim Allen wrote: > - You might also want to create an optional Transport method to wrap the > sendfile(2) and/or splice(2) functions. I suggested this not knowing whether Python would ever grow support for sendfile(), since it seemed like the s

Re: [Twisted-Python] Async-pep (again)

2011-07-14 Thread Tim Allen
On Thu, Jul 14, 2011 at 10:05:00AM +0200, Laurens Van Houtven wrote: > On Thu, Jul 14, 2011 at 8:48 AM, Tim Allen wrote: > > The idea of Protocols implementing Transports is vaguely gestured at as > > a Useful Thing, but not much detail is given. I think it would be useful > &

Re: [Twisted-Python] Async-pep (again)

2011-07-13 Thread Tim Allen
On Wed, Jul 13, 2011 at 02:03:03PM +0200, Laurens Van Houtven wrote: > So, some of you might remember my async-pep post a while ago. Some people > correctly complained there was no code or text. There's some code and quite > a bit of text now. In fact, it even has a PEP number (3153)! So I'm > soli

Re: [Twisted-Python] Moving Twisted off Trac and SVN to somewhere nicer

2011-07-04 Thread Tim Allen
On Tue, Jul 05, 2011 at 09:41:12AM +0300, anatoly techtonik wrote: > To know if Github is terrible or not, you need some data - examples, > use cases. The first step in planning is to look at the current > workflow and gather a list of ways current Trac+SVN is used and see > where Github has advant

Re: [Twisted-Python] SURVEY: Have you submitted a patch to Twisted and it never got in?

2011-07-01 Thread Tim Allen
On Fri, Jul 01, 2011 at 09:11:34PM +0200, Laurens Van Houtven wrote: > On Fri, Jul 1, 2011 at 8:59 PM, Itamar Turner-Trauring > wrote: > > Or for that matter, you can include e.g. an github URL in the ticket > > instead of attaching the patch. > > Only if there's a decent Github mirror to fork fro

Re: [Twisted-Python] Conch Testing server and client

2011-07-01 Thread Tim Allen
On Fri, Jul 01, 2011 at 05:44:31PM +0530, Anshul Singhle wrote: > What I'm trying is : > class TestAccountStatus(unittest.TestCase): Is that the Python standard library's unittest.TestCase, or twisted.trial.unittest.TestCase? As Jean-Paul says, Twisted's TestCase should automatically handle the re

Re: [Twisted-Python] Moving Twisted off Trac and SVN to somewhere nicer

2011-07-01 Thread Tim Allen
On Fri, Jul 01, 2011 at 12:48:37PM +0200, Tristan Seligmann wrote: > On Fri, Jul 1, 2011 at 12:29 PM, Laurens Van Houtven <_...@lvh.cc> wrote: > > Although I've hated git for a long while (and I still don't like it very > > much), I firmly believe Github is the right thing for Twisted. My incredibl

Re: [Twisted-Python] Moving Twisted off Trac and SVN to somewhere nicer

2011-07-01 Thread Tim Allen
On Fri, Jul 01, 2011 at 12:29:01PM +0200, Laurens Van Houtven wrote: > There's a few existing hosting solutions: > >1. Launchpad (+ Bazaar as the default vcs) >2. Bitbucket (+ Mercurial as the default vcs) >3. Github (+ Git as the default vcs) As a very-occasional Twisted contributor

Re: [Twisted-Python] Asynchronous code PEP

2011-06-01 Thread Tim Allen
On Thu, Jun 02, 2011 at 12:50:33AM +0200, Laurens Van Houtven wrote: > See people? Feedback works, now give me more of it please ;-) Perhaps I'm looking at the wrong place; the "pep-.rst" I'm looking at via the web interface contains only an short abstract and a rationale that won't be controv

Re: [Twisted-Python] Twisted Plugins - Implementation Discussion

2011-04-06 Thread Tim Allen
On Thu, Apr 07, 2011 at 03:24:57PM +0900, David wrote: > On 04/07/2011 02:08 PM, Tim Allen wrote: > > If you need a non-Turing-complete config language and rule out .ini and > > XML, I'm not sure what's left. JSON, perhaps. > > Having had experience with JSON for

Re: [Twisted-Python] Twisted Plugins - Implementation Discussion

2011-04-06 Thread Tim Allen
On Thu, Apr 07, 2011 at 12:54:45AM -0400, Glyph Lefkowitz wrote: > If we invent our own file extension which has to be separately > installed, we have to teach distutils, and setuptools, and distribute, > and pip, and distutils2, and 'packaging' (as I'm sure that will > eventually be incompatible w

Re: [Twisted-Python] Twisted Plugins - Implementation Discussion

2011-04-06 Thread Tim Allen
On Thu, Apr 07, 2011 at 10:35:18AM +1000, Stephen Thorne wrote: > So the goal of my post to this mailing list is: > > * I would like glyph's goal of having less arbitary code executed at > twistd launch time to become a realisation, > > * I would like the process of creating a twisted plugin to

Re: [Twisted-Python] Persisted protocol?

2011-04-06 Thread Tim Allen
On Wed, Apr 06, 2011 at 12:41:08PM +0200, Laurens Van Houtven wrote: > Whoa hang on. Without trying to hijack the thread, this is the entire > premise of infobarb, the IRC bot I'm building for #python-*, except > s/pickle/sqlite/, so if this is a horrible idea I'd like to know before I > build it.

Re: [Twisted-Python] Persisted protocol?

2011-04-06 Thread Tim Allen
On Wed, Apr 06, 2011 at 10:16:03AM +0300, anatoly techtonik wrote: > From http://twistedmatrix.com/documents/current/core/howto/udp.html > > """As you can see, the protocol is registered with the reactor. This means it > may be persisted if it's added to an application...""" > > What does 'persis

Re: [Twisted-Python] running several services from a single app

2011-03-29 Thread Tim Allen
On Tue, Mar 29, 2011 at 09:46:11AM +0200, Aljoša Mohorović wrote: > is there a way to tell reactor to run application and services defined > so i can skip .tac file and just execute python file? > maybe something similar to this: > > application = service.Ap

Re: [Twisted-Python] prerelease preview predocumentation

2011-03-27 Thread Tim Allen
On Sun, Mar 27, 2011 at 09:57:28PM -0400, Glyph Lefkowitz wrote: > On Mar 23, 2011, at 9:34 PM, Glyph Lefkowitz wrote: > > > > Anyone have comments about this? With all the recent excitement about the > docs, I thought there would be a m

Re: [Twisted-Python] Announcing Twisted 11.0.0pre1!

2011-03-22 Thread Tim Allen
On Tue, Mar 22, 2011 at 08:17:25PM -0400, Jessica McKellar wrote: >  * a new templating system in Twisted Web, "twisted.web.template", > derived from Divmod Nevow. Oh boy! Are there pre-release API or other docs for this feature, or will I have to download the tarball to read the code and/or wait

Re: [Twisted-Python] UDP Logging Server

2011-03-12 Thread Tim Allen
On Sat, Mar 12, 2011 at 02:33:45PM +0200, Pandelis Theodosiou wrote: > On Sat, Mar 12, 2011 at 3:32 AM, Tim Allen wrote: > > Of course, if you flush after every disk read, your program will run > > a bit more slowly and with more I/O... for an application where > > reliabil

Re: [Twisted-Python] UDP Logging Server

2011-03-11 Thread Tim Allen
On Fri, Mar 11, 2011 at 01:15:47PM -0600, SIC FS LIST wrote: > So far I have a "working" implementation ... but I'm noticing that if I do > the following: > -- log when a message is received > -- that for that message it "might" show up in the file a pretty lengthy > period of time later Assuming

Re: [Twisted-Python] Refactoring Documentation

2011-01-20 Thread Tim Allen
On Thu, Jan 20, 2011 at 06:34:17PM -0600, Kevin Horn wrote: > On Thu, Jan 20, 2011 at 5:57 PM, Tim Allen wrote: > > You mean these DTDs? > > > >twisted/lore/xhtml1-strict.dtd > >twisted/lore/xhtml1-transitional.dtd > > > > They reference the xhtml-

Re: [Twisted-Python] Refactoring Documentation

2011-01-20 Thread Tim Allen
On Thu, Jan 20, 2011 at 05:22:55PM -0600, Kevin Horn wrote: > Hmmm...yes, I think it does. It looks like the l2s_builder script is > choking on fetching the DTD for some reason. lore2sphinx itself is supposed > to cache the DTD between runs, but I'm betting it doesn't work in the > buildbot due t

Re: [Twisted-Python] Twisted and PEP 3148 support

2011-01-10 Thread Tim Allen
On Tue, Jan 11, 2011 at 02:15:59AM -, exar...@twistedmatrix.com wrote: > On 01:54 am, screwt...@froup.com wrote: > >- Futures support cancellation; Twisted finally managed to get rid > > of cancellation support in Deferreds. > > We only got rid of Deferred.setTimeout. In exchange, we

Re: [Twisted-Python] Twisted and PEP 3148 support

2011-01-10 Thread Tim Allen
On Mon, Jan 10, 2011 at 11:57:14PM +0200, Alex Grönholm wrote: > The main focus of the discussion is to figure out how to best integrate > support for this new API to Twisted. If possible, existing protocols > should remain compatible through the use of adapters or some other > mechanism. If not

Re: [Twisted-Python] [newb] another process question

2010-11-05 Thread Tim Allen
On Fri, Nov 05, 2010 at 07:28:24PM -0400, Neal Becker wrote: > The status > is passed in the form of a Failure instance, created with a .value that > either holds a ProcessDone object if the process terminated normally (it > died of natural causes instead of receiving a signal, and if the exit c

Re: [Twisted-Python] Don't Thread On Me t-shirt proposal

2010-10-21 Thread Tim Allen
On Thu, Oct 21, 2010 at 11:54:59AM +0200, Laurens Van Houtven wrote: > Yep, sorry, I realise the flag is based on an exclusively American symbol. > OTOH, I'm not (very) American so it still rings bell for me :-) I'm not American at all, and I think it's hilarious. > About the apostrophe: yes, the

Re: [Twisted-Python] Don't Thread On Me t-shirt proposal

2010-10-21 Thread Tim Allen
On Thu, Oct 21, 2010 at 08:49:37AM +0200, Marco Giusti wrote: > On Wed, Oct 20, 2010 at 08:00:54PM -0400, David Ripton wrote: > > On 10/20/10 17:10, Laurens Van Houtven wrote: > > > > > Feedback is welcome: do you think the layout or relative sizes should be > > > changed? Is the apostrophe being

Re: [Twisted-Python] Strange error: SQL-Server tries to rollback

2010-09-10 Thread Tim Allen
On Fri, Sep 10, 2010 at 06:54:34PM +0300, Pantelis Theodosiou wrote: > sql = ''.join( > [ > "INSERT INTO fts_data VALUES (" > , "'" , serialNumber , "'" > , "," , "'" , customerAccount , "'" > , "," , "'" , dateAndTime ,

Re: [Twisted-Python] How to bisect Twisted?

2010-08-11 Thread Tim Allen
On Wed, Aug 11, 2010 at 05:30:36PM +0100, Peter Westlake wrote: > In the Git version of the Twisted source code, there are tags for > releases, e.g. the revision with SHA id > 85a6a0f9e3c4ea22d1d72d4ca8eb0c08ee99ca85 corresponds to 8.0.0. When you say "git version of the Twisted source code", do y

Re: [Twisted-Python] Email problem

2010-07-13 Thread Tim Allen
On 07/13/2010 07:32 PM, Alvin Wang wrote: > # that's all falks > writer.lastpart() > m = message.getvalue() > message.close() Here, you set "m" to be a string containing the message contents. > factory = ESMTPSenderFactory(sender, > senderpw, >

Re: [Twisted-Python] Lore to Sphinx Conversion Progress Report 6

2010-07-10 Thread Tim Allen
On Sat, Jul 10, 2010 at 03:17:03PM -0500, Kevin Horn wrote: > On Sat, Jul 10, 2010 at 2:40 AM, Tim Allen wrote: > > That's probably enough feedback to be getting on with; most of the > > problems appear to be from normalising "\n" in Lore docs to ""

Re: [Twisted-Python] Lore to Sphinx Conversion Progress Report 6

2010-07-10 Thread Tim Allen
On Sat, Jul 10, 2010 at 02:58:40AM -, exar...@twistedmatrix.com wrote: > At last I've got a buildbot set up generating the sphinx docs. The > build results can be seen here: > > http://buildbot.twistedmatrix.com/builds/sphinx-html-15615/ > > (or with a different revision number for differ

Re: [Twisted-Python] 10.1 release follow-up

2010-07-06 Thread Tim Allen
On Tue, Jul 06, 2010 at 02:09:47PM +0100, Jonathan Lange wrote: > The delay on waiting for the ticket to be reviewed happened last time also. > > I don't really have any ideas as to what to do about it, but I'd like > to avoid the experience of sitting around for hours killing time at my > compute

Re: [Twisted-Python] Twisted 10.1.0pre1 released -- please test!

2010-06-19 Thread Tim Allen
On Sat, Jun 19, 2010 at 01:35:18PM +0100, Jonathan Lange wrote: > From the dank and grey depths of a London summer, a thin, reedy voice > wanders across the waves of the Internet, saying that it's jolly well > pleased to announce the first 10.1.0 pre-release. I'm a bit sad my ticket #4138 wasn't r

Re: [Twisted-Python] making Screwtape (Tim Allen) a committer

2010-06-09 Thread Tim Allen
On Wed, Jun 09, 2010 at 06:25:05PM -0400, Glyph Lefkowitz wrote: > I think we should give screwtape an SVN account and make him an > official reviewer. He's been doing a lot of work on the distutils > code which would be made easier by that, and he's been doing pretty > decent reviews. Well, this

Re: [Twisted-Python] twistd and init.d

2010-04-21 Thread Tim Allen
On Wed, Apr 21, 2010 at 01:38:09PM +0200, Don Schoeman wrote: >This works fine when running /etc/init.d/ghserver start and >/etc/init.d/ghserver stop. The script also run when I boot since the >logger actually logs the "GHServer: Starting" text to the >/var/log/messages file. Howeve

Re: [Twisted-Python] Seeking advice: Coping with heavy log file loads

2010-04-09 Thread Tim Allen
On Fri, Apr 09, 2010 at 05:35:51PM +0900, Paul Goins wrote: > We use DailyLogFiles for file rotation along with the > PythonLoggingObserver to allow for logLevel support. (Of course, this > gives us significant overhead from Python's complex logging > architecture; maybe we should drop this...) I

Re: [Twisted-Python] My twisted application could not start after reboot be cause of "twistd.pid"

2010-03-16 Thread Tim Allen
On 03/16/2010 06:07 PM, Peter Cai wrote: > I think an init.d script could resolve this problem. > But I am curious about why "turning off power without shutdown twisted > server before" could cause such a problem. > > Is it a bug or it has some more fundamental reason? When twistd starts up, it cr

Re: [Twisted-Python] http://twistedmatrix.com/ trac installation updated

2010-03-15 Thread Tim Allen
On Mon, Mar 15, 2010 at 09:30:05AM -0500, Mikhail Terekhov wrote: > On Sun, Mar 14, 2010 at 1:44 AM, Glyph Lefkowitz > wrote: > > > > On Mar 11, 2010, at 3:05 PM, exar...@twistedmatrix.com wrote: > > > > If you notice anything broken about the website now, please point it > > out. > > > > Also, th

Re: [Twisted-Python] Twisted 9.0.0?

2010-03-05 Thread Tim Allen
On Fri, Mar 05, 2010 at 11:11:35AM +, Chris Withers wrote: > Tim Allen wrote: > > If "setup.py upload" involves "setup.py sdist" then I guess this is > > ticket #4138 again. > > No, it doesn't... see the release process I use for my own

Re: [Twisted-Python] Twisted 9.0.0?

2010-03-04 Thread Tim Allen
On Thu, Mar 04, 2010 at 01:55:50PM -0500, Glyph Lefkowitz wrote: > Now that our release process is better documented (THANK YOU JML), you > might be able to have a look at > and figure out > where 'setup.py upload' could fit in without uploading a

Re: [Twisted-Python] [ANNOUNCE] Twisted 10.0.0pre1 is now released

2010-02-23 Thread Tim Allen
On 02/24/2010 02:56 PM, James Y Knight wrote: > On Feb 23, 2010, at 10:45 PM, Tim Allen wrote: >> On 02/24/2010 02:21 PM, Glyph Lefkowitz wrote: >>> Here's a not-so-official link to the 10.0.0 prerelease NEWS: >>> >>> http://twistedmatrix.com/trac/browse

Re: [Twisted-Python] [ANNOUNCE] Twisted 10.0.0pre1 is now released

2010-02-23 Thread Tim Allen
On 02/24/2010 02:21 PM, Glyph Lefkowitz wrote: > On Feb 21, 2010, at 11:08 PM, Jonathan Lange wrote: >> On Sun, Feb 21, 2010 at 10:57 PM, Darren Govoni wrote: >>> Hi, >>>This is great! >>> >>> Is there a list of new features or improvements for this release? I'd like >>> to start planning my u

Re: [Twisted-Python] domish.Element.__getattr__() or xpath.XPathQuery

2010-02-08 Thread Tim Allen
On Mon, Feb 08, 2010 at 08:26:43AM +0100, Gabriel Rossetti wrote: > Ok, thank you. Just a question, would it be interesting to anyone to > be able to choose in between the internal XPATH implementation and an > external lib/implementation for the XMPP stuff? I have often wondered > if it would not

Re: [Twisted-Python] lore2sphinx table handling?

2010-01-04 Thread Tim Allen
On Mon, Jan 04, 2010 at 11:23:37PM -0500, James Y Knight wrote: > On Jan 4, 2010, at 8:32 PM, Tim Allen wrote: > > while Grid Tables look pretty, actually editing them requires an Emacs > > mode, or a lot of patience. > > But when you *do* have an emacs mode (and, rea

Re: [Twisted-Python] lore2sphinx table handling?

2010-01-04 Thread Tim Allen
On Mon, Jan 04, 2010 at 06:08:17PM -0600, Kevin Horn wrote: > Any of these formats should work fine, but I'm curious as to what people (in > particular the core devs) think as to which should be the preferred method > in the Sphinx documentation. I'm not a core dev, but I'll chime in so that at le

Re: [Twisted-Python] Some news about currently-pending code-reviews

2009-12-27 Thread Tim Allen
On Thu, Dec 24, 2009 at 09:41:11AM -0500, Gerrat Rickert wrote: > [snip] > >http://twistedmatrix.com/trac/ticket/3956 > >Add arraysize option to runQuery in adbapi > > Well, as the guy who initiated this ticket, I'm certainly using > adbapi.ConnectionPool with cx_Oracle. I'm not currently using a

[Twisted-Python] Some news about currently-pending code-reviews

2009-12-23 Thread Tim Allen
First, a public service announcement about code-reviews: I'm not a Twisted Developer, I'm just a guy who submitted a patch and got talked into helping out by reviewing other people's Twisted patches while I was waiting for other people to review mine. You don't have to be a Twisted expert to help o

Re: [Twisted-Python] Decide on and document Python version support policy

2009-12-23 Thread Tim Allen
On 12/24/2009 02:26 PM, exar...@twistedmatrix.com wrote: >* No reasonably current releases of mainstream platforms that I'm aware > of are still bound to Python 2.3. http://www.redhat.com/security/updates/errata/ RHEL4 is still bound to Python 2.3, and only enters the "production 3" phase (a

Re: [Twisted-Python] subprocess.Popen

2009-12-14 Thread Tim Allen
On Tue, Dec 15, 2009 at 02:32:40AM -0200, Aníbal Pacheco wrote: > Is it possible to attach a callback to a process launched using > subprocess.Popen?, I want to receive a notification on process > termination. I don't believe Twisted has any special support for subprocess.Popen, but you can do muc

Re: [Twisted-Python] zope.interface

2009-12-14 Thread Tim Allen
On Mon, Dec 14, 2009 at 11:48:48AM +, Phil Mayers wrote: > Jared Gisin wrote: > > Is there a good document that explains why zope.interface is necessary > > to the twisted project? > > A counter-question: Is there a good document that explains why people > care? It's just another dependency

Re: [Twisted-Python] ANN: Twisted 9.0.0

2009-12-02 Thread Tim Allen
exar...@twistedmatrix.com wrote: > A message with some ticket links from a thread on the twisted-python > mailing list: http://bit.ly/8csFSa Some of those tickets seem out of date; a better plan would be to query for tickets with the "py3k" keyword: http://twistedmatrix.com/trac/search?q=py3

Re: [Twisted-Python] Retrying function calls

2009-11-01 Thread Tim Allen
On Sun, Nov 01, 2009 at 05:53:31PM +0100, Terry Jones wrote: > def simpleBackoffIterator(maxResults=10, maxDelay=5.0, now=True, > initDelay=0.01, incFunc=None): > assert maxResults > 0 > remaining = maxResults > delay = initDelay > incFunc = incFunc or part

Re: [Twisted-Python] How to find out if exceptions are being raised in your errBack?

2009-10-14 Thread Tim Allen
On Wed, Oct 14, 2009 at 07:43:41AM -0400, Steve Steiner (listsin) wrote: > That's the thing about Twisted; sometimes it's hard to know whether > the stuff that has been built into standard Python since Twisted > 'rolled their own' is a superset, a subset, or a completely > different beast. Logging

Re: [Twisted-Python] Phasing out old-style classes

2009-10-09 Thread Tim Allen
On Fri, Oct 09, 2009 at 03:45:02AM -, exar...@twistedmatrix.com wrote: > However, if I were to make up a plan for porting Twisted to Python 3.x, > then the first part of that plan would be to fix all of the failing > tests reported here: > > http://buildbot.twistedmatrix.com/builders/python-

Re: [Twisted-Python] simple global counter

2009-09-15 Thread Tim Allen
On Tue, Sep 15, 2009 at 04:54:09PM +0700, Artem Bokhan wrote: > Tim Allen пишет: > > On Mon, Sep 14, 2009 at 10:09:38PM +0700, Artem Bokhan wrote: > > > >> May somebody give a sample code of simple global counter which could be > >> used with twisted (non-web)

Re: [Twisted-Python] How to detect when there is nothing waiting in the event queue

2009-09-14 Thread Tim Allen
On Mon, Sep 14, 2009 at 12:11:46PM -0400, Mark Visser wrote: > I've added a signal handler to catch SIGHUP and call stop() on the > looping call and stopListening() on the perspective broker Root. How can > I detect when all remaining Deferreds have fired so I can stop the > reactor safely, with

Re: [Twisted-Python] simple global counter

2009-09-14 Thread Tim Allen
On Mon, Sep 14, 2009 at 10:09:38PM +0700, Artem Bokhan wrote: > May somebody give a sample code of simple global counter which could be > used with twisted (non-web) enviroment? I'm not sure what you mean. If you want to keep a count of something, you can just store it in a variable like anythin

Re: [Twisted-Python] Is there an equivalent of tap2deb?

2009-09-04 Thread Tim Allen
On Fri, Sep 04, 2009 at 02:53:37PM +0100, Peter Westlake wrote: > Now that .tap files are obsolete, is there a supported way of making > Debian packages like tap2dep? .tap files (Pickle-based config files) may be obsolete, but I don't believe the other variants (.tac for Python-based config files,

Re: [Twisted-Python] TDD using Trial

2009-08-30 Thread Tim Allen
On Sun, Aug 30, 2009 at 01:40:34PM -0500, Nathan Lundquist wrote: > I was wondering if any tutorials existed for setting up unit tests for > use with trial. I've done a fair share of googling and only found > tickets suggesting that more documentation be made available for trial. Setting up unit

Re: [Twisted-Python] Some way for Trial to allow selective running of tests?

2009-08-27 Thread Tim Allen
Don Dwiggins wrote: > Phil Christensen wrote: > > trial takes an argument at the command-line where you can specify a > > package or test case. > > > > for example: > > > > trial twisted > > trial twisted.test > > trial twisted.test.test_explorer > > trial twisted.test.test_exp

Re: [Twisted-Python] stop conditions and deferToThread()

2009-06-10 Thread Tim Allen
I'm not sure this is the problem you're facing, but... On Wed, Jun 10, 2009 at 12:04:16PM +0200, Thomas Jakobsen wrote: > import time > from twisted.internet import reactor > from twisted.internet.threads import deferToThread > > running = True > > def foo(): >while running: >print "

Re: [Twisted-Python] some callback function params problems

2009-06-09 Thread Tim Allen
On Tue, Jun 09, 2009 at 05:31:52PM +0800, hoosety wrote: > Is there a common way to solve the problem like this. I mean I can > still keep the separate functions as the look like now, I do it like this: def deferCompoundFunc(paramA, paramB): d = deferDoSomeInsert(paramA, paramB)

Re: [Twisted-Python] xmlrpc - Possable failure to understand async concept

2009-04-23 Thread Tim Allen
Tim Hughes wrote: > Am I completly missing the point here or is there something incorrect with > my code. Yes, it seems you have missed the point somewhere. > def blocking_method(self, duration=5): > """block the instance for a specified duration""" > started = time.asctime()

Re: [Twisted-Python] official packaging

2009-04-01 Thread Tim Allen
Esteve Fernandez wrote: > Anyway, it would be great to have recent packages of Twisted for > distributions > that offer some kind of long term support contracts (Ubuntu, RHEL, etc.), but > that tend to get a bit outdated. It's worth mentioning that someone has recently stepped up to fix ticket

Re: [Twisted-Python] util.quote deprecated

2009-03-03 Thread Tim Allen
On Tue, Mar 03, 2009 at 01:17:48PM +0100, Pet wrote: > what is a proper way to escape user input in database query strings? > I've used quote from twisted.enterprise.util, but it is deprecated now. > Is there any other module for this purpose? The correct way to escape user input is not to do it a

Re: [Twisted-Python] Beginner's question about names and callbacks

2009-01-25 Thread Tim Allen
On Mon, Jan 26, 2009 at 01:06:37AM -0500, Adan Broderick wrote: > I'm trying to write a program that will call my own function whenever a > query to a nameserver times out. I have figured out how to run the DNS > server. And I also know how to use filterAnswers(). But how do I catch the > "Failure: