hello,
More beginners questions... help is very much appreciated :-)
So, starting to use tg widgets... after trying lots of different things
I finally managed to get the SyntaxHighlighter to display something in
my browser.
What I have at the moment is something like:
class CodeForm(Form):
fields = [widgets.SyntaxHighlighter()]
data = "data"
template = """
<textarea name="code" class="py">
%s
</textarea>
""" % data
class Root(controllers.RootController):
@expose(template="ats.templates.printcode")
def syntax(self):
f = CodeForm()
f.data = "123"
f.display()
return dict(form=f)
and in printcode.kid I have:
...
<span py:replace="form(data='456')" />
...
Now... is this totally the wrong approach? How do I get to display
"123" in the form?
Thanks,
JM
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---