Re: [Twisted-Python] Store simple value in web session

2012-09-05 Thread Benoît Fleury
Thank you for the explanation. On Wed, Sep 5, 2012 at 8:58 PM, Glyph wrote: > > On Sep 5, 2012, at 5:32 PM, Benoît Fleury wrote: > >> Hi, >> >> I would like to store a simple (immutable) value in a web session. >> >> Here are the options I see so far: >> - use the component architecture (seems a

Re: [Twisted-Python] Store simple value in web session

2012-09-05 Thread Glyph
On Sep 5, 2012, at 5:32 PM, Benoît Fleury wrote: > Hi, > > I would like to store a simple (immutable) value in a web session. > > Here are the options I see so far: > - use the component architecture (seems a bit overkill...) > - subclass Session to hold the value I want to store > - patch Ses

[Twisted-Python] Store simple value in web session

2012-09-05 Thread Benoît Fleury
Hi, I would like to store a simple (immutable) value in a web session. Here are the options I see so far: - use the component architecture (seems a bit overkill...) - subclass Session to hold the value I want to store - patch Session to behave like a dictionary (didn't look at the code, not su

Re: [Twisted-Python] Getting deprecation warnings?

2012-09-05 Thread Laurens Van Houtven
Huh. I have complete unit test coverage and was using trial, but somehow I managed to miss that... I guess I will have to pay more attention or something?! I will try to recreate a situation where the warnings should pop up. Thanks! On Wed, Sep 5, 2012 at 9:11 PM, wrote: > On 06:41 pm, _...@l

Re: [Twisted-Python] Getting deprecation warnings?

2012-09-05 Thread Glyph
On Sep 5, 2012, at 1:08 PM, exar...@twistedmatrix.com wrote: > On 07:55 pm, gl...@twistedmatrix.com wrote: >> >> On Sep 5, 2012, at 12:11 PM, exar...@twistedmatrix.com wrote: >>> On 06:41 pm, _...@lvh.cc wrote: Hey, What is the appropriate way to run twistd apps in such a way tha

Re: [Twisted-Python] Getting deprecation warnings?

2012-09-05 Thread exarkun
On 07:55 pm, gl...@twistedmatrix.com wrote: > >On Sep 5, 2012, at 12:11 PM, exar...@twistedmatrix.com wrote: >>On 06:41 pm, _...@lvh.cc wrote: >>>Hey, >>> >>>What is the appropriate way to run twistd apps in such a way that I >>>get >>>nice and loud deprecation warnings? >> >>1) Have complete unit

Re: [Twisted-Python] Getting deprecation warnings?

2012-09-05 Thread Glyph
On Sep 5, 2012, at 12:11 PM, exar...@twistedmatrix.com wrote: > On 06:41 pm, _...@lvh.cc wrote: >> Hey, >> >> What is the appropriate way to run twistd apps in such a way that I get >> nice and loud deprecation warnings? > > 1) Have complete unit test coverage and run your tests with trial. Al

Re: [Twisted-Python] tap2deb problem with building package

2012-09-05 Thread Eric P. Mangold
Hi, On Fri, Aug 31, 2012 at 08:28:41PM +0200, Klaudiusz Staniek wrote: > Hi > when I try to build the deb package I'm getting the error message: cp: > cannot create regular file `debian/tmp/etc/': No such file or > directory > > What is wrong? See below output: > Cheers, > Klaudiusz > > > tap2d

Re: [Twisted-Python] Getting deprecation warnings?

2012-09-05 Thread exarkun
On 06:41 pm, _...@lvh.cc wrote: >Hey, > >What is the appropriate way to run twistd apps in such a way that I get >nice and loud deprecation warnings? 1) Have complete unit test coverage and run your tests with trial. All deprecation warnings will be written out as part of the test suite run. 2)

[Twisted-Python] Getting deprecation warnings?

2012-09-05 Thread Laurens Van Houtven
Hey, What is the appropriate way to run twistd apps in such a way that I get nice and loud deprecation warnings? I ran into an issue with one of my apps with the new release because t.w.error.NoResource is now t.w.resource.NoResource, I would like to make my code as forward compatible as possibl

Re: [Twisted-Python] Profiling problem: "bad marshal data"

2012-09-05 Thread Peter Westlake
On Wed, Sep 5, 2012, at 02:26, Itamar Turner-Trauring wrote: > On Mon, Sep 3, 2012 at 12:10 PM, Peter Westlake > wrote: > > > An output file generated with cProfile.run() can be read. > > Running twistd without --savestats generates a valid-looking > > textual report. > > > > This may be becaus