On 3/28/06, PythonistL <[EMAIL PROTECTED]> wrote:
>
> In my program I use something like this:
>
> #########
> ....
> ...
>
> for Field in manipulator.fields:
>                 #do something
>         print Field
>                .....
> ......
> #########
> print Field  there
> can print the correct value that is e.g.
> <input type="text" id="id_Pieces_4" class="vIntegerField"
> name="Pieces_4" size="4" value="" maxlength="4" />
>
> but because Field is  an instance I can not use that in
> further processing e.g.
> string.replace(Field ,'id=','disabled id=')
>
> Is there any solution to my problem that is how to replace any text in
> the Field?
> Thanks for reply
> L.
>

every formfield has a render() method, and the function need a data
parameter, so you can use it to get the output html code with the
properly data. or just using str(field) to get the html code.

--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to