[erlang-questions] WebTools available

datacompboy <>
Mon Oct 2 12:15:42 CEST 2006



tobbe wrote:
Take a look at 'ymnesia' in the Yaws CVS (or in jungerl/yfront).
(end of quote)


pfwwweeff!! lot of code, installation of libpam-dev (to build yaws), lot of additional application to start... and see that it doesn't works! :))))

ok, got it works will by change shown below... and that only for view, no sorting, nothing!

ok, will try patch tv to add webtool's behaviour.

--- src/ymnesia.erl     2006-10-02 11:11:09.000000000 +0100
+++ ../../../yaws/src/ymnesia.erl       2006-09-06 12:22:17.000000000 +0100
@@ -145,7 +147,7 @@
     case catch ?MNESIA(table_info, [Table, attributes]) of
        Headers when list(Headers) ->
            Vp = view_pattern(Cbox, map(fun(X) -> a2l(X) end, Headers)),
-           {Q, Result} = do_query(Table, Sp),
+           {Q, Result} = do_query(Sp),
            {ehtml,
             [{head, [],
               [meta() ++
@@ -241,9 +243,9 @@
 massage(W) ->
     lists:flatten(io_lib:format("~p",[W])).

-do_query(Table, Sp) ->
-    {lists:flatten(io_lib:format("mnesia:match_object(~p,~p)", [Table,Sp])),
-     lists:keysort(2, ?MNESIA(dirty_match_object, [Table, Sp]))}.
+do_query(Sp) ->
+    {lists:flatten(io_lib:format("mnesia:match_object(~p)", [Sp])),
+     lists:keysort(2, ?MNESIA(dirty_match_object, [Sp]))}.

 error_page(Msg) ->
     {html,

--
--- suicide proc near\n call death\n suicide endp
_________________________________________________________
Post sent from http://www.trapexit.org



More information about the erlang-questions mailing list