[Sputnik-list] Versium-SVN (was: Permissions)

Yuri Takhteyev yuri at sims.berkeley.edu
Fri Feb 29 08:22:18 GMT+2 2008


First, changing subject, since this thread hasn't been about
permissions for some time.

Second, versium-svn works for me when used against the last released
versium rock, including saving.  Thanks, Sérgio.

I updated the installation instructions, which now suggest getting
svn.lua from SVN with wget.

    http://sputnik.freewisdom.org/en/With_SVN

Now, onto Pierre's question.  This only would be relevant to those who
want to try installing Versium from SVN rather than as a rock.  (Note
that Sérgio's svn.lua works with the versium _rock_, not not with
HEAD.)  If you are happy with using rocks, you can skip the rest of
this email.

If you are still with us:  A few weeks ago I was doing cleanup of code
and changed versium.luaenv (which is a module through which I route
all lua sandboxing) from functional closures to "classes."  Nothing
anything against closures, but Sputnik and Versium mostly use class
style, so I figured this should be the same.  That was revision 194.
(http://code.google.com/p/sputnik-wiki/source/detail?r=194)  After
that change, what used to be versium.luaenv.make_sandbox() becomes
versium.luaenv.Sandbox:new()  This new API is not used by Sputnik.
Both the latest released Sputnik rock and HEAD revision in of Sputnik
code in SVN use the old version, pre r194.  In retrospect I probably
should have tagged the revision before that, but I didn't expect
anyone to be looking at SVN. :)

I haven't applied the patch you sent since it simply reverted the
earlier change.  If you want the old functionality, you can simply
update rocks/versium to r193.

My plan was to fix a few things in Sputnik first, release another rock
of Sputnik (make_sandbox style), then update everything to the new API
and release another set of rocks.  Then the whole luausers demo thing
came up...

Note that Sergio's versium.storage.svn is written against old (pre
r194) API.  So, you _can_ make it work if you install Versium from
luarocks rather than from SVN (or install r193 from SVN).  I want to
keep it this way until I package it as a rock (this weekend), so that
I have a rock of it that works with the rocks currently in the
repository.  Then I will update the whole thing.

Anyway, I reverted luaenv.lua back to r193 _for now_.  See if this
works (_for now_).  If not, you can either use r193 of versium or take
r221 and edit svn.lua, sputnik/init.lua and
sputnik/util/html_forms.lua and versium/inflators/lua.lua to use
Sandbox:new() API.  Either way, in a few days I will change it back to
Sanbox:new() style together with the modules that use it, check
everything in at the same time, and release a new set of rocks.

Hopefully this is enough information.

>  I can make a branch in the mean time but lasts versions (tags ?) are
>  in branches and some extra document are in trunk.

Yes, feel free to make your own branch or tags, just make sure that
it's easy to tell from the name that it's your personal branch.
Ignore old branches - they don't have anything that you can possibly
want in them.

- yuri

-- 
http://sputnik.freewisdom.org/



More information about the Sputnik-list mailing list