List Info

Thread: Django + XUL




Django + XUL
user name
2006-08-31 09:16:29
I'm looking for django + xul example or reference.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Django + XUL
user name
2006-08-31 15:21:23
On 8/31/06, Alagu Madhu <almadhugmail.com> wrote:
>
> I'm looking for django + xul example or reference.

I don't think you'll find it.

Django view functions just want HTTPResponses back; the
response body
is passed as either as string or an iterator over strings;
you can
override the MIME type like so:

from django.http import HTTPResponse

def test_view(request):
  response = HTTPResponse("Your XUL CODE HERE")
  response.META['CONTENT_TYPE']=
'application/vnd.mozilla.xul+xml'
  return response

If that's not what you're looking for, can you be more
specific?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Django + XUL
user name
2006-08-31 15:51:56
On 8/31/06, Jeremy Dunck <jdunckgmail.com> wrote:
> Django view functions just want HTTPResponses back; the
response body
> is passed as either as string or an iterator over
strings; you can
> override the MIME type like so:

You could also render XUL with the template system.

-- 
"May the forces of evil become confused on the way to
your house."
  -- George Carlin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Django + XUL
user name
2006-08-31 16:02:29
On 8/31/06, James Bennett <ubernostrumgmail.com> wrote:
>
> On 8/31/06, Jeremy Dunck <jdunckgmail.com> wrote:
> > Django view functions just want HTTPResponses
back; the response body
> > is passed as either as string or an iterator over
strings; you can
> > override the MIME type like so:
>
> You could also render XUL with the template system.

Yes indeed, I was just trying to demonstrate that the
overlap between
Django and XUL is rather small.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )