>The problem I am having is HOW to I get the
> now-run WSGI app to display as the page in Django?

The following is a bunch of off-the-top-of-my-head rambling.

1. If hgweb is running independently:
  1a. Let Django generate a page that uses frames or an iframe to
encapsulate the hgweb page.
  1b. Use urllib2.urlopen(some_url) to read the page from hgweb, slice
and dice to get the data, and then use it in a "pure" django page. If
you go this route, check out BeautifulSoup as a way to extract the
interestings bits from all that HTML.

2.  Many systems have an alternate output mode (XML, for instance)
that makes it easy to fetch their data and format it within your
context.  The google search appliance does this so you don't have to
use the google-generated results page.

3. Mercurial is written in Python, so you could load the libraries and
invoke it with the correct params, getting something like #2. I don't
know its structure: this may be quite straightforward or a real PITA.

4. A really friendly thing to do would be to make your solution an
Django app so other Django sites can easily incorporate it in to their
systems.

5. Rewrite Mercurial from the ground up as a django app ... Nah.

As I said, New Year's Day rambling.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to