Comments (2)
Hi,
I recently ran into this as well. The file is removed, because the ZODB
Blob implementation detects, that the file exists on the same file system,
and moves it.
It is a bit of a surprising behaviour, but I am not sure whether this
should be fixed in The NamedFile field or in documentation.
On 04/09/2013, at 2:07 AM, "Jens W. Klein" [email protected] wrote:
I have really no good idea why this happens. But I refactored the tests so
plone.namedfile.file.NamedBlobFile gets an open file to consume the data
from. The tests are working, except that the file is deleted after
NamedFile read from a file thats opened in mode 'r' for read. So running
the test a second time will fail. Therefore I added a check at the very end
of the test to check if the file exists.
I would be happy if someone with deeper insight on plone.namedfile looks at
it, so this is really odd behavior. I fear its only a side effect and the
real bug is somehwere else and not in p.a.c - but since it starts here I
report here.
I added the scenario to the tests - including a comment - here.
—
Reply to this email directly or view it on
GitHubhttps://github.com//issues/57
.
from plone.app.contenttypes.
Ok, thats really surprising. At least some documentation is needed, not here but in plone.namedfile api docs.
So the test should create a tempfile to be consumed. OTOH, if we drop this test, the other two cases should cover the indexing case anyway.
from plone.app.contenttypes.
Related Issues (20)
- Remove AT & Migration parts HOT 1
- Simplify view registration HOT 1
- Typo in test_content_profile
- Add removed BBB views in the upgrade guide HOT 2
- a real newsitem_view?
- Link redirect is wrong when the site is not on the host root (eg /thesite) or when using VHM with the _vh_ virtualpath HOT 1
- Wrong url to author in tabular listing HOT 1
- Traceback on Summary view when thumbs are suppressed HOT 1
- Listing events in a collection will raise AttributeError: location
- Wrong file size displayed in file.pt HOT 1
- tabular listing column titles doesn't get translated completely
- 3.0.0 alpha and beta releases omitted recent stable releases HOT 4
- Create "News Item" causes error (object has no attribute 'text') HOT 5
- Add lazy loading of images on listing HOT 3
- Redundant plone.app.event HOT 2
- List field with `default=[]` HOT 2
- Broken internal links HOT 1
- Factor out robotframework test dependency HOT 4
- Folder listing template breaks when `IEvent` types do not have enabled `plone.eventlocation` behavior
- Allow the file view to operate on a context that has no a `file` attribute set
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plone.app.contenttypes.