English 中文(简体)
检查档案是否有有效载荷的成本低
原标题:Low cost way to check whether Archetypes File has payload (BLOB)

是否有办法迅速检查档案场是否载有有效载荷,而实际上没有将档案内容装上记忆?

我对档案进行遥感,把档案整理成档案类内容,如果档案已经存在,我就想避免yn。 我有可能通过数百份档案进行播音,因此,我想避免Plone的情况,即每个档案都只读到零件或某些其他数据。

Plone 4.1.

问题回答

On ATFiles there s a size() method to check the file size. It seems that the size isn t stored anywhere, so maybe a adding a column on the catalog will work for you.





相关问题
How to go from uml to app in zope (plone)

I have watched this keynote that talk about develop an app based on an UML model, but I can t find any tutorial or docs about it. Do you know any tutorial or documentation to help me? thanks

Install Plone egg as a Python module on Windows

I have a Plone site (Plone version 3.1.2) that I need to install a product called GrufSpaces on - (http://plone.org/products/grufspaces). However, it is a production site and so I can t easily take it ...

Plone with Apache Proxy

I have a plone zinstance set up through Apache Proxy on OS X Server 10.5. The server is set up with a single vhost on port 80, with Proxy & Proxypass directives to the Plone zinstance: ...

Zope / Plone 3 product uninstsall issue

Hey all, I uninstalled a content type that I d previously added and afterward I m still getting a warning of 2010-01-06 22:43:50 WARNING OFS.Uninstalled Could not import class myclass from module ...

plone.app.blob or z3c.blobfile?

I need a blob file field as part of a content type in plone. plone.app.blob s BlobField should provide this, but I can t find how to get a URL to download the file including the original filename (e.g....

Moving (very old) Zope/Plone Site to Django

I am ask to move data from a (now offline) site driven by Plone to a new Django site. These are the version informations I have: Zope Version (unreleased version, python 2.1.3 ) Python Version 2.1....

热门标签