mod_python and static methods

2007-02-21 Thread Rory Campbell-Lange
ork around this; otherwise we will have to rework the calculation module. Thanks Rory -- Rory Campbell-Lange <[EMAIL PROTECTED]> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

Internationalisation for non-supported languages

2007-04-03 Thread Rory Campbell-Lange
= 'af' and restarting Apache. No luck. I've also tried to list Afrikaans using the "dummy gettext() function" as described at http://www.djangoproject.com/documentation/i18n/ with no success. Help gratefully received. Regards Rory -- Ror

Re: Internationalisation for non-supported languages

2007-04-03 Thread Rory Campbell-Lange
Dear Malcolm Many thanks for your response. On 03/04/07, Malcolm Tredinnick ([EMAIL PROTECTED]) wrote: > > Hi Rory, > > On Tue, 2007-04-03 at 08:45 +0100, Rory Campbell-Lange wrote: > > We are developing a website for use in 16 EU countries. Some of the > > languages

Re: Migrating from Posgresql to MySql

2006-10-16 Thread Rory Campbell-Lange
Hi Giovanni Postgresql has a very useful COPY command which should be able to do what you need. See http://www.postgresql.org/docs/8.1/static/sql-copy.html You will see that you can export to files in various custom formats, while CSV mode is supported specially. You may need to issue the

Using forms: filter foreign key relationships?

2006-11-28 Thread Rory Campbell-Lange
. Part has a foreign key relationship to Site, which has a foreign key relationship to Country. The autogenerated Part.type form field shows all types, but needs to be filtered by site.country. Is there a way of doing this? Rory -- Rory Campbell

filter by related record

2006-12-07 Thread Rory Campbell-Lange
ot null factor | numeric(13,7)| not null isreverse | boolean | not null isoffsite | boolean | not null isthermal | boolean | not null created | timestamp with time zone | not nu

Re: filter by related record

2006-12-07 Thread Rory Campbell-Lange
On 07/12/06, Rory Campbell-Lange ([EMAIL PROTECTED]) wrote: > I'm not sure how to do a join against a related record: > > g=SiteEnergy.objects.filter(siteyear=9, energy__isofsite=False) > raise TypeError, "Cannot resolve keyword '%s' into field" % name > T

Re: filter by related record

2006-12-11 Thread Rory Campbell-Lange
Hi Russell I'm very grateful for your advice; its now working. Many thanks Rory On 08/12/06, Russell Keith-Magee ([EMAIL PROTECTED]) wrote: > On 12/8/06, Rory Campbell-Lange <[EMAIL PROTECTED]> wrote: > Your SiteEnergy model doesn't have an 'energy' field. The

"include" wiping out rest of template

2006-12-29 Thread Rory Campbell-Lange
Is it wise to embed help text in the bottom of each html template file? It seems like a good idea in general, I'm just having trouble accessing it from another template file. Advice much appreciated. Rory -- Rory Campbell-Lange <[EMAIL PROTECTED]> --~--~-~--~~--

Help embedded in each template [was Re: "include" wiping out rest of template]

2006-12-31 Thread Rory Campbell-Lange
On 29/12/06, Rory Campbell-Lange ([EMAIL PROTECTED]) wrote: I'd like to hold the 'help' for each template in a block called 'helptext' within each html file. I'd like to include the relevant html files from the main /help/ template, so that /help/sites shows the

Django to replace in-house PHP framework [speculative][long]

2006-09-04 Thread Rory Campbell-Lange
not answer. I imagine mapping python objects to pl/pgsql functions by hand yet benefit from URL mapping, cookie handling/session management (like PHP) and easy templating. I guess it is fair to say we would wish to discard the standard ORM mappings. Is this doable? Thanks for any comments and

Re: Django to replace in-house PHP framework [speculative][long]

2006-09-05 Thread Rory Campbell-Lange
use independent python ORM called SQLAlchemy (which as a > backend will be also in django). I'm not so interested in the ORM. Can I create my own object <-> sql mapping and use that? I assume there is a way otherwise it would not be possible to benefit from SQL functions. Rory --