There's a slight caveat with that method, the code for creating the select box 
to remove the local zPropeties within zPropertyEdit.pt as standard is:


Code:

        <select name="propname" class="tableheader">
            <option tal:repeat="
                propname python:here.zenPropertyIds(False)"
                tal:content="propname" tal:attributes="value propname">
                    propname
            </option>
        </select>




As propname hasn't been defined yet within the <option> tag you get an error 
when trying to add a tal:condition to it, to fix the probelm you can repeat a 
<span> and then have the condition on the <option> as follows:


Code:

        <select name="propname" class="tableheader">
            <span tal:repeat="propname python:here.zenPropertyIds(False)">
                <option tal:content="propname" tal:attributes="value propname" 
tal:condition="python: propname.find('zTelnet') == 0">
                    propname
                </option>
            </span>
        </select>




Although there's probably a nicer solution for those who know zope better (at 
all!).




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=23553#23553

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to