Basically, the uuid is used in an SMPTE defined system that uses XML
files as descriptive material. My app parses those files and extracts
relevant informations. However some human-readable text data is not
always filled in so I want to have fields to allow the user to enter a
text that will allow him later to select the right uuid (and thus the
right folder) by reading a simple text. I use the uuid as a primary
key in my db to retrieve the information later.

It's okay thouh I'll just work around this issue by replacing the "-"
character by something else in the template and then resetting it in
the controlelr.
I just though it would be good to be able to change the
variable_encode and variable_decode default values...

> Use some different naming scheme for these, or even better get rid of them as
> names totally. I don't think that using dynamic form input *names* is a good
> idea. Why can't you use something like
>
> <input type="hidden" name="uuid" value="one-uuid"/>
>
> instead?

Why would that be a bad idea ? Those uuids are unique, so they can't
conflict with anything and I'm not the one creating them, they were
created before (I use them because I don't really have a choice and I
find it silly to use another unique key for my purpose).
This just makes things easier.

Thanks.

On Jul 7, 2:06 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> On Monday 07 July 2008 11:46:18 zaf wrote:
>
> > Hi all,
> > I am sending a form to my controllers but some of the input fields of
> > this form contain the "-" in the name attribute (those names are
> > actually uuids I need to identify data). The problem as far as I can
> > see is that the variable_decode method in FormEncode will split any
> > name attribute that contains a certain list_char parameter (defaulting
> > to "-" ).
> > Is there anyway I could change the list_char parameter foir this
> > particular form I using ? would I have to tweak TG1 for that or can I
> > just set it from my controller or something ?
> > Has anyone got an alternative idea ?
>

>
> Diez
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to