Enc: Res: [Sputnik-list] Permissions
Sérgio Medeiros
tampo_8 at yahoo.com
Wed Feb 27 09:41:52 GMT+2 2008
I forgot to "reply all". The formatting of my e-mail is very bad, I am sorry :-(
I try to fix it manually.
Sergio
----- Mensagem encaminhada ----
De: Sérgio Medeiros <tampo_8 at yahoo.com>
Para: Yuri Takhteyev <yuri at sims.berkeley.edu>
Enviadas: Quarta-feira, 27 de Fevereiro de 2008 8:34:04
Assunto: Res: [Sputnik-list] Permissions
>> In line 462, I changed "order = tostring(math.random()*5)," to
>> "order = string.gsub (tostring(math.random()*5), ",", "."),".
>> I think this error is because the locale, as in Brazilis common
>> to write a "," instead of a "." when representing a float point
>> number.
>
Ouch. I am glad you managed to track this down. But I amwondering
>
if this is the best way to fix it. Does Lua have somesort of
>
local-independent version of to_string that would be appropriate for
>
converting numbers to stings to dostring them later?
Looking
the
Manual,
I
think
a
good
option
would
be
to
use
math.random
with
an
integer
interval.
I
am
still
thinking
why
the
","
did
not
appear
when
using
LFS.
>Well, I don't want Sputnik to have to know that it's using one or the
>other storage implementation. Note that with storage.simple, the
>wiki-data directory is created by the sputnik _installation script_
>not by Sputnik itself.
Yes,
sometimes
I
said
Sputnik
when
I
should
say
"Sputnik
installation
script".
Well,
I
can
do
a
"pcall"
to
"svn.repos_create"
inside
Versium,
but
I
think
this
should
be
done
by
the
user
or
the
installation
script.
Another
thing
is
that
"svn.repos_create"
only
creates
local
repositories
and
somebody
may
want
to
user
a
non-local
repository.
>It's was meant as question really. But I think it would make plugins
>easier to understand. Basically, if you want to install a versium
>plugin X, you do "luarocks install versium-x". I.e.: "luarocks
>install versium-svn", "luarocks install versium-sqlite", "luarocks
>install versium-s3", etc. It would always be one rockwhich would
>pull whatever else it needs. If we say that to install the SVN plugin
>you need to install "luasvn" and assume that versium.storage.svn is
>already there, then this leaves you wondering what you need to install
>for versium.storage.sqlite. Do you need luasql? Is
>"versium.storage.sqlite" included? Etc. Plus this makes it easy to
>know when and what to upgrade. E.g., you would know to ignore any new
>releases of "versium-sqlite". But again, it's a question. Do you
>think I am being a decomposition freak?
I
think
you
are
a
little
bit
afraid
of
the
problems
a
user
can
have
when
trying
to
install
luasvn
:-)
In
this
case,
it
seems
a
good
approach
to
have
a
different
rock
"versium-x",
assuming
the
basic
rock
of
Versium
will
only
install
"lfs".
Sergio
Abra
sua
conta
no
Yahoo!
Mail,
o
único
sem
limite
de
espaço
para
armazenamento!
http://br.mail.yahoo.com/
Abra sua conta no Yahoo! Mail, o único sem limite de espaço para armazenamento!
http://br.mail.yahoo.com/
More information about the Sputnik-list
mailing list