[Zope-dev] invokeFactory problem

2003-08-01 Thread Declan Shanaghy
I have a portal_type called ClientBill. I can create it by using the folder_factories script no problem. I want to create one in the users home folder programatically, when they register in the portal. I have been able to do stuff like this before no problem so i copied and pasted the (other

[Zope-dev] ZCVSMixin Import Error

2003-08-14 Thread Declan Shanaghy
Has anyone ever got an error similar to the one below when trying to import files thru ZCVSMixin (AFTER they were exported from same application) The file was not modified in any way but it refuses to re-import after being exported. Failed Imports

[Zope-dev] why cant i import types

2003-08-14 Thread Declan Shanaghy
Can someone tell me why i cant import types into my python script in CMF? When i put either of the following lines as the first line of my script i get the error that follows from types import * - produces Error Type: ImportError Error Value: from types import * is not allowed from types import

Re: [Zope-dev] FileUpload questions

2003-08-14 Thread Declan Shanaghy
Its handy enough to implement. lets say your file parameter is called 'file'... #os_uploadCacheImage is a Zope External method. if request.has_key('file'): context.os_uploadCacheImage(context.PATH_CACHE, request['file'], request['file'].filename) #co-responding implementation for zope