Re: [Zope] How do I set the Title property of a File object from a DTML method

2000-11-10 Thread magnus

[me]

| But I'm unable to set the Title property of a File object.  

[Erik]

| Is it just the title property?  All the others you can fiddle around
| with?  Try manage_changeProperties() instead.  I know (from
| lib/python/OFS/Image.py) that the File object has its own
| manage_edit() method, you could try that one.

Actually it turned out to be a different problem (I work around it
now).  My form looked something like this:









and the change method something like this:




Both the form and the change method would be DTML methods in my
containing ZClass object.  For my own ZClass subobjects, this worked
fine, but for a File subobject it would just show the File instead of
running the change method.  In the end I had to make the action field
in the form tag above include "/change" if the object was a File.

Could someone explain this to me?

-Magnus

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




[Zope] How do I set the Title property of a File object from a DTML method

2000-11-09 Thread magnus

I have some of my own ZClass objects that may contain other ZClass
objects or Files.  Using a form and a method (that calls
manage_editProperties(REQUEST)) I can set all the properties of my own
ZClass subobjects.  But I'm unable to set the Title property of a File
object.  Is there a secret trick?

-Magnus

___
Zope maillist  -  [EMAIL PROTECTED]
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 )