Re: Re: What does Five and Z3 mean for Archetypes?

Sidnei da Silva <sidnei-/awGbKECNgO/3pe1ocb+swC/[email protected]>
Newsgroups gmane.comp.web.zope.plone.archetypes.devel
Message-ID <20051122130111.GI5490@cotia>
On Tue, Nov 22, 2005 at 01:52:50PM +0100, Martijn Faassen wrote:
| >How do you solve that problem in Silva?
| 
| Hm, we haven't really made a unified solution, but the basic idea is to 
| parameterize the export logic so that it can be controlled -- exporting 
| certain information is suppressed. Similarly a checking needs to happen 
| upon import, if import from untrusted sources is allowed.

Yeah, should be pretty doable.

| >Then basically the forms do a metal:use-macro with what was
| >returned.
| >
| >*I* think this last part should be changed to a simple call, eg:
| >tal:replace="widget", then we can return a Z3 widget and have it be
| >rendered just as easily.
| 
| Right, good to hear. I imagine you'd use tal:replace="structure widget", 
| but I get the idea. :)

Yep.

| >What would be a intersting AT widget? I think the 'RichWidget' is a
| >good candidate. It embeds kupu and a upload input box in the same widget.
| 
| I don't know much about AT widgets, but that seems like an interesting 
| candidate. Any other widgets that people can come up with?

There was something called 'InOutWidget' which has two multi-select
boxes and two buttons '>' and '<' between then and you can move stuff
from one box to the other. I think it was possible to drag-n-drop too.

There is something called 'ReferenceBrowserWidget' that pops a kupu
drawer (if I recall correctly) where you can search for items to use
as reference target.

| How does Archetypes deal with the requirements some widgets have to pull 
| in external resources, such as Javascript, at the top of the page? I 
| believe there was some discussion in Zope 3 land about being able to 
| specify for a widget, but I don't think it's been implemented yet.

The list of widgets for a page is computed early on. Each widget has a
property 'helper_js' and 'helper_css' which is a list of paths to the
target js and css respectively. After collecting the whole list of
resources, it's uniquefied so we don't include twice and the
js/css include declarations are inserted inside the 'head' tag.


-- 
Sidnei da Silva
Enfold Systems, LLC.
http://enfoldsystems.com


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.