[Sputnik-list] (no subject)
Yuri Takhteyev
yuri at sims.berkeley.edu
Sat Jun 23 12:57:16 GMT+3 2007
Same as with wikisvnstorage, let's leave markdown as the default
version (both I expect most people to prefer markdown to POD and
because POD requires much more complicated installation because of
lpeg dependency). So, I am reverting to the previous version of
sputnik.lua.
The choice of markup should be configurable. This means that we
probably need a single interface, and a wrapper around each markup
module to support this interface.
- yuri
On 6/23/07, Sérgio Medeiros <tampo_8 at yahoo.com> wrote:
> I did another commit (81) adding POD. As usual, to use POD is not so straight :-)
>
> - I added a pod.lua file into "dependencies". But you need to get "lpeg" and put "lpeg.so" into
> "INSTALL_DIR/lib/lua/5.1/"
>
> - I am sending a Special:Welcome written using POD
>
> If anybody wants to know more about LuaSVN and LuaPOD, there is some information available:
>
> - LuaSVN:
> * http://www.lua.inf.puc-rio.br/~sergio/luasvn/api-en.html (English)
> * http://www.lua.inf.puc-rio.br/~sergio/luasvn/api-pt.html (Portuguese)
>
> - LuaPOD:
> * http://www.lua.inf.puc-rio.br/~sergio/luapod/api-en.html (English)
> * http://www.lua.inf.puc-rio.br/~sergio/luapod/api-pt.html (Portuguese)
>
> Sérgio
>
> ----- Mensagem original ----
> De: Yuri Takhteyev <yuri at sims.berkeley.edu>
> Para: Sérgio Medeiros <tampo_8 at yahoo.com>
> Cc: Sputnik <sputnik-list at lists.luaforge.net>
> Enviadas: Sábado, 23 de Junho de 2007 11:41:42
> Assunto: Re: [Sputnik-list] New commit of Sputnik with Subversion
>
> (If anyone is lost as to what we are talking about, look at
> http://www.freewisdom.org/projects/sputnik/Using_Storage_Modules)
>
> At least for the time being, I would rather keep wikifilestorage as
> the default module. I am quite excited about svnstorage and want to
> start using it, but the default installation needs to be as simple as
> possible. So, sputnik.lua in /trunk/ should default to use it
> wikifilestorage. Second, make sure that any changes you make to get
> wikisvnstorage to work do not break wikifilestorage. If you need
> changes to the wikistorage interface, that's fine, but please make
> sure to update and test both modules. I will try to do the same.
>
> For the time being, I just added a config variable "STORAGE_MODULE"
> which is supposed to have the name of the storage module. If it's not
> set, it will default to "wikifilestorage". However, we should
> probably do at least a few extra things:
>
> 1. If require fails (e.g., which is what happens when I try to set
> STORAGE_MODULE to "wikisvnstorage" without having built it), we should
> give a meaningful error message, which should probably contain a link
> to the wiki page for the corresponding module. However, let's deal
> with this problem separately - there generally needs to be a decent
> solution for error handling. I will look into this problem myself.
>
> 2. We will have to rethink the interface somewhat in terms of what
> information is passed to the storage module. The simplest thing to do
> would be to pass to open() all of the config table, and then let the
> module pick from it whatever it needs.
>
> I am going to try building luasvn now.
>
> - yuri
>
>
> On 6/23/07, Sérgio Medeiros <tampo_8 at yahoo.com> wrote:
> > Hi, again!
> >
> >
> I forgot to say that you have also to populate the svn repository in
> the beginning. To make this task easier, I am sending the files,
> because I needed to rename them. Now you just have to extract
> "sputnik-data.tgz", enter into the directory "sputnik-data" and type
> "svn import file:///WIKI_DATA_DIR"
> >
> >
> >
> > Sérgio
> >
> >
> > ----- Mensagem original ----
> > De: Sérgio Medeiros <tampo_8 at yahoo.com>
> > Para: sputnik-list at lists.luaforge.net
> > Enviadas: Sábado, 23 de Junho de 2007 9:59:31
> > Assunto: [Sputnik-list] New commit of Sputnik with Subversion
> >
> > Hi!!
> >
> >
> As I have changed the way that LuaSVN return values, I updated the
> "wikisvnstorage.lua" file to reflect the changings in the LuaSVN API.
> >
> > As now I know how to upload files using Google Code, I have also committed the changes :-)
> >
> > But to get things working it is not so straight. This is the basic approach:
> >
> > - You should create the subversion directory where the sputnik data will reside: svnadmin create "/home/yuri/sputnik/data"
> >
> > - When editing "sputnik_config.lua" DO NOT put the final slash "/" in the name of the "WIKI_DATA_DIR"
> >
> > - After you can install Sputnik "sh build_sputnik.sh /home/yuri/sputnik/" (I did not change build_sputnik.sh)
> >
> >
> - If you copy "sputnik.cgi" to the correct place and try to see the
> result in a web browser, you should see a message saying
> > that "luasvn" was not found. At this point, I copied "luasvn.so" into INSTALL_DIR/lib/lua/5.1/
> >
> > - After this, everything should work.
> >
> > I would like to know if somebody else can get things working following this approach :-)
> >
> > I will try POD now!
> >
> > Sérgio
> >
> >
> >
> >
> >
> >
> >
> > ____________________________________________________________________________________
> > Novo Yahoo! Cadê? - Experimente uma nova busca.
> > http://yahoo.com.br/oqueeuganhocomisso
> >
> > _______________________________________________
> > Sputnik-list mailing list
> > Sputnik-list at lists.luaforge.net
> > http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
> >
> >
> >
> >
> >
> >
> > ____________________________________________________________________________________
> > Novo Yahoo! Cadê? - Experimente uma nova busca.
> > http://yahoo.com.br/oqueeuganhocomisso
> > _______________________________________________
> > Sputnik-list mailing list
> > Sputnik-list at lists.luaforge.net
> > http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
> >
> >
> >
>
>
> --
> Yuri Takhteyev
> UC Berkeley School of Information
> http://www.freewisdom.org/
>
>
>
>
>
>
> ____________________________________________________________________________________
> Novo Yahoo! Cadê? - Experimente uma nova busca.
> http://yahoo.com.br/oqueeuganhocomisso
>
>
>
>
> ____________________________________________________________________________________
> Novo Yahoo! Cadê? - Experimente uma nova busca.
> http://yahoo.com.br/oqueeuganhocomisso
>
> _______________________________________________
> Sputnik-list mailing list
> Sputnik-list at lists.luaforge.net
> http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
>
--
Yuri Takhteyev
UC Berkeley School of Information
http://www.freewisdom.org/
More information about the Sputnik-list
mailing list