to_see skrev: > "Any sufficiently advanced technology is indistinguishable from > magic." > Arthur C. Clarke, "Profiles of The Future", 1961 (Clarke's third > law) >
> Snippet #26 solved my problem, essentially in two lines. I could not > write those lines for myself now, and I'm not certain I'll ever be > able to do so. > > Am I having a fairly normal introduction to a web framework? I cannot > see this as technology. All I see is magic. > FYI: I first looked at the Django source a year and a half ago. The first time I saw (*args, **kwargs) I ran away screaming, deciding that I would just try to use the magic, rather than understand it or control it. Since then I learned some more python, and recognized this as a standard python idiom. Yesterday I ran into almost exactly the same problem as you - how to populate my dropdown at the time of the request, rather than when the module was loaded. I then went on to write exactly the same code as the snippet, except for the identifiers and the "blank value" (with a bit of trial and error). So learn some python and you will be able to see how the magic works. Or just lean back and enjoy the show ... Nis --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---