tgext.ajaxforms.

´Â Turbogears2¿¡¼­ Ajax ¾ç½ÄÀ» ½±°Ô ¸¸µé ¼ö ÀÖ½À´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

tgext.ajaxforms. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • MIT/X Consortium Lic...
  • °Ô½ÃÀÚ À̸§:
  • Alessandro Molina
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://www.objectblues.net/wiki/show/FlatLand

tgext.ajaxforms. ű×


tgext.ajaxforms. ¼³¸í

Turbogears2¿¡¼­ Ajax ¾ç½ÄÀ» ½±°Ô ÀÛ¼ºÇÒ ¼ö ÀÖ½À´Ï´Ù tgext.ajaxforms´Â Turbogears2 ÀÀ¿ë ÇÁ·Î±×·¥¿¡¼­ Ajax·Îµå ¹× Á¦Ãâ µÈ ¾ç½ÄÀ» ºü¸£°í ½±°Ô ¸¸µé ¼öÀÖ´Â ÆÄÀ̽㠸ðµâÀÔ´Ï´Ù. ¾ç½Ä Ajax ±â¹ÝÀÇ Ajaxforms.ajaxLoaded Decorator¸¦ ToscAwidgets ¾ç½Ä¿¡ Àû¿ëÇÏ°í AjaxURL º¯¼ö¸¦ ¼±¾ðÇÏ¿© ¸Þ¼­µå¸¦ ÁöÁ¤ÇÏ´Â ¹æ¹ýÀ» ÁöÁ¤ÇϽʽÿÀ. ¾ç½ÄÀ»·ÎµåÇÕ´Ï´Ù. ÀÌ ¹æ¹ýÀº ÀÚµ¿À¸·Î »ý¼ºµÇ°Å³ª ¼ÕÀ¸·Î ¾²¿©Áú ¼ö ÀÖ½À´Ï´Ù. ±âº»ÀûÀ¸·Î AJAX À¯È¿¼º °Ë»ç°¡ ÀÚµ¿À¸·Î Áö¿øµË´Ï´Ù. installingtgext.ajaxformÀº pypi ¶Ç´Â bitbucket¿¡¼­ ¸ðµÎ ¼³Ä¡ÇÒ ¼ö ÀÖ½À´Ï´Ù. easy_install tgext.ajaxformsshould´Â Ajax formake Æû ÀÚü°¡ Toscawidgets Çü½Ä ÀÏ ¼öÀÖ´Â ´ëºÎºÐÀÇ »ç¿ëÀÚ¸¦ À§ÇØ ÀÛ¾÷ ÇÒ ¼ö ÀÖ½À´Ï´Ù. @ajaxloaded decorator of form ÀÚü¿Í °ü·Ã ÄÁÆ®·Ñ·¯ ¸Þ¼­µå¸¦ °¡¸®Å³ ¼öÀÖ´Â ¾ç½ÄÀÇ AjaxURLÀ» ÁöÁ¤ÇÕ´Ï´Ù. tgext.ajaxforms °¡Á® ¿À±â ajaxloaded @ ajaxloadedclass testForm (twf.tableform) : Ŭ·¡½º Çʵå (widgetslist) : name = twf.textfield ( 'name', validator = validators.string (not_empty = true)) surname = twf.textfield ( 'surname', validator validators.string (not_empty = true)) ajaxurl = '/ form_show'action = '/ form_submit'submit_text = "GO"TEST_FORM = TESTFORM () ¾ç½ÄÀ» º¸¿©ÁÖ´Â ¾ç½ÄÀ» º¸¿©ÁÖ´Â ¾ç½ÄÀ» º¸¿©ÁÖ´Â °ÍÀº ¾ç½Ä ÀÚü¸¦ Ç¥½Ã ÇÒ ¾ç½ÄÀÇ AJAXURL ¸Å°³ º¯¼ö¿¡ ¹ÙÀεù µÈ ÄÁÆ®·Ñ·¯ ¸Þ¼Òµå¸¦ Ãß°¡ÇÏ°í ¸Å¹ø AJAXForm¿¡¼­ »ç¿ëÇÒ ¶§¸¶´Ù AJAXFORM¿¡ ÀÇÇØ »ç¿ëµÉ ÇÊ¿ä°¡ÀÖ´Â ¾ç½ÄÀ» º¸¿©ÁÝ´Ï´Ù. µð½ºÇ÷¹ÀÌ T. ±×´Â Çü¼ºÇÕ´Ï´Ù. ´ëºÎºÐÀÇ °æ¿ìÀÌ ¹æ¹ýÀº AjaxForm È£ÃâÀ» »ç¿ëÇÏ¿© »ý¼º ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¶ÇÇÑ ¾ç½ÄÀÌ·Îµå µÉ ÆäÀÌÁö¸¦ ¸¸µé¾î¾ßÇÕ´Ï´Ù. ¿¹¸¦ µé¾î, jaxurl = '/ form_show'¸¦ °¡Áø À妽º ÆäÀÌÁö¿¡¼­ ¾ç½ÄÀ» Ç¥½ÃÇÏ´Â °Í : tgext.ajaxforms¿¡¼­ ajaxformclass rootController (BaseController) °¡Á® ¿À±â : form_show = ajaxform (test_form) @ ³ëÃâ ( 'myApp.templates.Index') DEF À妽º (self) : Dict (form = test_form) return dict (form = test_form) myApp.templates.Index ÅÛÇø´Àº toscawidgets ±â¹Ý ¾ç½ÄÀ» Ç¥½ÃÇÏ´Â µ¥ »ç¿ëÇÒ ÀϹÝÀûÀÎ ÅÛÇø´À»º¸¾Æ¾ßÇÕ´Ï´Ù. Ajax ¾ç½Ä Å×½ºÆ® ¿¹Á¦ <title/> <head/> <body> <div id = "myform"> $ {Æû (name = 'hi')} <div/> <body/> <html/> Ãë±Þ Á¦Ãâ ¹× À¯È¿¼º °Ë»ç ¹× À¯È¿¼º °Ë»ç´Â Ajaurl ¹ÙÀÎµå ¸Þ¼Òµå¸¦ Error_ha·Î »ç¿ëÇϱ⠸¸ÇϸéµË´Ï´Ù. NDLER : Class RootController (BaseController) : @expose () @validate (test_form, error_handler = form_show) DEF FORM_SUBMIT (Self, ** Kw) : '°¨»çÇÕ´Ï´Ù : {name} {Surname}'. Çü½Ä (** kW) examplemyApp.templates.Index : <html xmlns = "http:wwww3org1999xhtml"xmlns : py = "http:genshiedgewallorg"xmlns : xi = "http : wwww3org2001xinclude "/> <xi : href ="masterhtml "/> <head> <meta content ="text html; charset = utf-8 "http-equiv ="content-type "py : replace =" '' "/> <title> Ajax ¾ç½Ä ¿¹Á¦ <title/> <head/> <body> <div id ="myform "> $ {Æû (name = 'hi')} <div/> <body/> <html/> myApp.controllers.root :¿¡¼­ tgext.ajaxforms °¡Á® ¿À±â ajaxloaded, ajaxform @ ajaxloadedclass testform (twf.tableForm) : Ŭ·¡½º Çʵå ( widgetslist) : name = twf.textfield ( 'name', validator validators.string (not_empty = true)) surname = twf.textfield ( 'surname', validator validators.string (not_empty = true)) ajaxurl = '/ form_show 'action ='/ form_submit 'submit_text = "go"test_text = testform (baseController) : form_show = ajaxform (test_form) @expose ('myApp.templates.index ') def »öÀÎ (self) : return dict (Æû = test_form) @ expose () @Validate (test_form, error_handler = form_show) def form_submit (self, ** kw) : '°¨»çÇÕ´Ï´Ù : {name} {surname}'. Çü½Ä (** kw) ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽ã </p> <div class="clearfix"></div> <br/> <p class="c-title fl"><span> tgext.ajaxforms. °ü·Ã ¼ÒÇÁÆ®¿þ¾î</span></p> <div class="clearfix"></div> </div> <div class="clearfix"></div> <div class="new-post"> <article class="app-list sb clearfix"> <figure class="figure fl"> <a class="thumbnail" href="/Linux/download-Lava-dev-Tool.-10061039.htm"> <img class="img-cover br" src="https://icon.softwaresea.com/48x48/7/499/1749033.7629f65ebe77a5c1f68dc4e2a490f1d5.gif"/> </a> </figure> <div class="content fl"> <h2 class="title ellipsis"><a href="/Linux/download-Lava-dev-Tool.-10061039.htm"> Lava-dev-Tool. </a></h2> <p class="intro ellipsis"> LAVA °³¹ß µµ±¸´Â º¹ÀâÇÑ ÆÄÀ̽ã ÇÁ·ÎÁ§Æ®¿¡ ÁßÁ¡À» µÐ ÀçÇö °¡´ÉÇÑ ºô´õ ¹× ¸±¸®½º µµ¿ì¹ÌÀÔ´Ï´Ù. ...</p> <p class="data clearfix"> <time class="time fl"> <i class="fa fa-calendar"></i>N/A</time> <span class="view fl hidden-sm-md-lg"><i class="fa fa-download"></i>199</span> <span class="view"><i class="fa fa-save"></i></span> </p> </div> <p class="btn fr"><a rel="nofollow" class="download transition br" href="/Linux/download-Lava-dev-Tool.-10061039.htm"><i class="fa fa-download"></i> ´Ù¿î·Îµå</a></p> </article> <article class="app-list sb clearfix"> <figure class="figure fl"> <a class="thumbnail" href="/Linux/download-xstatic.-10061040.htm"> <img class="img-cover br" src="https://icon.softwaresea.com/48x48/7/499/1749035.d1e506372f2901d155b587b9256eea76.gif"/> </a> </figure> <div class="content fl"> <h2 class="title ellipsis"><a href="/Linux/download-xstatic.-10061040.htm"> xstatic. </a></h2> <p class="intro ellipsis"> ÃÖ¼ÒÇÑÀÇ Áö¿ø Äڵ尡ÀÖ´Â XStatic ±âº» ÆÐÅ°Áö ...</p> <p class="data clearfix"> <time class="time fl"> <i class="fa fa-calendar"></i>N/A</time> <span class="view fl hidden-sm-md-lg"><i class="fa fa-download"></i>145</span> <span class="view"><i class="fa fa-save"></i></span> </p> </div> <p class="btn fr"><a rel="nofollow" class="download transition br" href="/Linux/download-xstatic.-10061040.htm"><i class="fa fa-download"></i> ´Ù¿î·Îµå</a></p> </article> <article class="app-list sb clearfix"> <figure class="figure fl"> <a class="thumbnail" href="/Linux/download-bayes-on-redis.-10061041.htm"> <img class="img-cover br" src="https://icon.softwaresea.com/48x48/7/499/1749036.d7e1613751a3d77a0b442464ede36ea7.gif"/> </a> </figure> <div class="content fl"> <h2 class="title ellipsis"><a href="/Linux/download-bayes-on-redis.-10061041.htm"> bayes_on_redis. </a></h2> <p class="intro ellipsis"> ·¹µð ½º »ó´ÜÀÇ º£ÀÌ ³×ÀÌ¾î ºÐ·ù±â ...</p> <p class="data clearfix"> <time class="time fl"> <i class="fa fa-calendar"></i>N/A</time> <span class="view fl hidden-sm-md-lg"><i class="fa fa-download"></i>134</span> <span class="view"><i class="fa fa-save"></i></span> </p> </div> <p class="btn fr"><a rel="nofollow" class="download transition br" href="/Linux/download-bayes-on-redis.-10061041.htm"><i class="fa fa-download"></i> ´Ù¿î·Îµå</a></p> </article> <article class="app-list sb clearfix"> <figure class="figure fl"> <a class="thumbnail" href="/Linux/download-sprintkit.-10061042.htm"> <img class="img-cover br" src="https://icon.softwaresea.com/48x48/7/499/1749037.d7e1613751a3d77a0b442464ede36ea7.gif"/> </a> </figure> <div class="content fl"> <h2 class="title ellipsis"><a href="/Linux/download-sprintkit.-10061042.htm"> sprintkit. </a></h2> <p class="intro ellipsis"> PythonÀ» ÅëÇØ ½ºÇÁ¸°Æ®ÀÇ ³×Æ®¿öÅ© API ¾×¼¼½º ...</p> <p class="data clearfix"> <time class="time fl"> <i class="fa fa-calendar"></i>N/A</time> <span class="view fl hidden-sm-md-lg"><i class="fa fa-download"></i>147</span> <span class="view"><i class="fa fa-save"></i></span> </p> </div> <p class="btn fr"><a rel="nofollow" class="download transition br" href="/Linux/download-sprintkit.-10061042.htm"><i class="fa fa-download"></i> ´Ù¿î·Îµå</a></p> </article> <article class="app-list sb clearfix"> <figure class="figure fl"> <a class="thumbnail" href="/Linux/download-Pydocu.-10061043.htm"> <img class="img-cover br" src="https://icon.softwaresea.com/48x48/7/499/1749038.c03ffb9d5441d091c43e2f2a9a10de20.gif"/> </a> </figure> <div class="content fl"> <h2 class="title ellipsis"><a href="/Linux/download-Pydocu.-10061043.htm"> Pydocu. </a></h2> <p class="intro ellipsis"> ¸Å¿ì À¯¿¬ÇÏ°í ¸Å¿ì ºü¸£°Ô °¡º­¿î ¹®¼­ ½Ã½ºÅÛÀÔ´Ï´Ù! ...</p> <p class="data clearfix"> <time class="time fl"> <i class="fa fa-calendar"></i>N/A</time> <span class="view fl hidden-sm-md-lg"><i class="fa fa-download"></i>167</span> <span class="view"><i class="fa fa-save"></i></span> </p> </div> <p class="btn fr"><a rel="nofollow" class="download transition br" href="/Linux/download-Pydocu.-10061043.htm"><i class="fa fa-download"></i> ´Ù¿î·Îµå</a></p> </article> </div> </section> <aside id="sidebar" class="hidden-sm-md-lg fr"> <div class="theiaStickySidebar"> <section id="aside_qr" class="widget widget_aside_qr sb br mb"> <div class="widget-content aside_qr"> <p class="c-title mb10"><span>±¤°í</span></p> <div> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1875324564741199" crossorigin="anonymous"></script> <!-- new-250*250 --> <ins class="adsbygoogle" style="display:inline-block;width:250px;height:250px" data-ad-client="ca-pub-1875324564741199" data-ad-slot="9242900742"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> </section> <section id="aside_hot_comment" class="widget widget_aside_hot_comment sb br mb"> <p class="c-title mb10"><span class="name">°ü·Ã ¼ÒÇÁÆ®¿þ¾î</span></p> <ul class="widget-content aside_hot_comment"> <li class="list clearfix"> <a href="/Linux/download-%C1%F6%B9%AE-10061044.htm"> <span class="img-wrap fl"><img class="img-cover br lazyload" src="https://icon.softwaresea.com/48x48/7/409/1704308.7e72f7005716e77cdaa81e1ae02af4fb.gif"></span> <div class="new-text"> <p class="title ellipsis"> Áö¹® </p> <div class="info"> <font color="888888"><i class="fa fa-download"></i> 269</font> </div> </div> </a> </li> <li class="list clearfix"> <a href="/Linux/download-asv-txt.-10061045.htm"> <span class="img-wrap fl"><img class="img-cover br lazyload" src="https://icon.softwaresea.com/48x48/7/499/1749040.146c8eb4f4286304881a6620d27eb2e0.gif"></span> <div class="new-text"> <p class="title ellipsis"> asv_txt. </p> <div class="info"> <font color="888888"><i class="fa fa-download"></i> 127</font> </div> </div> </a> </li> <li class="list clearfix"> <a href="/Linux/download-Lucene-QueryBuilder.-10061046.htm"> <span class="img-wrap fl"><img class="img-cover br lazyload" src="https://icon.softwaresea.com/48x48/7/499/1749041.8aea2a977424d5541062e78544d48b8c.gif"></span> <div class="new-text"> <p class="title ellipsis"> Lucene QueryBuilder. </p> <div class="info"> <font color="888888"><i class="fa fa-download"></i> 197</font> </div> </div> </a> </li> <li class="list clearfix"> <a href="/Linux/download-%C7%D5%B9%FD%C0%FB-%C0%CE-%B0%CD-10061047.htm"> <span class="img-wrap fl"><img class="img-cover br lazyload" src="https://icon.softwaresea.com/48x48/7/499/1749042.4750f9a74a6fe0b6ce8cff5f0acec745.gif"></span> <div class="new-text"> <p class="title ellipsis"> ÇÕ¹ýÀû ÀÎ °Í </p> <div class="info"> <font color="888888"><i class="fa fa-download"></i> 244</font> </div> </div> </a> </li> <li class="list clearfix"> <a href="/Linux/download-json-rest.-10061048.htm"> <span class="img-wrap fl"><img class="img-cover br lazyload" src="https://icon.softwaresea.com/48x48/7/499/1749043.f9f0abaac242c333227f11200d93fa17.gif"></span> <div class="new-text"> <p class="title ellipsis"> json_rest. </p> <div class="info"> <font color="888888"><i class="fa fa-download"></i> 139</font> </div> </div> </a> </li> <li class="list clearfix"> <a href="/Linux/download-%BB%E7%C4%AB%B3%AA-10061049.htm"> <span class="img-wrap fl"><img class="img-cover br lazyload" src="https://icon.softwaresea.com/48x48/7/499/1749044.f4f35121387f695830444814c309a33d.gif"></span> <div class="new-text"> <p class="title ellipsis"> »çÄ«³ª </p> <div class="info"> <font color="888888"><i class="fa fa-download"></i> 165</font> </div> </div> </a> </li> <li class="list clearfix"> <a href="/Linux/download-xtraceback.-10061050.htm"> <span class="img-wrap fl"><img class="img-cover br lazyload" src="https://icon.softwaresea.com/48x48/7/499/1749045.9b70acfb7fad87abbc712b8594a7e863.gif"></span> <div class="new-text"> <p class="title ellipsis"> xtraceback. </p> <div class="info"> <font color="888888"><i class="fa fa-download"></i> 136</font> </div> </div> </a> </li> <li class="list clearfix"> <a href="/Linux/download-armstrong.utils.backends.-10061051.htm"> <span class="img-wrap fl"><img class="img-cover br lazyload" src="https://icon.softwaresea.com/48x48/7/499/1749046.70d5be923c34dfe446705d982b2bfe8d.gif"></span> <div class="new-text"> <p class="title ellipsis"> armstrong.utils.backends. </p> <div class="info"> <font color="888888"><i class="fa fa-download"></i> 121</font> </div> </div> </a> </li> <li class="list clearfix"> <a href="/Linux/download-armstrong.dev.-10061052.htm"> <span class="img-wrap fl"><img class="img-cover br lazyload" src="https://icon.softwaresea.com/48x48/7/499/1749047.ecc1cf21ce97605cbed35deef71f3c6f.gif"></span> <div class="new-text"> <p class="title ellipsis"> armstrong.dev. </p> <div class="info"> <font color="888888"><i class="fa fa-download"></i> 158</font> </div> </div> </a> </li> <li class="list clearfix"> <a href="/Linux/download-asv-seo.-10061053.htm"> <span class="img-wrap fl"><img class="img-cover br lazyload" src="https://icon.softwaresea.com/48x48/7/499/1749048.ecc1cf21ce97605cbed35deef71f3c6f.gif"></span> <div class="new-text"> <p class="title ellipsis"> asv_seo. </p> <div class="info"> <font color="888888"><i class="fa fa-download"></i> 138</font> </div> </div> </a> </li> <li class="list clearfix"> <a href="/Linux/download-tiddlywebplugins.remotebag.-10061054.htm"> <span class="img-wrap fl"><img class="img-cover br lazyload" src="https://icon.softwaresea.com/48x48/7/499/1749049.7d4b3acfd0c9b340d59f52ff210ab7ff.gif"></span> <div class="new-text"> <p class="title ellipsis"> tiddlywebplugins.remotebag. </p> <div class="info"> <font color="888888"><i class="fa fa-download"></i> 135</font> </div> </div> </a> </li> </ul> </section> </div> </aside> </div> </div> <div class="flink sb br mb"> <p class="c-title">ȸ»ç ¼Ò°³</p> <ul id="flink" class="f-list clearfix"> softwaresea.comÀº ÄÄÇ»ÅÍ ¼ÒÇÁÆ®¿þ¾î, »ç°ú ÀÀ¿ë ÇÁ·Î±×·¥, Android ÀÀ¿ë ÇÁ·Î±×·¥ ¹× ±âŸ ¹«·á ÄÄÇ»ÅÍ ¸ð¹ÙÀÏ ¼ÒÇÁÆ®¿þ¾î ´Ù¿î·Îµå¸¦ Æ÷ÇÔÇÏ¿© ±¹³»¿Ü ÃֽŠģȯ°æ ¹«·á ¼ÒÇÁÆ®¿þ¾î ´Ù¿î·Îµå ¼¾Å͸¦ Á¦°øÇÕ´Ï´Ù. ģȯ°æ ¹«·á ¼ÒÇÁÆ®¿þ¾î¿¡ ´ëÇØ ÀÚ¼¼È÷ ¾Ë¾Æº¸·Á¸é softwaresea.com¿¡¼­ ´Ù¿î·ÎµåÇϽʽÿÀ! </ul> </div> <footer class="footer"> <div class="main container"> <div class="f-about"> <p> 2009 softwaresea.com All rights reserved. <a href="/privacy.html" rel="nofollow">°³ÀÎ Á¤º¸ Á¤Ã¥</a> | <a href="mailto:softwareseasite@gmail.com">¿ì¸®¿Í ÇÔ²² È«º¸ÇÏ´Ù</a> | <a rel="nofollow" href="https://www.softwaresea.com/submit_software.php?soft_type=lc">¼ÒÇÁÆ®¿þ¾î Á¦Ãâ</a> </p> </div> </div> <div id="toolbar" class="toolbar"> <div id="totop" class="btn hidden br transition"><i class="fa fa-arrow-up"></i></div> </div> </footer> <div id="mask-hidden" class="mask-hidden transition"></div> <script src="/images/common.js"></script> <script src="/images/headroom.min.js"></script> <script type="text/javascript"> $(document).ready(function(e) { $(".table_card .tab li").click(function() { $(".table_card .tab li").eq($(this).index()).addClass("active").siblings().removeClass("active"); $(".table_card .tabCon ul").hide().eq($(this).index()).show(); }) }); </script> </body> </html>