Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #21994

Re: class checking its own module for an attribute

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rodperson@rodperson.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.057
X-Spam-Evidence '*H*': 0.89; '*S*': 0.00; 'subject:module': 0.04; 'rod': 0.07; '.pyo': 0.16; 'cc:addr:python-list': 0.16; 'wed,': 0.17; 'wrote:': 0.18; 'cc:no real name:2**0': 0.21; 'header:In- Reply-To:1': 0.22; 'module,': 0.23; 'cc:2**0': 0.26; 'module': 0.26; 'users.': 0.28; "i'm": 0.28; 'cc:addr:python.org': 0.29; 'server': 0.30; 'databases,': 0.30; '+0100': 0.32; 'deploy': 0.34; 'run': 0.37; 'but': 0.37; 'charset:us-ascii': 0.37; 'received:128': 0.38; 'files': 0.39; 'that.': 0.39; 'everyone': 0.39; 'called': 0.40; 'our': 0.63; 'account': 0.66; 'otten': 0.84; 'subject:its': 0.84; 'subject:own': 0.91
Date Wed, 21 Mar 2012 13:10:41 -0400
From Rod Person <rodperson@rodperson.com>
To Peter Otten <__peter__@web.de>
Subject Re: class checking its own module for an attribute
In-Reply-To <jkd1dr$uns$1@dough.gmane.org>
References <20120321112503.00006eb5@unknown> <jkd1dr$uns$1@dough.gmane.org>
X-Mailer Claws Mail 3.7.10cvs7 (GTK+ 2.16.6; i586-pc-mingw32msvc)
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.867.1332349843.3037.python-list@python.org> (permalink)
Lines 27
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1332349843 news.xs4all.nl 6967 [2001:888:2000:d::a6]:52518
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:21994

Show key headers only | View raw


On Wed, 21 Mar 2012 17:59:56 +0100
Peter Otten <__peter__@web.de> wrote:

> Rod Person wrote:
> 
> > We have a module called constants.py, which contains [whatever]
> > related to server names, databases, service account users and their
> > passwords.
> 
> Passwords?
> 

Yes, not the best thing, but they are only service account that run
nightly batch jobs. Everyone in our IT department knows these password
and users. I only deploy the .pyo or .pyc files for this module,
although I'm looking into a better way than that.






-- 

Rod Person  http://www.rodperson.com  rodperson@rodperson.com

'Silence is a fence around wisdom'

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: class checking its own module for an attribute Rod Person <rodperson@rodperson.com> - 2012-03-21 13:10 -0400

csiph-web