Re: [Twisted-Python] Documentation overviews

2009-04-04 Thread Dave Britton
Twisted masters,
As a twisted newbie, who still doesn't really feel like I get it, but is really 
drawn to it anyway, my humble advice is to teach how to navigate the use of the 
libraries,. especially with respect to how data is passed from one process to 
another, and how to understand the process flow, and how to integrate your own 
code for your application into the library correctly. It seems like there is an 
expected but unstated right approach or style that will work best and most 
easily... the tao of twisted so to speak... but what is this path?
   Being old I still think in terms of sequences, conditionals and iterations, 
so it took a while to get that if I wanted a sequence of operations to happen 
as an asynchronous event (a Deferred) that went off on its own for a while, 
(and when it returns, whatever was going on wherever it was called from is long 
gone, like the deferred was some spaceship returning from a long 
near-lightspeed journey!) I had to construct that sequence as a string of 
callbacks, each attached to the previous, and to get any conditional or 
iterative activity within that sequence I had to figure out how to pass 
arguments that would provide enough information to the next callback. That has 
been extra tricky for me in the context of how to correctly use the library of 
classes available, especially how and/or when to extend or subclass them. In 
part this is because although I have used python for a number of years, I have 
never pushed the envelope in terms of power programming techniques. Thus, it 
would be helpful also if there was a subsection of the documentation that 
discussed how advanced python techniques (eg Factories) are used (more about 
python than twisted, per se, but essential to understanding and using twisted). 
The Protocol class and how to use it viz the Factory a Protocol goes with is 
especially confusing to me, for example, yet this is essential in twisted.
   So I admire you guys tremendously and appreciate your work. I hope someday I 
grok it enough to be able to contribute to the documentation in some way.
-Dave Britton
  - Original Message - 
  From: Cary Hull 
  To: Twisted general discussion 
  Sent: Thursday, April 02, 2009 11:05 AM
  Subject: [Twisted-Python] Documentation overviews


  Hi folks,

  One of the goals for the Pycon sprint was to develop user oriented overviews 
for existing documentation.
  These would ideally guide users through everything they would need to read in 
order to accomplish a desired goal with Twisted.

  I've formulated the following 'track' suggestions based on a conversation in 
the sprint room a few nights ago.
  Feedback would be greatly appreciated.

  ---

  Overviews

  #   The basics of event driven applications (beginner)

  #   No hand holding, just the facts (advanced, already familiar with concepts 
involved)

  #   Testing Twisted applications

  #   Driving processes (interactively or otherwise)

  #   Custom protocols

  #   When it makes sense to use threads

  #   Persisting application data (Would cover various options including Axiom)

  #   Task scheduling (Would cover various options including Axiom)

  #   Web clients

  #   Web applications using just Twisted

  #   Web applications using WSGI (Maybe show how to run Django)

  #   Mail clients

  #   Mail servers

  #   SSH clients

  #   SSH servers

  #   XMPP (Jabber) clients

  #   XMPP (Jabber) servers

  #   Multiple servers in a single application

  #   GUI applications (non web)

  #   Networked video games



--


  ___
  Twisted-Python mailing list
  Twisted-Python@twistedmatrix.com
  http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


Re: [Twisted-Python] twisted and logging

2009-04-04 Thread Drew Smathers
On Fri, Apr 3, 2009 at 10:08 AM, Fabrizio Mancini  wrote:
> Hi,
> i'm using the package twisted.python.log to log messages. Till now, it's all
> ok, but with the standard logging package from python i had setup a logging
> system that logged normal logs to one file, error logs to a separete files,
> and some special operations to one other file. Every logging instance was an
> instance of the RotatingFileHandler logging class.
> I saw that there is a rotating file handler like class in twisted, but how
> can i achieve the same behaviour above? (Three different logging instances
> to three different rotating files?)
> Thanks in advance


Why not just continue using the standard logging API?  Twisted doesn't
preclude you from doing so:

http://twistedmatrix.com/projects/core/documentation/howto/logging.html#auto3

I use standard logging with twisted without any issues for the same
use case you've described using handlers and filters.

-Drew

___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


[Twisted-Python] Question about Descriptors and SelectReactor

2009-04-04 Thread Andrew Francis

Hi:

Perhaps this question has been asked before but is there a limit to the number 
of descriptors the SelectReactor can handle? Is this a function of the 
operating system?

Cheers,
Andrew


  

___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


[Twisted-Python] Weekly Bug Summary

2009-04-04 Thread exarkun



Bug summary
__
Summary for 2009-03-29 through 2009-04-05
Bugs opened: 46Bugs closed: 29  Total open bugs: 1064 (+17)

|== Type Changes   |== Priority Changes   |== Component Changes 
|Defect:   +8  |Highest:  -1  |Conch:   +0  
|Enhancement: +11  |High: -2  |Core:+8  
|Regression:   +0  |Normal:  +20  |Flow:+0  
|Task: -2  |Low:  +1  |Lore:-1  
   |Lowest:   -1  |Names:   +2  
  |Pb:  +1  
  |Release Management:  +0  
  |Trial:   +2  
  |Vfs: +0  
  |Web: +2  
  |Web2:+1  
  |Words:   +2  



Total Tickets
Open Tickets



New / Reopened Bugs
__
= High =
[#3728] twisted.cred.pamauth and twisted.cred.checkers.PluggableAuthenticationModulesChecker are really insecure (opened by exarkun)
defect  core   http://twistedmatrix.com/trac/ticket/3728

= Normal =
[#3707] Twisted 8.2.0 requires pywin32 (opened by amaury) (CLOSED, fixed)
regression  core   http://twistedmatrix.com/trac/ticket/3707

[#3708] AMP unit tests use object identity comparison where it is inappropriate (opened by exarkun) (CLOSED, fixed)
defect  core   http://twistedmatrix.com/trac/ticket/3708

[#3709] Several twisted.conch.test.test_checkers.SSHProtocolCheckerTestCase test methods fail when PyCrypto is unavailable (opened by exarkun) (CLOSED, fixed)
defect  conch  http://twistedmatrix.com/trac/ticket/3709

[#3710] deprecate twisted.names.client.ThreadedResolver in favor of twisted.internet.base.ThreadedResolver (opened by exarkun)
enhancement names  http://twistedmatrix.com/trac/ticket/3710

[#3711] Support Deferreds in Resource#render (opened by esteve)
enhancement webhttp://twistedmatrix.com/trac/ticket/3711

[#3712] Delete the __main__ in twisted/names/root.py (opened by exarkun) (CLOSED, fixed)
enhancement names  http://twistedmatrix.com/trac/ticket/3712

[#3713] Remove references to split code (opened by thijs)
defect  core   http://twistedmatrix.com/trac/ticket/3713

[#3714] Delete the __main__ in twisted/protocols/shoutcast.py (opened by exarkun) (CLOSED, fixed)
enhancement core   http://twistedmatrix.com/trac/ticket/3714

[#3715] Benchmark API (opened by thijs)
enhancement core   http://twistedmatrix.com/trac/ticket/3715

[#3716] Delete twisted.protocols.telnet (opened by exarkun)
enhancement core   http://twistedmatrix.com/trac/ticket/3716

[#3717] Delete the __main__ in twisted/protocols/postfix.py (opened by exarkun) (CLOSED, fixed)
enhancement core   http://twistedmatrix.com/trac/ticket/3717

[#3718] twisted.internet.posixbase._Waker not defined on Jython (opened by pjenvey)
defect  core   http://twistedmatrix.com/trac/ticket/3718

[#3719] Stop using twisted.test.time_helpers in twisted.test.test_internet (opened by exarkun)
enhancement core   http://twistedmatrix.com/trac/ticket/3719

[#3720] twisted/test/threading_latency.py is an old cruddy looking thing (opened by exarkun)
defect  core   http://twistedmatrix.com/trac/ticket/3720

[#3721] twistd web --wsgi=myapplication sends SCRIPT_NAME='/' and PATH_INFO='/foo/bar' to the application. (opened by dreid) (CLOSED, fixed)
defect  webhttp://twistedmatrix.com/trac/ticket/3721

[#3722] Consolidate cred plugins into the core twisted dropin file (opened by exarkun)
enhancement core   http://twistedmatrix.com/trac/ticket/3722

[#3723] Deprecate twisted.spread.refpath (opened by exarkun)
enhancement core   http://twistedmatrix.com/trac/ticket/3723

[#3724] Deprecate cfreactor and cfsupport (opened by exarkun)
enhancement core   http://twistedmatrix.com/trac/ticket/3724

[#3725] Remove Jython platform detection (opened by exarkun)
enhancement core   http://twistedmatrix.com/trac/ticket/3725

[#3726] Delete twisted.flow (opened by exarkun)
enhancement flow   http://twistedmatrix.com/trac/ticket/3726

[#3727] Delete twisted.internet.default (opened by exarkun)
enhancement core   http://twistedmatrix.com/trac/ticket/3727

[#3729] Refactor duplication between twisted/web/twcgi.py, twisted/web/wsgi.py, and twisted/web2/twcgi.py (opened by exarkun)
enhancement webhttp://twistedmatrix.com/trac/ticket/3729

[#3730] twisted.web.wsgi doesn't set REMOTE_ADDR (opened by dreid) (CLO