ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> zope-List
zope-List
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved