plone附加产品,用于以灰度显示内容。

stxnext.grayscale的Python项目详细描述


stxnext.灰度

简介

stxnext.grayscale包是plone的一个附加产品,它提供了显示 网站内容的灰度颜色。

https://github.com/stxnext/stxnext.grayscale/raw/master/docs/stxnext.grayscale.example.png

颜色转换

使用pil库动态转换图像。

用正则表达式转换css和html文档以替换颜色 具有其灰度等效值的定义。

在plone 4(安装了plone.resource包)中,转换后的资源(图像、css文件) 缓存在文件系统中以避免同一资源的多次转换。

安装

扑通声3

一。将stxnext.grayscale添加到plone.recipe.zope2instance部分的鸡蛋中(注意 额外的[zope2.10],它带来了zpublishereventsbackport包以转发 与Zope 2.12/Plone 4兼容:

[instance]
recipe = plone.recipe.zope2instance
...
eggs =
    ...
    stxnext.grayscale [Zope2.10]
  1. 通过portal_quickinstaller安装产品。

扑通一声4

一。将stxnext.grayscale添加到plone.recipe.zope2instance部分的鸡蛋中。 定义资源参数指向现有目录 将存储转换后的资源,以避免 相同的资源:

[instance]
recipe = plone.recipe.zope2instance
...
resources = ${buildout:directory}/var/resources
...
eggs =
    ...
    stxnext.grayscale
  1. 通过portal_quickinstaller安装产品

配置

在stxnext.grayscale工具的控制面板中(//@grayscale\u设置)选择plone皮肤 要转换为灰度颜色。

作者和联系人

  • Radosław Jankiewicz ^{tt2}$
  • Sebastian Kalinowski ^{tt3}$
  • Krzysztof Skarupa ^{tt4}$
http://stxnext.pl/open-source/files/stx-next-logo

stx下一步sp.z o.o.

http://stxnext.pl

info@stxnext.pl

许可证

此软件包是根据zope公共许可证授权的。

更改日志

1.0.0(2012-05-21)

  • 初始版本

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Java:字符串。RTL设备语言用标志“+”格式化,数字后加符号   java GAE作为桌面应用程序(Swing)的服务提供商   java将InputStream转换为FileInputStream不适用于Apache POI   java外部Voronoi库“网格”:什么是草图和处理?   重载重写的泛型方法java   java显示组织上设置的错误。springframework。验证。jsp中的错误对象   java一些Spring模型属性没有显示在我的JSP中   java无法编译Guava 23的SimpleTimeLimiter示例   java如何更改JTree中的“根”目录名?   java如何在安卓中对相对布局产生连锁反应?   java错误:org。冬眠例外SQLGrammarException:无法提取结果集,dateAccessed是未知列   如何使用java监听JSON文件更新   由抽象封闭类创建的匿名内部类能否通过反射确定实现类?