POSKeyError: ‘No blob file’ using api.content.copy - plone

I'm trying to copy objects from a collection into a folder. Each collection consists of documents, files, and images. When I ran the script, it throws the POSKeyError exception.
Any ideas on how to resolve this?

If the blob file is not available in the file-system, there is no way to fix this, except restore from backup.
With https://pypi.python.org/pypi/experimental.gracefulblobmissing the missing file is ignored.

Related

My file meet Brackets live preview problematic situation, no problematic situation concerning “Getting Started” file, although

I can use live preview when I selected “Getting Started” file,
but I cannot use live preview when I selected the file that I created.
This file is in same tree as “Getting Started”.
I already insert “"livedev.multibrowser" true” into json file which is in the place,
C:\Users\myname\AppData\Roaming\Brackets.
What’s the difference?
Should I set something for my file?
FYI, when I restart Brackets, json file becomes “false” again.
Is this related?
FYI-2,I checked address.(I don’t update this to any public server, still.)
my file
http://127.0.0.1:56616/index.html
Getting Started
http://127.0.0.1:56598/index.html
Have you recently done an update to brackets? If so then they say on their github issues log that it is best to remove the cached files and the appdata files because it has a hard dependency and that should reset the program. This link may helpenter link description here
According to their github account I'd you do a version update the software can bug out and their main fix is deleting the app data but you can leave the preferences. It requires a clean install of brackets for it to function with 1.3 1.4 1.5

How to embedd Word 2007 document in ASP.NEt project

I have a neat class that is able to mergefields within a Word document based on a Datarow object containing the data I require to turn a Word 2007 docx template into a real Word document with the data embedded inside the Word document, and using OpenXML (forget Interop!). That's working for me.
However, I am having a royal pain to get the template loaded into my asp.net (.net2) project in Visual Studio 2005. Everytime I think I've "embedded" the Word document into the project, when I try and access it, I get this exception ...
Value cannot be null.
Parameter name: The Template File does not exists.
This error appears from a resource project (compiled in VS2008) DLL file that checks the existance of the file before it continues. I know that's the cause of the problem but why Fileinfo.Exists is always false, when I know the file is there!? The file is in the same server as the project resides, but in a different location to the project.
So the question really should say, why Fileinfo.Exists returns false all the time.
Never the less, I need to store this Word document inside the project itself, so my other need is to know how to embedd a Word document inside my asp.net project to keep it "contained" within the same one solution AND to get Fileinfo to recognise it DOES exist.
Thank you
I found it!
It was simply adding the file to my existing project using Add Existing ...
I then placed the file inside a folder within my project (any folder) and simply referencing it with ...
System.IO.File.Exists(Server.MapPath("FeedbackFormTemplate.docx"));
This generates a full path and filename with extension ready to be used elsewhere in the project.

Upload Image file using Symfony2 without guessers?

I am using Symfony2 framework for one of my project. In this one, I want to upload an image. This is really easy to do so while following the Symfony2's cookbook. It works very well on my local machine. But when I put the whole application on my remote server (Planethoster.net shared hosting), it doesn't work because of the Type-Mime extension guessers. In fact, they are not enable on their servers... (phpinfo shows --disable-fileinfo)
So, basically the idea is to know if there is a solution to do the same action (uploading an image) without any extension guessers?
Thanks
What do you think of filtering the filename ? With the last three characters, you'll know the extension. Check out UploadedFile, there is a getClientOriginalName() method. What I would do is to explode it by the ., fetch the second entry of the resulting array, and then parse it to do what you want to do.
Would you like an example of code ?
To fix exception while uploading file using framework Symfony 2
Unable to guess the mime type as no guessers are available.
enable PHP extension php_fileinfo, to do this find your php.ini file and uncomment following line
; windows
extension=php_fileinfo.dll
or
; linux
extension=php_fileinfo.so

app.config in other directory

A web service client (WCF) is compiled as a DLL, then comes the dll into the folder "c:\windows\assembly" ... just like I can now say that my DLL in C:\client\client.dll.config is expected?
It would perhaps also the possibility that the program store directly, the problem is that it starts from a SharePoint workflow that is surely not quite that simple.
It may sound silly, but the problem sounds so simple ... Unfortunately I have found so far after a while no concrete solution to Find.
EDIT:
No idea? It is the despair, I am running out of time and I have so much work to implement all this, and such a ridiculous number of hours to keep me?
I've found a lot in terms of editing files, but I will not change it I will change only the access to another directory where the file is ...
In the proxy classes, we refer only so eager ...
[System.ServiceModel.ServiceContractAttribute
(Name = "_-ASD_-CAS01D0005P0000013203",
Namespace = "urn:sap-com:document:sap:soap:functions:mc-style",
ConfigurationName = "_ASD_CAS01D0005P000001320")
]
There must theoretically be possible to simply change the ...
I'm just trying to throw it somewhere in the folder of SharePoint, there is the program being started. The file is from "C:\Windows\system32\inetsrv" started, but on this directory, the dll probably does not have access, because I still get the same error as if there was no config file there.
The file is from "C:\Windows\system32\inetsrv" started, but on this directory, the dll probably does not have access, because I still get the same error as if there was no config file there.
Finally solved by
AppDomain.CurrentDomain.GetData ("APP_CONFIG_FILE");
I can not find it an addictive client.dll.config, but instead the web.config in SharePoint virtual directory "c:\inetpub\wwwroot\wss\Virtual Directories\80\" searches. I added the information there and it works fine!

How to write a webscript in Alfresco that returns a zip file

I need to write a webscript in alfresco that returns to the user a single zip file that contains several files, some of them created on the fly by the script and some of them stored on the server.
How can i do it?I know how to create different files on the server, i don't know how to zip them and how to include files that are stored on the server.
Well, you can develop a Java action that would do the zipping part.
Last time I was looking into this, I didn't find an out-of-the-box solution.
As for returning, you can specify that by specifying webscript format, ie:
<format default="html">any</format>
Only, there is a problem, you can't set a zip format, but alfresco wiki says how you can add more:
http://wiki.alfresco.com/wiki/3.0_Web_Scripts_Framework#HTTP_Response_Formats
Edit: I just found this thread (while looking for a solution for another problem). In the thread a custom "unzip" action is described, maybe you can use that to add a zip/unzip action in your alfresco installation and use it.

Resources