star2billing项目的常用django/python帮助程序
switch2bill-common的Python项目详细描述
switch2bill common提供一组由star2billing(http://www.star2billing.com)构建的帮助程序 在其开源项目的子集中使用。
你能找到什么?
这个存储库充满了好东西,有些是重新编译的有用片段。
它包含以下主要与django相关的帮助程序:
模型:中级模型库类
过滤器PersistMiddleware
常用功能:
- ^{tt1}$ - Generate unique code
- ^{tt2}$ - Unique password generator
- ^{tt3}$ - Prepare month range list to compare with selected month
- ^{tt4}$ - Prepare day range list to compare with selected day
- ^{tt5}$ - Get date list between two dates
- ^{tt6}$ - Validate no of days in given month and year
- ^{tt7}$ - Get news from news url
- ^{tt8}$ - Decorator for distributed task locking in celery
- ^{tt9}$ - Convert a string date to either a start or end day date
- ^{tt10}$ - Get percentage value
- ^{tt11}$ - Unset settion variable
- ^{tt12}$ - Check field in POST/GET request and return field value. if there is value you can also save a session variable
- ^{tt13}$ - Capitalizes the first character of each word
常用模板标记:
- ^{tt14}$ - Convert value in min:sec or seconds format
- ^{tt15}$ - Convert value in min:sec format
- ^{tt16}$ - Get month name from 1-12 int no
- ^{tt17}$ - Usage: {% sort_link “link text” “field_name” %} or {% sort_link “link text” “field_name” “Visible name” %}
- ^{tt18}$- Make group of fields for field-set
- Usage: {% get_fieldset field1,field2 as list_field from xyz_form %}
- ^{tt19}$ - Returns a list of n lists. Each sub-list is the same length
- ^{tt19}$ - Returns a list of lists where each sub-list has n items.
- ^{tt21}$ - Perform sorting on template list
- ^{tt22}$ - Convert value to interger
- ^{tt23}$ - Capitalizes the first character of each words.
- ^{tt24}$ - get percentage value.
build_test_suite_from:返回一个或一组unittest测试套件
语言字段-字段到语言列表
django管理用户界面的applabelrename类
导出为CSV操作-返回导出CSV的管理员自定义操作
安装
使用源安装
pip install -r requirements.txt python setup.py install
使用pip安装
python install switch2bill-common
许可证
MPL v2.0许可证 版权所有(c)2011-2014 Star2Billing S.L.
此源代码表单受mozilla public条款的约束 执照,2.0版。如果MPL的副本未随此文件分发, 你可以在http://mozilla.org/MPL/2.0/获得一个。
最初的开发人员是arezqui belaid<;info@star2billing.com>;