Re: karaage
On Fri, Jul 16, 2010 at 10:03:24AM +1000, Brian May wrote: At present our (planned but not implemented) approach is to have our python dist-utils script create a directory karaage/conf under the python path, and then karaage can import then using import karaage.conf.settings for example. Use of dist-utils and cdbs makes the debian/rules file very simple. However, from the point of view of the package, it would be better if we could put the config files under /etc/karaage. Nothing stops you from putting /etc/karaage on sys.path in your app. Regards Floris -- Debian GNU/Linux -- The Power of Freedom www.debian.org | www.gnu.org | www.kernel.org -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100716075422.ga18...@laurie.devork.be
Re: [Half-OT] Plone and: Re: python 2.6 deb for lenny ?
Hi, On Thu, 15.07.2010 at 16:50:02 -0400, Michael Mulich mr...@psu.edu wrote: So I'm fairly stuck at this point, but I'm not giving up. I'm going to package plone no matter how many times it kicks me in the head (or at least until brain damage ensues). Any one else feel like joining me? :) I didn't read your other emails so far, but Plone imho *is* a bit too dynamic for Debian's packaging system, at least, if you, like me, need to deploy it in a hosting environment. Therefore, I'm doing the whole Plone stuff outside of Debian's packaging, BUT I'd like to see Debian provide a good platform to run Plone on, which is, also imho, currently not the case. I feel like working on that issue, but not on trying to package Plone. -- Kind regards, --Toni++ -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100716080423.28222.qm...@oak.oeko.net
Re: karaage
Hi, On Fri, 16.07.2010 at 10:03:24 +1000, Brian May br...@microcomaustralia.com.au wrote: python path, and then karaage can import then using import karaage.conf.settings for example. Use of dist-utils and cdbs makes the debian/rules file very simple. However, from the point of view of the package, it would be better if we could put the config files under /etc/karaage. in roundup, I inherited the following solution, which I find almost practical (could be better, but works ok): ... execfile(/etc/roundup/cgiconf.py) ... The file contains some Python code to set variables and such. I'd guess that this translates to your Django app in the following way: settings.py becomes eg. execfile(/etc/karaage/settings.py) -- Kind regards, --Toni++ -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20100716075815.27124.qm...@oak.oeko.net
Re: apply join the Python Modules Packaging Team
[wen heping, 2010-07-14] I like python and Debian and I hope I can do more for them, I should be happy if I can join the python modules packaging team. You're in. Welcome :-) Currently I maintain python-tables in Debian. there's a new upstream version available, it's a good excuse to introduce DPMT fields in debian/control... -- Piotr Ożarowski Debian GNU/Linux Developer www.ozarowski.pl www.griffith.cc www.debian.org GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645 signature.asc Description: Digital signature
Re: karaage
On 16 July 2010 17:58, Toni Mueller t...@debian.org wrote: I'd guess that this translates to your Django app in the following way: settings.py becomes eg. execfile(/etc/karaage/settings.py) Thanks! This seems a really good answer. Furthermore, looks like I should be able to do setup default variables first, and have the settings.py inspect/modify these values, e.g.: INSTALLED_APPS = ( ... stuff here ... ) execfile(/etc/karaage/settings.py) ... and in /etc/karaage/settings.py ... INSTALLED_APPS += ( ... local apps required ...) Which is a much better solution for this problem then trying to use import everywhere (as i was). It is the weekend here now, will try it for sure next Monday. -- Brian May br...@microcomaustralia.com.au -- To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktiljdueh5otqk4v0gliwvwr4q6zovjnipiybl...@mail.gmail.com