On Thu, Feb 2, 2012 at 9:48 PM, C Anthony Risinger <[email protected]> wrote:
> On Thu, Feb 2, 2012 at 2:17 PM, lkcl luke <[email protected]> wrote:
>>
>> okay!  right.  i now have working code:
>>    git clone git://pyjs.org/pyjamaswebwiki
>
> i think you mean `pyjamasgitwiki`, and you forgot the `/git/` dir ...
> (we should remove that extra /git/ dir anyway, git requests have a
> specific signature that's easy to match, should we move to an http
> solution [inevitable]):
>
> git clone git://pyjs.org/git/pyjamasgitwiki
>
> ... is proper URI.
>
>> it's based on simplewiki, modified to have a "save" button, and the
>> back-end uses dulwich (which is a complete bitch, btw).rather than
>> save to the local filesystem i faked up adding a file to the index.
>> destroyed several git object stores before getting this right :)
>>
>> so, although i'd _like_ to add this to the pyjamas repository, so that
>> the wiki files actually live *in* the pyjamas repository, to be really
>> blunt i don't trust the code yet not to completely fuck up the pyjamas
>> repository.
>>
>> so, for a while, i'll run them in tandem (the new one and ikiwiki) -
>> see how people get on.  they'll operate off the same wiki git
>> repository.
>
> i couldn't get this running ...
>
> ) `static` symlink tries to be created everytime
> ) `cjson` doesn't exist in 2.7 IIRC ... either way should try `json`
> ) `dulwich` maybe not exist
> ) config not exist ....

 /etc/pyjamas/services.ini
 [wiki]
git = /home/lkcl/src/pyjamaswiki/wiki
defaultpage = index

> ) wtf? global config? nay

 solves problem of having to start up with a script with hardcoded paths in it.

> ) doesnt create new repo on init

 no - it's to reference the existing one

> ) you committed hardcode path to /home/lkcl ...
> ) commited a bunch of junk? test*.py and PythonCGIServer.py?
> ) run_server.sh has an arg ... hardcoded path, doesnt respect it anyway

 .... oh look, a hard-coded path.

> ) because of ^^^ all relative paths break (must be in output dir when ran)
> ) loads/dumps not encode/decode

 que?  oh probably.  the code which got cut/paste is fairly old.

 l.

Reply via email to