[Zope] Selection property problem

2001-01-22 Thread peter bengtson

This is the form:

select name="alignment_text"
optionleft/option
optioncenter/option
optionright/option
/select

When I submit this form the dtml-var REQUEST says this (assuming I select
'center'):

alignment_text:  center

With this I want to change a Selection property called 'alignment_text', but
it fails to "None" all the time.

dtml-call "propertysheets.text_props.manage_editProperties({
  'alignment_text':_.str(REQUEST['alignment_text']),
  })"

All other properties are ok, except this one that selection one.


What's the trick? ...with selection properties.


PS. My HTML (the form) looks the same as is does when you click the
Properties tab of this object.


___
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 )




RE: [Zope] Selection Property

2000-09-28 Thread Roch'e Compaan

 You need to set up the "bandlist" method as the Value when adding the
 selection property, then make shure that the "bandlist" method is
 available
 from where you use the property sheet.

Been there, done that, still no luck :)

But in the dtml source for properties it says getProperty(select_variable).
If I populate a lines type property in the current folder and then do
dtml-return myProperty it works.

Roché


___
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 )