手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

Uliweb 0.1.2 发布,Python 的 Web 框架

[日期:2012-06-13] 来源:Linux社区  作者:Linux [字体:大 中 小]

Uliweb是一个新的Python Web Framework,它之所以会产生是因为现有的框架多少有些令人不满意的地方,而且许多情况下这些不满意的地方或多或少对于Web开发有影响,因此在经 过对不少框架的学习之后,我决定开发一个新的框架,希望可以综合我认为其它框架中尽可能多的优点,同时使这个新的框架尽可能的简单,易于上手和使用。不过 这个框架目前主要还是一个人在做,并且是业余在做,所以在进度上相对要慢一些。

0.1.2 Version
-----------------

#. Fix permission tag, and change PERMISSION definitions in settings.ini, now the
   PERMISSION definition can use dict datatype, just like::
    [PERMISSION]
    PERM = {'name':'PERM', 'roles':['a', 'b'], 'description':'PERM}
   and with this method, you don't need to define ROLES_PERMISSIONS section

#. Add TransactionMiddle as default settings in ORM settings.ini. By default, if
   you add 'uliweb.contrib.orm', the transaction middleware will automatically
   enabled. In the previous version, you should add this middleware yourself.

#. Add app arguments to exportstatic command
#. Remove --with-static option of export command, so default behavior is export
   static folder

#. Fix default file_serving process, add x_filename process, in order to make
   alt filename support processing correctly.

#. Add -m option to find command, so you can use::
    uliweb find -m model_name
   to find the model is defined in which model

#. Add manytomany parameter to Model.delete() function, so it'll automatically
   delete manytomany relationships.

#. Add tables app to uliweb.
#. Add GenericReference and GenericRalation support
#. Add BigIntegerProperty support, the shorthand is Field(BIGINT)
#. Add __pk_type__ variable, current is 'int', others will be 'biginteger',
   you can use set_pk_type(name) to switch it, also add PKTYPE() function, you
   can use Field(PKTYPE()) to create ForeignKey Property according the option,
   in web project, you can swith it via ORM/PK_TYPE

#. Add delete_fieldname parameter to Model.delete(), so if you pass True, it'll
   assume the delete_fieldname is 'deleted', and if you pass real field_name it'll
   use it directly. This way will not delete the record at all, just change the
   delete_fieldname value from False to True.

#. Fix RemoteField default datatype as int and default value is None.
#. Refactor the ReferenceProperty datatype process.
#. Add _class and id parameter to Form, and fix form_class process
#. Refactor template, add BaseBlockNode class, and add end() process for block type node.

Uliweb 的下载地址:请点这里

linux
相关资讯       Uliweb 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款