[prev in list] [next in list] [prev in thread] [next in thread] 

List:       binarycloud-dev
Subject:    [binarycloud-dev] Issue with Form::_CompileFormRoles and node:include
From:       Jason Hines <jch () eyeintegrated ! com>
Date:       2003-12-19 8:16:07
[Download RAW message or body]


Since Node is scalable, and only works on itself, then children - there 
is a problem in regards to Form "compiling" the form roles for its 
children, if the children are used with node:include.

Form still sees its definition as:

[children] => Array
   (
     [0] => Array
         (
           [definition] => app/appName/ndf/form/first_name.php
         )

This is normal, because this child node has not yet been processed - 
when it does, the definition gets included fine.

Form is storing this form role mapping as:
$definition['children'][$child]['params']['role2id'] = $role2id;

.. then adds these params to the children definitions.

In the case of an include, the params are just being overwritten by 
Node::LoadDefinition when it includes the node:include'd definition.

A first reaction:
Node may have to traverse the node tree fully and include all 
node:include'd children nodes when found, altering the definition. 
(this sorta breaks the node scalability though, so I'm looking for a 
solution in Form instead - however, this problem of node:include may be 
a problem area in other cases too.

hmm

jason











---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@binarycloud.tigris.org
For additional commands, e-mail: dev-help@binarycloud.tigris.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic