推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
bradlee
V2EX  ›  Python

请问下python有没有类似于asp.net实现控件的那种开源项目?

  •  
  •   bradlee · Sep 10, 2013 · 5243 views
    This topic created in 4802 days ago, the information mentioned may be changed or developed.
    个人只知道django-table2,实现了服务器端自定义的table,不知道有没有对整个html标签抽象的服务器端开源项目?
    13 replies  •  1970-01-01 08:00:00 +08:00
    judasnow
    judasnow
    Sep 10, 2013
    1
    为啥要用尝试用 web form 这么奇葩的东西呢?有特殊需求吗?
    GreenHand
    GreenHand
    Sep 11, 2013
    2
    拖来拖去拖习惯了吧
    judasnow
    judasnow
    Sep 11, 2013
    4
    这项目名字起得真贴切. :-)
    bradlee
    bradlee
    OP
    Sep 11, 2013
    5
    @lixm 谢谢 看名字只是form?
    @judasnow 同事意思是这样开发起来速度快 :(
    alswl
    alswl
    Sep 11, 2013
    6
    好可怕的想法,Web Form 的产生本身是有历史背景的,沿用 WinForm 的设计理念,实现控件的自定义,生成一堆烂代码。

    看似方便,其实对开发者隐蔽了具体实现,对后期开发、维护造成很大的困扰。

    上文提到的 WTForms 是设计用来进行表单验证,甚至没有提供一套完整的 html generator 和 error message 体系。如果想方便,可以考虑使用 Django 的 Form 系统,有相对完整的代码生成(也几乎不可用于生产环境)。

    想拖拖拽拽就完成页面开发?请选择 ASP.net 2.0,Python 不是你的菜。
    Jex
    Jex
    Sep 12, 2013
    7
    超抽象的你看这个:
    http://lubanui.org/current/

    完全用Python代码写UI
    Jex
    Jex
    Sep 12, 2013❤️1
    8
    其实我不推荐使用 lubanui。
    bradlee
    bradlee
    OP
    Sep 12, 2013
    9
    @jex 谢谢!不推荐的原因是?
    loading
    loading
    Sep 12, 2013 via iPhone
    10
    感觉asp.net控件一眼就觉得低端。顺道问下asp.net不用控件好写么?
    Jex
    Jex
    Sep 12, 2013
    11
    @bradlee 不要偷懒想不写JS,不然你会死得很惨的。
    类似的讨论这里有一个:<http://ruby-china.org/topics/13543#reply54>
    judasnow
    judasnow
    Sep 12, 2013
    12
    @loading asp.net 也有 mvc 的。
    gaicitadie
    gaicitadie
    Sep 12, 2013
    13
    现在 asp.net 也放弃拖控件了。4.0借鉴了很多rails经验
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2959 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 12:47 · PVG 20:47 · LAX 04:47 · JFK 07:47
    ♥ Do have faith in what you're doing.