[Zope] PUT_factory -- Script Import Permissions
by Matt Young other posts by this author
Dec 31 2002 1:19AM messages near this date
Re: [Zope] How do I deal with UNpickelableError ?
|
Re: [Zope] PUT_factory -- Script Import Permissions
Hi,
I need to write a PUT_factory so that FTP and WebDAV
uploads create the right type of objects in Zope (by
default everything is mapped to three objects but you can
override this). The PUT_factory needs to be a script so
that I can place it in the affected directory (I want to
override the default for a "file share" directory), and
because I can't write external methods on this account.
Once the factory determines the type of object to be
created, it needs to return an empty object of that type
(for instance, a File or ExtFile). Problem is, a script
can't import the definition of File etc., so I can't invoke
its constructor. DOES ANYONE KNOW HOW I CAN CREATE A File,
ExtFile, ETC. FROM WITHIN A SCRIPT AND RETURN IT (EMPTY) AT
THE END OF THE SCRIPT? Please note that using manage_
functions probably (?) isn't the right way to do this.
Thanks
Matt
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
Zope maillist - Zope@[...].org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )
Thread:
Matt Young
Dieter Maurer
Chris Withers
|