plone

How to pack blobstorage with Plone and RelStorage

情到浓时终转凉″ 提交于 2021-02-10 05:31:19
问题 I have run zodbpack on my local build and reduced my data.fs and blobstorage significantly (like to <50%). When i run zodbpack on the test server the postgres 'zodb' database packs and comes down in size, but the blobstorage doesnt budge in size. I've tried running it with every combo of blob-dir /mnt/drbd/blobstorage I can think of, but it doesnt budge. Can it be packed? RelStorage = 1.5.1 I'm considering upgarding RelStorage to 1.6.0, not sure if that will help. Update: Now running

On Plone 4.3.15, how to install latest Stripe's API

不问归期 提交于 2021-01-28 06:50:22
问题 On Plone 4.3.15 (Universal installation), it is not possible to install stripe 2.32.1. See logs : Getting distribution for 'stripe==2.32.1'. /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'project_urls' warnings.warn(msg) /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg)

Python高级编程PDF高清完整版免费下载|百度云盘

坚强是说给别人听的谎言 提交于 2020-08-11 15:23:21
百度云盘|Python高级编程PDF高清完整版免费下载 提取码:f85q 内容简介 《Python高级编程》通过大量的实例,介绍了Python语言的最佳实践和敏捷开发方法,并涉及整个软件生命周期的高级主题,诸如持续集成、版本控制系统、包的发行和分发、开发模式、文档编写等。《Python高级编程》首先介绍如何设置最优的开发环境,然后以Python敏捷开发方法为线索,阐述如何将已被验证的面向对象原则应用到设计中。这些内容为开发人员和项目管理人员提供了整个软件工程中的许多高级概念以及专家级的建议,其中有些内容的意义甚至超出了Python语言本身。 《Python高级编程》针对具备一定Python基础并希望通过在项目中应用最佳实践和新的开发技术来提升自己的Python开发人员。 作者简介 Tarek Ziadé,是巴黎Ingeniweb公司的CTO,其工作方向为Python、Zope、Plone技术和质量保证。他参与Zope社区已经有5年了,并且曾经为Zope自身贡献过代码。 Tarek创建了Afpy,这是法国的Python用户组,并且编写了两本法语的Python书籍。他还在诸如Solutions Linux、Pycon、OSCON和EuroPython等法国及国际会议上发表了许多演讲,并且主持了许多课程。 目录 第1章 准备工作 1.1 安装Python 1.1.1 Python实现版本

When I shutdown the Zope server it shows an AttributeError

烈酒焚心 提交于 2020-02-03 10:40:39
问题 I am using Plone 4.3.3 for creating my Plone site but when I shut-down the server it shows the following error. Traceback (most recent call last): File "/Plone/zinstance/parts/instance/bin/interpreter", line 298, in <module> exec(compile(__file__f.read(), __file__, "exec")) File "/Plone/buildout-cache/eggs/Zope2-2.13.22-py2.7.egg/Zope2/Startup/run.py", line 76, in <module> run() File "/Plone/buildout-cache/eggs/Zope2-2.13.22-py2.7.egg/Zope2/Startup/run.py", line 26, in run starter.run() File

Apache Rewrite or proxy

南笙酒味 提交于 2020-02-02 04:22:09
问题 I have an Apache server running on my machine (port 80) I have a Zope server running on my machine (port 8080) i want all users, irrespective of domain (lets use www.example.com for now) to be pushed to the zope instance, seamlessly IE if i type into my browser http://www.example.com/mysite it will display the effects of http://www.example.com:8080/mysite BUT i want the URL to still say http://www.example.com/mysite (sub-)domain should be irrespective, as will have 2 or 3 domains pointing to

Get Fancybox to cooperate with Plone's News Item image

若如初见. 提交于 2020-01-25 03:29:45
问题 I had a problem with Plone and Fancybox not playing nicely on News Items. So, for News Items, the image is uploaded directly with the content item and is stored at http://yoursite.com/the-news-item/image . The image is displayed with a default link to /the-news-item/image_view_fullscreen . I have Fancybox working on most other images fine, but couldn't get the .js to work with this image. My .js call looked like: <script type="text/javascript"> $(document).ready(function() { /* Simple image

Plone restart after buildout fails. How to find the error [duplicate]

点点圈 提交于 2020-01-17 15:08:11
问题 This question already has an answer here : plone change in code not visible in development site (1 answer) Closed 2 years ago . lately I have been trying to customize my Plone by adding helpful addons via the eggs section of my buildout.cfg, running buildout and restarting the zeocluster plonectl restart . I have succesfully installed several addons this way. But some stop Plone from working. For example trying to add plone.app.ldap : buildout works fine and also the restart of the server

Automation tool for Plone edition

你。 提交于 2020-01-15 14:27:24
问题 I am registered to the editor profile a portal written in Plone. I received the task of changing multiple links (over 1000) to their new addresses. Did the following: I saved all the pages that needed correction to a folder (by copy & paste); wrote a C program to find all occurrences of URLs to be replaced; placed in a text file the old URLs and their substitutes URLs (one line below another: old URL, new URL, the old URL, new URL, the old URL, ...); then another program made the appropriate

How can I invert a criterion in a collection?

不问归期 提交于 2020-01-15 07:38:46
问题 Honestly I don't know how this could be done (if it's possible). I'm not seeking for a development solution, i'm seeking for a solution with a plone ootb (or a plugin). For ex. is it possible to add a criterion that excludes all contents with a specific word in the title field from results? or is it possible to add a path criterion that excludes all content in a specific path from results? 回答1: Doing NOT queries is not supported by ZCatalog OOTB but it can be done with AdvancedQuery. There

Bad interaction between Zope2 XML-RPC and AT Image mutator?

▼魔方 西西 提交于 2020-01-15 07:20:42
问题 I am creating a demo for mr.migrator and have run in to an annoying problem, showcased here: # create image proxy = xmlrpclib.ServerProxy(url) # reset data = open('screenshot.png').read() try: proxy.invokeFactory('Image', 'screenshot.png') except xmlrpclib.ProtocolError: print sys.exc_info()[1] except xmlrpclib.Fault: print "The id is invalid - it is already in use." # most likely proxy = xmlrpclib.ServerProxy(url + '/screenshot.png') proxy.setTitle('This is an image') try: proxy.setImage