集体舞。集体舞蓝图。由马金娜语料库跨魔管道

collective.blueprint.dancing的Python项目详细描述


collective.blueprint.dancing Installation

  • When you’re reading this you have probably already run ^{tt1}$. Find out how to install setuptools (and EasyInstall) here: http://peak.telecommunity.com/DevCenter/EasyInstall

  • Create a file called ^{tt2}$ in the ^{tt3}$ directory. The file should only contain this:

    <include package="collective.blueprint.dancing" />
    

或者,如果您使用的是zc.buildout和plone.recipe.zope2instance 配方管理您的项目,您可以这样做:

  • Add ^{tt4}$ to the list of eggs to install, e.g.:

    [buildout]
    ...
    eggs =
        ...
        collective.blueprint.dancing
    
  • Tell the plone.recipe.zope2instance recipe to install a ZCML slug:

    [instance]
    recipe = plone.recipe.zope2instance
    ...
    zcml =
        collective.blueprint.dancing
    
  • Re-run buildout, e.g. with:

    $ ./bin/buildout
    

如果要显式地包含包,可以跳过zcml slug 从另一个包的configure.zcml文件。

Requirements

ImportSubscriber section

importsubscriber部分允许您将订阅者添加到集合。 频道。

importsubscriber蓝图名称是 collective.blueprint.dancing.importsubscriber

为了确定订户信息,importsubscriber部分检查 每个项目并查找密钥email、channel id和composer id,如前所述 下面。任何缺少email键的项都将被跳过。

如果缺少键channel-id,importSubscriber部分将查找 选项default-channel-id。此选项默认为default-channel

如果缺少键composer-id,importsubscriber部分将查找 选项default-composer-id。此选项默认为html

对于每个钥匙,相应的信息将在以下各项中找到:

  • _collective.blueprint.dancing.importsubscriber_[sectionname]_[key]
  • _collective.blueprint.dancing.importsubscriber_[key]
  • _[sectionname]_[key]
  • _[key]

其中[sectionname]替换为当前节的名称, 而[key]替换为emailchannel-idcomposer-id。这个 允许您在需要时精确定位正确的部分。

或者,您可以通过 指定“`[key]-key`”选项,该选项应该是要尝试的密钥列表(一个 每行键;使用re:regexp:前缀指定正则 表达式)。

>>> import pprint
>>> importsubscriber = """
... [transmogrifier]
... pipeline =
...     source
...     importsubscriber
...     importsubscriber2
...     printer
...
... [source]
... blueprint = collective.blueprint.dancing.tests.importsubscribersource
...
... [importsubscriber]
... blueprint = collective.blueprint.dancing.importsubscriber
...
... [importsubscriber2]
... blueprint = collective.blueprint.dancing.importsubscriber
... default-channel-id=mychannel
... default-composer-id=mycomposer
...
... [printer]
... blueprint = collective.transmogrifier.sections.tests.pprinter
... """
>>> registerConfig(u'collective.blueprint.dancing.tests.importsubscriber',
...                importsubscriber)
>>> transmogrifier(u'collective.blueprint.dancing.tests.importsubscriber')
[('_email', 'foo@foo.com')]
[('_email', 'bar@bar.com')]
[('_email', 'existing@email.com')]
>>> pprint.pprint(plone.subscribers)
(u'foo@foo.com -channel:default-channel - composer:html',
 u'foo@foo.com -channel:mychannel - composer:mycomposer',
 u'bar@bar.com -channel:default-channel - composer:html',
 u'bar@bar.com -channel:mychannel - composer:mycomposer')

Change History

(括号中列出了开发商的名称)

0.1 - 2009-02-10

  • 添加了importsubscriber部分。请参阅importsubscriber.txt。 [Sylvainb]

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

推荐PyPI第三方库


热门话题
java如何在部署在Tomcat7上的jbpmconsole中添加新用户?   JavaStruts2:我分配了一个参数的值,但在jsp文件中得到了一个空指针错误   检查类是否在同一个包或子包中访问的java ArchUnit规则?   java当您使用spring forward重定向到其他控制器时,如何从ModelAndView返回响应对象?   java jsp/servlet,显示管理员、用户和未登录用户的不同链接   java Eclipse警告消息   java加载多纹理openGL   java有没有一种方法可以通过Hibernate传递一个对象(genaric)并填充任何字段,然后让它返回一个包含所有字段的对象列表?   java如何将git存储url连接到本地存储库,以便每次都获得更新的代码?   java无限循环在程序中无法正常工作   java File writer正在写入没有“换行”的字符串   java为什么Spring或C3p0没有清理C3p0线程?   java通过JDBC从PostgreSQL检索几何数组