Dynamically adapting admin page for editting xml data?

2009-08-13 Thread spacetaxi
Hello fellow djangonauts, I'd like to implement an admin page (field, widget, template... whatever) to edit xml-formatted contents of TextFields. Every child node of the xml data has to be editable in a *separate* TextField. Simple example: I want to store some information about books, but for e

Re: One-to-many relationship (the opposite of many-to-one)

2009-08-13 Thread spacetaxi
Hi Fredrik, you could define a customized subclass of Site: -- from django.contrib.sites.models import Site class Company(models.Model): name = models.CharField(max_length = 30) url = models.CharField(max_length = 100) class CompanySite(S

Re: ModelForm limit m2m choices

2009-08-13 Thread spacetaxi
Hello alain31, On 12 Aug., 21:41, alain31 wrote: > [...] > How can I use a custom QuerySet for the choices of field1  ? I think it should work like this: myform = MyForm(..) myqueryset = myform.base_fields['field1'].queryset myqueryset = myqueryset.filter_by(somefield='somevalue') myform.b

Re: Dynamically adapting admin page for editting xml data?

2009-08-13 Thread spacetaxi
On 13 Aug., 11:53, spacetaxi wrote: > I'd like to implement an admin page (field, widget, template... > whatever) to edit xml-formatted contents of TextFields. Every child > node of the xml data has to be editable in a *separate* TextField. Ok guys, just in case anybody is int

Strange translation/encoding problem

2007-07-05 Thread spacetaxi
Hi list, my django is completely utf8-configured. I'm using I18N and my msg-ids (po-files) are utf8-encoded, too. But now I've run into a strange problem: Translation of strings containing non-ascii characters is working great in templates, but it fails if I try to translate non-ascii strings in

Re: Strange translation/encoding problem

2007-07-09 Thread spacetaxi
On 5 Jul., 17:39, "Emanuele Pucciarelli <[EMAIL PROTECTED]>" <[EMAIL PROTECTED]> wrote: > My guess is that if you import ugettext, then you should supply a > Unicode string as an argument: > > def index(request): > teststring = _(u"Lösung") > [...] > > (notice the 'u' before the string). >

Django as front-end for php- and zope2-based apps?

2008-06-29 Thread spacetaxi
Hello djangonauts, maybe someone of you has a good solution for the following scenario: We have several rather complex web applications (partly php-based, partly zope2-based) and I'd like to integrate them into one django- based front-end. New apps will be implemented with django, but we definit

Re: Django as front-end for php- and zope2-based apps?

2008-06-29 Thread spacetaxi
On 29 Jun., 18:41, "Ariel Mauricio Nunez Gomez" <[EMAIL PROTECTED]> wrote: > I have 'integrated' django and moodle in the past. For authentication I > would suggest using a single source (In my case is imap auth using google > apps for your domain) and both moodle and django validate credentials >

Re: Django as front-end for php- and zope2-based apps?

2008-06-29 Thread spacetaxi
On 29 Jun., 18:44, "Alex Ezell" <[EMAIL PROTECTED]> wrote: > It's pretty simple to get Django and PHP to share the same > session information once a user has been logged in on the > PHP side. I'd like to do it the other way around: Login with django and share the authentication with PHP and Zope2

Unsorted user selection widget after changeset 7806 (nfa)

2008-07-03 Thread spacetaxi
Hello, currently I'm a little bit lost on this one... Maybe some kind soul can give me a hint? Look at this excerpt of a model class: - from django.db import models from django.contrib.auth.models import User class Article(models.Model): # (...snip...) editors = models.ManyToManyFiel

Re: Unsorted user selection widget after changeset 7806 (nfa)

2008-07-04 Thread spacetaxi
? Kind regards -Stephan On 3 Jul., 13:56, spacetaxi <[EMAIL PROTECTED]> wrote: > Hello, currently I'm a little bit lost on this one... Maybe some kind > soul can give me a hint? > > Look at this excerpt of a model class: > > - > from django.db import models &

Re: Unsorted user selection widget after changeset 7806 (nfa)

2008-07-04 Thread spacetaxi
On 4 Jul., 15:52, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > You've waited one day right at the beginning of a big holiday weekend in the > US; [...] Ooops, sorry. I didn't think about this. Thanks for your feedback! -Stephan --~--~-~--~~~---~--~~ You received

How to change ordering of m2m-fields in newforms-admin?

2008-07-08 Thread spacetaxi
Hello all, maybe there are some newforms-admin experts out there: What's the right way to change the ordering of ManyToMany-fields (displayed as select widgets) in newforms-admin? I need to change the ordering *without* changing the respective model class. Background: The default ordering of th

Re: Is the software behind the Djangobook available?

2007-01-08 Thread spacetaxi
Filipe Correia wrote: Just for the record, I would also be very interested in this! Yes, it would be *really* great to have this software available! :-) Regards -Stephan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google