[silva-dev] object lookup in code sources
Andy Altepeter
aaltepet at bethel.edu
Mon Dec 12 20:45:04 CET 2005
This is really cool, and I've very glad someone put this togethor...I was
thinking the same thing but didn't know how to accomplish it. However, I
still run into the same issue that I described before. When 'adding' it
works, but when selecting an existing it does not.
Odd, it seems to be a problem with Firefox 1.0.x (both .4 and .7). It works
in IE6, and firefox 1.5. I guess I'm leaving the suse 9.2 rpms behind...
Thanks again for the suggestion on the formulator field!
Andy
On Monday 12 December 2005 03:09 am, Jan-Wijbrand Kolman wrote:
> > I'm running into a really odd problem with using the new object lookup
> > window in a code source. First off, I notice Formulator doesn't have
> > buttons (?), so I'm using a text field with name=document. The TALES
> > expression for this field looks like:
> >
> > string:id='es_silva_document'
> > onclick="reference.getReference(function(path, id, title)
> > {document.getElementById('es_silva_document').value = path;},
> > '${request/model/aq_parent/absolute_url}', 'Silva Document',
> > true);return true;"
>
> This is not really an answer to your actual question, still:
>
> 2 weeks ago we participated in a "Silva" sprint, geared towards building
> site layouts for Silva.
>
> However, with the valuable input from Samuel Schleup, we created a
> Silva-specific Formulator field that includes a button for triggering
> the lookup up pup up window.
>
> This code has been checked in on the Silva trunk (what will be
> Silva-1.5), but I think you should be able use that code in Silva-1.4.x
> as well, with a little hacking. You can find it here:
>
> http://cvs.infrae.com/Silva/lookupwindowfield.py?rev=1.1&view=auto
>
> and its initialization in here (line 9):
>
> http://cvs.infrae.com/Silva/__init__.py?rev=1.140&view=auto
>
>
> Hope this helps,
> kind regards,
> jw
More information about the silva-dev
mailing list