[Zope] Q: Product adding Properties and Objects

Andrew Kenneth Milton akm@theinternet.com.au
Thu, 4 Oct 2001 10:50:14 +1000


+-------[ complaw@hal-pc.org ]----------------------
| Is there any special syntax for a Zope Product (not a ZClass) to add, say, a
| File object?
| 
| context.manage_addFile(id=file_id, file=file, title=title,
| content_type='application/msword')
| 
| ..doesn't work.  Zope complained about "context".

s/context/self/

assuming you can acquire a manage_addFile method. You might have to import
it and put it into your product so you've got one.

-- 
Totally Holistic Enterprises Internet|                      | Andrew Milton
The Internet (Aust) Pty Ltd          |                      |
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068    |akm@theinternet.com.au|