[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&nbsp; &nbsp; &nbsp;2006-10-02 11&#58;11&#58;09.000000000 +0100
+++ ../../../yaws/src/ymnesia.erl&nbsp; &nbsp; &nbsp; &nbsp;2006-09-06 12&#58;22&#58;17.000000000 +0100
@@ -145,7 +147,7 @@
&nbsp; &nbsp; &nbsp;case catch ?MNESIA&#40;table_info, &#91;Table, attributes&#93;&#41; of
&nbsp; &nbsp; &nbsp; &nbsp; Headers when list&#40;Headers&#41; ->
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Vp = view_pattern&#40;Cbox, map&#40;fun&#40;X&#41; -> a2l&#40;X&#41; end, Headers&#41;&#41;,
-&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#123;Q, Result&#125; = do_query&#40;Table, Sp&#41;,
+&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#123;Q, Result&#125; = do_query&#40;Sp&#41;,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#123;ehtml,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;&#123;head, &#91;&#93;,
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;meta&#40;&#41; ++
@@ -241,9 +243,9 @@
&nbsp;massage&#40;W&#41; ->
&nbsp; &nbsp; &nbsp;lists&#58;flatten&#40;io_lib&#58;format&#40;"~p",&#91;W&#93;&#41;&#41;.

-do_query&#40;Table, Sp&#41; ->
-&nbsp; &nbsp; &#123;lists&#58;flatten&#40;io_lib&#58;format&#40;"mnesia&#58;match_object&#40;~p,~p&#41;", &#91;Table,Sp&#93;&#41;&#41;,
-&nbsp; &nbsp; &nbsp;lists&#58;keysort&#40;2, ?MNESIA&#40;dirty_match_object, &#91;Table, Sp&#93;&#41;&#41;&#125;.
+do_query&#40;Sp&#41; ->
+&nbsp; &nbsp; &#123;lists&#58;flatten&#40;io_lib&#58;format&#40;"mnesia&#58;match_object&#40;~p&#41;", &#91;Sp&#93;&#41;&#41;,
+&nbsp; &nbsp; &nbsp;lists&#58;keysort&#40;2, ?MNESIA&#40;dirty_match_object, &#91;Sp&#93;&#41;&#41;&#125;.

&nbsp;error_page&#40;Msg&#41; ->
&nbsp; &nbsp; &nbsp;&#123;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