Webinterface for Bazaar in PHP

Martin Pool mbp at sourcefrog.net
Thu Jul 2 01:42:36 BST 2009


2009/6/30 Christian Grobmeier <grobmeier at gmail.com>:
>>> I am asking if somebody of you does know some more webinterfaces,
>>> preferable written in PHP (please, don't beat me :-)) since PHP is the
>>> only language running smoothly on my 1and1 webspace. Python is
>>> officially supported, but I never got it managed to run a standard
>>> script. Same to CGI/Perl.
>>
>> I would love to see that too, since many free (or cheap) hosts support only
>> PHP.
>> I fear it is not possible though, at best you would have a PHP server asking
>> a Python script to provide the data from the Bazaar (eg. with
>> bzr-xmloutput).
>> But if you cannot even run a simple Python script, you are out of luck.
>
> hmmm... its worth a try I daresay. Beeing a total noob in Python, is
> there a simple script of that kind for testing purposes around? If so
> I am willing to try to install it on standard host and create a PHP
> gui to it.

Sure, try pasting this into a file and running it there:

#! /usr/bin/python
print "Hello"

run "chmod +x hello" on it then try to run it from a shell.

There are plenty of other hosts who will run it, and you can also use
Launchpad.net for hosting.

There are also plugins that statically generate and upload a view of
the branch; you could try that.

>> The only other way would be to rewrite Bazaar in PHP, to understand the
>> repository format(s), etc. Not impossible. Just overkill... :-)
>
> Actually I even thought on that :-)
> But looking at the docs, this is heavy duty. Its not to easy to
> learn.... on the other hand, the php would only need read support. If
> there is an easy to understand doc and maybe someone who is a bit more
> deeper into detail...

It would be possible, but probably not a good use of time.

-- 
Martin <http://launchpad.net/~mbp/>



More information about the bazaar mailing list