I have a formulator form with 12 form objects -- some text boxes, some check boxes, etc. There are 3 multicheckbox objects that want to populate with objects from a folder object. Ergo, I have a multicheckbox objects called department, population, and institution. I also have folder objects by the SAME name at the same level in the zope heirarchy as the formulator form. I have a python script called listTitles also. Now the strange thing happens when I use a python expression in to populate each of the above mention checkbox fields. I use "python:form.department.listTitles()" to populatre the department formulator object. It works. I use "python:form.population()" to populate the populatio formulator object -- it does NOT work. Same thing for institution. I'm begining to wonder if I can only have one expression on a formulator form. Any idea's what might be happening? I can put in the url "http://server/test/department/listTitles" and I get back a python list of objects in the department folder. Which is what I expect. (so I know acquisition is working as I think it should) -- David Bear College of Public Programs/ASU Mail Code 0803
David Bear wrote at 2002-12-26 16:08 -0700:
I have a formulator form with 12 form objects -- some text boxes, some check boxes, etc. There are 3 multicheckbox objects that want to populate with objects from a folder object. Ergo, I have a multicheckbox objects called department, population, and institution. I also have folder objects by the SAME name at the same level in the zope heirarchy as the formulator form. I have a python script called listTitles also.
Now the strange thing happens when I use a python expression in to populate each of the above mention checkbox fields. I use "python:form.department.listTitles()" to populatre the department formulator object. It works. I use "python:form.population()" to populate the populatio formulator object -- it does NOT work. Same thing for institution. I see
"python:form.department.listTitles()" works "python:form.population()" does not For me, these are quite different.... Dieter
On Fri, Dec 27, 2002 at 08:35:53PM +0100, Dieter Maurer wrote:
David Bear wrote at 2002-12-26 16:08 -0700:
I have a formulator form with 12 form objects -- some text boxes, some check boxes, etc. There are 3 multicheckbox objects that want to populate with objects from a folder object. Ergo, I have a multicheckbox objects called department, population, and institution. I also have folder objects by the SAME name at the same level in the zope heirarchy as the formulator form. I have a python script called listTitles also.
Now the strange thing happens when I use a python expression in to populate each of the above mention checkbox fields. I use "python:form.department.listTitles()" to populatre the department formulator object. It works. I use "python:form.population()" to populate the populatio formulator object -- it does NOT work. Same thing for institution. I see
"python:form.department.listTitles()" works "python:form.population()" does not
For me, these are quite different....
sorry, my type. it should be python:form.department.listTitles() python:form.populations.listTitles() etc..
Dieter
-- David Bear College of Public Programs/ASU Mail Code 0803
David Bear wrote at 2002-12-26 16:08 -0700: Now the strange thing happens when I use a python expression in to populate each of the above mention checkbox fields. I use "python:form.department.listTitles()" to populate the department formulator object. It works. I use "python:form.population()" to populate the populatio formulator object -- it does NOT work. Same thing for institution. I see
"python:form.department.listTitles()" works "python:form.population()" does not
Correction to my first post, I use python:form.department.listTitles() python:form.populations.listTitles() It seems formulator is only capable of evaluated ONE TALES expression for ALL form objects that exist... Is this a bug? to recap, my listTitles() script lives in the same folder as the formulator form. All other folderish objects live beneath the the form. department, population, etc are children of the folder where both listTitles and the form exist. I've test listTitles() for correct acquistion using straight URL's and it works as expected. It just seems that when attempting to populate a formulator object, formulator only evaluates ONE python expression... -- David Bear College of Public Programs/ASU Mail Code 0803
just fyi.. the problem mentioned below is 'fixed' . I found that by deleting the formulator object that was not getting populated by the TALES expresion, and creating another object with a different ID the problem went away. I'm beginning to wonder if I had some kind of name collision between the formulator object ID and some other identifier... On Thu, Dec 26, 2002 at 04:08:38PM -0700, David Bear wrote:
I have a formulator form with 12 form objects -- some text boxes, some check boxes, etc. There are 3 multicheckbox objects that want to populate with objects from a folder object. Ergo, I have a multicheckbox objects called department, population, and institution. I also have folder objects by the SAME name at the same level in the zope heirarchy as the formulator form. I have a python script called listTitles also.
Now the strange thing happens when I use a python expression in to populate each of the above mention checkbox fields. I use "python:form.department.listTitles()" to populatre the department formulator object. It works. I use "python:form.population()" to populate the populatio formulator object -- it does NOT work. Same thing for institution.
I'm begining to wonder if I can only have one expression on a formulator form. Any idea's what might be happening? I can put in the url "http://server/test/department/listTitles" and I get back a python list of objects in the department folder. Which is what I expect. (so I know acquisition is working as I think it should) -- David Bear College of Public Programs/ASU Mail Code 0803
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Formulator-general mailing list Formulator-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/formulator-general
-- David Bear College of Public Programs/ASU Mail Code 0803
participants (2)
-
David Bear -
Dieter Maurer