python setup.py: how to override a setup.cfg value ?

2007-08-23 Thread Chris Shenton
I'm building python-ldap and need to change values of library and include paths that are in the setup.cfg file. This is an automated build (using "buildit") so I'd prefer not to have edit the .cfg by hand, with sed, or even with buildit's Substitute(). I'd like to be able to do something like I'd

Re: Logging: how to suppress default output when adding handlers?

2007-06-05 Thread Chris Shenton
Vinay Sajip <[EMAIL PROTECTED]> writes: > The default handler is created because you are calling the convenience > functions of the logging package: logging.error, etc. If you don't > want the default handler to be created, either > > (a) Configure the logging system yourself before any logging ca

Logging: how to suppress default output when adding handlers?

2007-06-05 Thread Chris Shenton
I am setting up handlers to log DEBUG and above to a rotating file and ERROR and above to console. But if any of my code calls a logger (e.g., logging.error("foo")) before I setup my handlers, the logging system will create a default logger that *also* emits logs, which I can't seem to get rid of.

RSA SecurID token authentication?

2007-05-29 Thread Chris Shenton
Anyone doing python application authentication using RSA SecurID tokens? We have a Pylons app that needs this. I've written code against RSA's API and found the docs terrible and the libraries painful to use. RSA has a RADIUS server fronting their server so I expect I could use that instead,

Re: TimedRotatingFileHandler() isn't rotating at midnight?

2007-02-09 Thread Chris Shenton
"Vinay Sajip" <[EMAIL PROTECTED]> writes: > It might. I assume you have a long-running process which runs past > midnight - that's the scenario that TimedRotatingFileHandler is meant > for. Can you post a complete minimal example which shows the problem? > Rotating should happen when the logging

TimedRotatingFileHandler() isn't rotating at midnight?

2007-01-31 Thread Chris Shenton
I set this up 3 days ago and have not seen any of the logs I've created this way being rotated. I expected them to rotate every midnight. I'm calling the code that uses this logger many times, each a separate run, if that matters. Am I doing something stupid? I can't find anything on google and

rcslib.py doesn't like dot in revision numbers?

2005-07-22 Thread Chris Shenton
[Disclaimer: I'm a python newbie.] I'm using rcslib.py to massage an RCS repo. The code uses a "name_rev" object which acts two ways: 1. if it's a string, represents the head version of the file 2. if a tuple (name, rev) represents a name and a revision Works fine if I use it like: checkout(