[Kss-devel] Marshalling of form data

Balazs Ree ree at ree.hu
Fri Feb 23 09:31:53 CET 2007


2007. 02. 22, 16.10 Hedley Roos wrote:
> I am working on a project using PloneAzax and I make use of marshalling 
> (:list, :record, :records) in my page templates. Azax cannot handle 
> this, which means that in my Python scripts I do not have access to the 
> structures. There are other ugly solutions like assembling special tag 
> attributes and decoding them, but I wanted a clean solution.
> 
> I heavily modified forms.js and kukit.js and made a single char change 
> to resourcedata.js. See attached patches and examples to understand the 
> discussion below.
> 
> In my KSS file I had to make use of a naming convention. For exmaple 
> consider the line
> 
> kss_MarshallTest-value_record|record: currentFormVar('arecord:record')

I think we don't need the | convention in the variable name for that.
Because that is already known from the type of the data to be sent over
(= the output of currentFormVar). The marshaller can put the record tags
automatically.

This is actually already used with :list and maybe with :record too. So
what we actually need to do is

- to make the marshaller marshall the :records types too

- to make the formvar logic smarter so that it can select the composite
variables that belong to one varname only, from the form.

I am not saying the final word on this, but changing the syntax in the
suggested way is something we would like to avoid. So if we can do
without it...


-- 
Balazs Ree
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Ez az =?ISO-8859-1?Q?=FCzenetr=E9sz?=
	=?ISO-8859-1?Q?_digit=E1lis?= =?ISO-8859-1?Q?_al=E1=EDr=E1ssal?= van
	=?ISO-8859-1?Q?ell=E1tva?=
Url : http://codespeak.net/pipermail/kss-devel/attachments/20070223/46bd322a/attachment.pgp 


More information about the Kss-devel mailing list