[Zope-CMF] Where is the file_edit
Sedat Yilmazer
sedat@kibele.com
Tue, 3 Jul 2001 21:23:46 +0300
Hi
Ok I have found the missing link - The skins.. I was grep'ing on python =
files and there was nothing...
But my problem still there since the 'edit' method requires a file =
object with a name attached. xmlrpc does not have a 'file' parameter =
type. Maybe we should introduce a file parameter type
<file>
<name>name</name>
<contentType>contentType</contentType>
<base64>filedata</base64>
</file>.
This way we can use all of the available methodes as they are.
=20
Any suggestions/pointer/products in this direction?
Sedat=20
=20
-----Original Message-----
From: seb@lenin.jamkit.com [mailto:seb@lenin.jamkit.com]On Behalf Of seb
bacon
Sent: Tuesday, July 03, 2001 9:14 PM
To: Sedat Yilmazer
Cc: zope-cmf@zope.org
Subject: Re: [Zope-CMF] Where is the file_edit
* Sedat Yilmazer <sedat@kibele.com> [010703 18:20]:
> =20
> I have created a Windows client to upload office docs to a CMF =
folder. But I am not happy with the implementation and would like to =
switch to xmprpc ( OK I want to plat with it a little bit)
> =20
> Now, I can create the f'ile by calling the invokeFactory, Set the =
metadata via setXxxxx methods but I could not find anything like =
'file_edit' anywhere inn the zope installation. Where is it? how it is =
get called?
If you look in CMFDefault/File.py, you'll see a method called 'edit',
which should tell you all you need to know...
> Note: Does anybody have a sample on creating a doc. in CMF portal?
What do you mean, creating a doc? There's lots of examples of
creating files etc in the CMFDefault skins.
hth
seb