[Zope] PUT_factory -- Script Import Permissions
Chris Withers
chrisw@nipltd.com
Tue, 31 Dec 2002 10:37:04 +0000
You need to use an External Method, not a script.
Chris
Matt Young wrote:
> 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@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 )
>
>