Erlang/OTP Forums

Author Message

<  Erlyweb mailing list  ~  s and other non-component data</h2></td> </tr> <tr> <td class="row3 one"><a id="34689"></a>ketralnis</td> <td class="row3 two"> <table cellspacing="0"> <tr> <td><a href="viewtopic.php?p=34689&sid=29e85bd98011e763f973030b33fceb99#34689"><img src="templates/TrapExit/images/icon_minipost.gif" style="width: 12px; height: 9px; border: 0;" alt="" /></a>Posted: Sat Nov 24, 2007 5:53 am</td> <td class="txtright"><a href="posting.php?mode=quote&p=34689&sid=29e85bd98011e763f973030b33fceb99"><img src="templates/TrapExit/images/lang_english/icon_quote.gif" alt="Reply with quote" title="Reply with quote" border="0" /></a> </td> </tr> </table> </td> </tr> <tr> <td class="row1 three"> <span class="avatar"></span> <span class="block">User</span> <span class="block"></span> <span class="block">Joined: 20 Jul 2007</span> <span class="block">Posts: 151</span> <span class="block">Location: San Francisco, CA</span> </td> <td class="row1 four"> <table cellspacing="0"> <tr> <td class="txttop">> So, instead of returning <br /> > <br /> > {with_phased_vars, <br /> > [{title, "foo"}, <br /> > {meta, "bar"}], <br /> > {ewc, navbar, [A]}} <br /> > <br /> > you would return <br /> > <br /> > {response, <br /> > [{phased_vars, <br /> > [{title, "foo"}, <br /> > {meta, "bar"}], <br /> > {body, {ewc, navbar, [A]}}]}. <br /> <br /> How does that stack? How would I return two {ewc}s? Like this?: <br /> <br /> {response, <br /> [{phased_vars, <br /> [{title, "foo"}, <br /> {meta, "bar"}], <br /> {body, [{ewc, navbar, [A]} <br /> {ewc, cookies, [A, cookies:find()]}]}]}. <br /> <br /> It looks good though; if I'm returning phased values like that, I'm <br /> probably setting headers and whatnot, since I'm probably the initial <br /> {ewc}. The only problem is that only initial {ewc}s can do it, not <br /> nested ones (unless there are many levels of {phased,ewc...}). That's <br /> fine for my purposes, but I don't know about most people. <br /> <br /> <br /> > <br /> > The 'response' tuple already lets you return values that aren't passed <br /> > to the view function. I think we should reuse it. <br /> > <br /> > What do you think? <br /> > <br /> > Yariv <br /> > <br /> > <br /> > <br /> > On Nov 17, 2007 6:35 PM, David King <dking@ketralnis.com> wrote: <br /> >> <br /> >>> Yeah, I agree. I think 'with_properties' and 'set_properties' sounds <br /> >>> too generic, though. Maybe 'with_meta_vals' or 'with_phased_vals'? <br /> >> <br /> >> I like with_phased_vals, that's relatively clear <br /> >> <br /> >> <br /> >>> <br /> >> <br /> > <br /> > <br /> <br /> --~--~---------~--~----~------------~-------~--~----~ <br /> You received this message because you are subscribed to the Google Groups "erlyweb" group. <br /> To post to this group, send email to <a href="mailto:erlyweb@googlegroups.com">erlyweb@googlegroups.com</a> <br /> To unsubscribe from this group, send email to <a href="mailto:erlyweb-unsubscribe@googlegroups.com">erlyweb-unsubscribe@googlegroups.com</a> <br /> For more options, visit this group at <a href="http://groups.google.com/group/erlyweb?hl=en" target="_blank">http://groups.google.com/group/erlyweb?hl=en</a> <br /> -~----------~----~----~----~------~----~------~--~--- <br /> <br /> Post recived from mailinglist</td> </tr> <tr> <td class="txtbottom"><span class="edited"></span></td> </tr> </table> </td> </tr> <tr> <td class="row1 five blacklink"><a href="#top">Back to top</a></td> <td class="row1 six"> <a href="profile.php?mode=viewprofile&u=1210&sid=29e85bd98011e763f973030b33fceb99"><img src="templates/TrapExit/images/lang_english/icon_profile.gif" alt="View user's profile" title="View user's profile" border="0" /></a> <a href="privmsg.php?mode=post&u=1210&sid=29e85bd98011e763f973030b33fceb99"><img src="templates/TrapExit/images/lang_english/icon_pm.gif" alt="Send private message" title="Send private message" border="0" /></a> <a href="aim:goim?screenname=Ketralnis&message=Hello+Are+you+there?"><img src="templates/TrapExit/images/lang_english/icon_aim.gif" alt="AIM Address" title="AIM Address" border="0" /></a> </td> </tr> <tr> <td class="row3 one"><a id="34723"></a>Guest</td> <td class="row3 two"> <table cellspacing="0"> <tr> <td><a href="viewtopic.php?p=34723&sid=29e85bd98011e763f973030b33fceb99#34723"><img src="templates/TrapExit/images/icon_minipost.gif" style="width: 12px; height: 9px; border: 0;" alt="" /></a>Posted: Sat Nov 24, 2007 10:32 pm</td> <td class="txtright"><a href="posting.php?mode=quote&p=34723&sid=29e85bd98011e763f973030b33fceb99"><img src="templates/TrapExit/images/lang_english/icon_quote.gif" alt="Reply with quote" title="Reply with quote" border="0" /></a> </td> </tr> </table> </td> </tr> <tr> <td class="row2 three"> <span class="avatar"></span> <span class="block">Guest</span> <span class="block"></span> <span class="block"></span> <span class="block"></span> <span class="block"></span> </td> <td class="row2 four"> <table cellspacing="0"> <tr> <td class="txttop">> How does that stack? How would I return two {ewc}s? Like this?: <br /> > <br /> > {response, <br /> > [{phased_vars, <br /> > [{title, "foo"}, <br /> > {meta, "bar"}], <br /> > {body, [{ewc, navbar, [A]} <br /> > {ewc, cookies, [A, cookies:find()]}]}]}. <br /> > <br /> > It looks good though; if I'm returning phased values like that, I'm <br /> > probably setting headers and whatnot, since I'm probably the initial <br /> > {ewc}. The only problem is that only initial {ewc}s can do it, not <br /> > nested ones (unless there are many levels of {phased,ewc...}). That's <br /> > fine for my purposes, but I don't know about most people. <br /> <br /> This limitation seems resonable to me too. The main need for the <br /> phased_vars feature is being able to set title, headers, etc, and <br /> those are for the most part determined by the top level ewc, not its <br /> subcomponents. If at some point we realize this is insufficient we can <br /> do the work to remove this limitation, but for now I think it strikes <br /> the best balance between features and ease of implementation. <br /> <br /> Yariv <br /> <br /> --~--~---------~--~----~------------~-------~--~----~ <br /> You received this message because you are subscribed to the Google Groups "erlyweb" group. <br /> To post to this group, send email to <a href="mailto:erlyweb@googlegroups.com">erlyweb@googlegroups.com</a> <br /> To unsubscribe from this group, send email to <a href="mailto:erlyweb-unsubscribe@googlegroups.com">erlyweb-unsubscribe@googlegroups.com</a> <br /> For more options, visit this group at <a href="http://groups.google.com/group/erlyweb?hl=en" target="_blank">http://groups.google.com/group/erlyweb?hl=en</a> <br /> -~----------~----~----~----~------~----~------~--~--- <br /> <br /> Post recived from mailinglist</td> </tr> <tr> <td class="txtbottom"><span class="edited"></span></td> </tr> </table> </td> </tr> <tr> <td class="row2 five blacklink"><a href="#top">Back to top</a></td> <td class="row2 six"> </td> </tr> <tr> <td class="row3 pad4 txtright" colspan="2"> <form method="post" action="viewtopic.php?t=10610&start=15&sid=29e85bd98011e763f973030b33fceb99"> <p>Display posts from previous: <select name="postdays"><option value="0" selected="selected">All Posts</option><option value="1">1 Day</option><option value="7">7 Days</option><option value="14">2 Weeks</option><option value="30">1 Month</option><option value="90">3 Months</option><option value="180">6 Months</option><option value="364">1 Year</option></select> <select name="postorder"><option value="asc" selected="selected">Oldest First</option><option value="desc">Newest First</option></select> <input type="submit" value="Go" class="button" name="submit" /></p> </form> </td> </tr> </table> <div class="timezone left"></div> <div class="timezone right">All times are GMT</div> <div class="spacing"></div> <table cellspacing="0" style="width: 100%"> <tr class="lines_3"> <th> <div class="left"> <a href="viewtopic.php?t=10610&view=next&sid=29e85bd98011e763f973030b33fceb99">View next topic</a><br /> <a href="viewtopic.php?t=10610&view=previous&sid=29e85bd98011e763f973030b33fceb99">View previous topic</a> </div> <div class="right"> Page <b>2</b> of <b>2</b><br /> Goto page <a href="viewtopic.php?t=10610&postdays=0&postorder=asc&start=0&sid=29e85bd98011e763f973030b33fceb99">Previous</a>  <a href="viewtopic.php?t=10610&postdays=0&postorder=asc&start=0&sid=29e85bd98011e763f973030b33fceb99">1</a>, <b>2</b> </div> <div class="clear"></div> <div class="left"> <span class="nav"><a href="index.php?sid=29e85bd98011e763f973030b33fceb99">Erlang Forum - Trap Exit Forum Index</a>  ~  <a href="viewforum.php?f=24&sid=29e85bd98011e763f973030b33fceb99">Erlyweb mailing list</a></span> </div> </th> </tr> </table> <div class="spacing"></div> <div class="postbuttons"><a href="posting.php?mode=newtopic&f=24&sid=29e85bd98011e763f973030b33fceb99"><img src="templates/TrapExit/images/lang_english/reply-locked.gif" alt="This forum is locked: you cannot post, reply to, or edit topics." /></a><a href="posting.php?mode=reply&t=10610&sid=29e85bd98011e763f973030b33fceb99"><img src="templates/TrapExit/images/lang_english/reply-locked.gif" alt="" /></a></div> <div class="spacing"></div> <div class="right"><form method="get" id="jumpbox" action="viewforum.php?sid=29e85bd98011e763f973030b33fceb99" onsubmit="if(document.jumpbox.f.value == -1){return false;}"> <p>Jump to: <select name="f" onchange="if(this.options[this.selectedIndex].value != -1){ forms['jumpbox'].submit() }"><option value="-1">Select a forum</option><option value="-1"> </option><option value="-1">Erlang</option><option value="-1">----------------</option><option value="23">Erlang</option><option value="7">Open Telecom Platform (OTP)</option><option value="14">Advanced Erlang/OTP</option><option value="20">User Contributions</option><option value="28">Open Source Projects</option><option value="-1"> </option><option value="-1">Trap exit</option><option value="-1">----------------</option><option value="5">Trapexit Forums</option><option value="19">Trapexit News</option><option value="-1"> </option><option value="-1">Mailing lists</option><option value="-1">----------------</option><option value="1">Erlang announce mailing list</option><option value="2">Erlang questions mailing list</option><option value="3">Erlang patches mailing list</option><option value="4">Erlang bugs mailing list</option><option value="11">Yaws mailing list</option><option value="27">Erlang Web mailing list</option><option value="12">Ejabberd mailing list</option><option value="24"selected="selected">Erlyweb mailing list</option><option value="25">RabbitMQ mailing list</option><option value="-1"> </option><option value="-1">User Groups</option><option value="-1">----------------</option><option value="26">Erlang-DACH</option><option value="29">Erlang-Paris</option></select><input type="hidden" name="sid" value="29e85bd98011e763f973030b33fceb99" /> <input type="submit" value="Go" class="button2" /></p> </form> </div> <div class="clear"></div> <div class="spacing"></div> <table cellspacing="0" style="float:left"> <tr> <td class="txttop"> </td> <td class="txtright"> You <b>cannot</b> post new topics in this forum<br />You <b>cannot</b> reply to topics in this forum<br />You <b>cannot</b> edit your posts in this forum<br />You <b>cannot</b> delete your posts in this forum<br />You <b>cannot</b> vote in polls in this forum<br />You <b>cannot</b> attach files in this forum<br />You <b>cannot</b> download files in this forum<br /> </td> </tr> </table> <div class="spacing"></div> <div class="spacing"></div> <div class="spacing"></div> <div class="copyright"> <!-- We request you retain the full copyright notice below including the link to www.phpbb.com. This not only gives respect to the large amount of time given freely by the developers but also helps build interest, traffic and use of phpBB 2.0. If you cannot (for good reason) retain the full copyright we request you at least leave in place the Powered by phpBB line, with phpBB linked to www.phpbb.com. If you refuse to include even this then support on our forums may be affected. The phpBB Group : 2002 Do not remove the copyright link to www.mikelothar.com below. Feel free to rename and/or modify it as long as it still points back to www.mikelothar.com. Feel free to add a 'Modified by [Your Name]' - or similar - link next to it if you have made changes to the layout. Feel free to get more information or ask me questions on www.mikelothar.com. Feel free to feel free. Mike Lothar : 2004 - 2006 // --> Hosted by <a href="http://www.erlang-solutions.com/" title="Erlang Solutions">Erlang</a> <a href="http://www.erlang-solutions.com/" title="Erlang Solutions">Solutions</a>    |    Powered by phpBB and NoseBleed 1.14</div> </td> </tr> </table> </td> </tr> </table> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-235575-2"; _udn = "trapexit.org"; urchinTracker(); </script> </body> </html>