bzrweb?

Robert Collins robertc at robertcollins.net
Thu Dec 1 11:54:15 GMT 2005


On Wed, 2005-11-30 at 15:05 -0800, Robey Pointer wrote:
> On 30 Nov 2005, at 12:01, Goffredo Baroncelli wrote:
> 
> > On Wednesday 30 November 2005 20:43, Robey Pointer wrote:
> >> Is anyone still maintaining bzrweb?  The links on the wiki are dead.
> >> I was interested in running it to replace viewarch for my bzr
> >> branches...
> >>
> >> robey
> >
> > You can try
> >
> > http://goffredo-baroncelli.homelinux.net/bazaar/
> >
> > I appreciate any feedback
> 
> 
> I was avoiding this because I thought it required running a separate  
> server outside of apache -- I'm glad to see I was totally wrong, and  
> it runs just fine as a cgi. :)
> 
> 	http://www.lag.net/paramiko/hgweb.cgi
> 
> I had to change one thing in hgweb.cgi to make it work with the  
> plugin being installed in .bazaar/plugins/ instead of directly into bzr:
> 
> 	sys.path.insert(0, "/home/robey/.bazaar/plugins")
> 	from webserve import hgweb
> 
> This is probably not the right solution, but no variant of "import  
> bzrlib.plugins.webserve" was working.
> 
> By the way, I highly recommend simpleTAL for templating.  It's small,  
> simple, and avoids you having to write yet another template engine. ;)

You need to do:
import bzrlib.plugin
bzrlib.plugin.load_plugins()
import bzrlib.plugins.webserver

Rob

-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051201/83ba3255/attachment.pgp 


More information about the bazaar mailing list