Hello all !
CSS widget is rendered this way:
>>> css = CSSLink(mod=static, name="sample.css")
>>> css.render()
'<LINK HREF="/tg_widgets/turbogears.widgets/sample.css"
TYPE="text/css" REL="stylesheet">'
Well, I'd like to be able to render something like:
'<LINK HREF="/tg_widgets/turbogears.widgets/sample.css"
TYPE="text/css" REL="stylesheet" MEDIA="printer">'
...but "media" actually isn't a valid argument.
>>> css = CSSLink(mod=static, name="sample.css", media="printer")
Traceback (most recent call last):
File "<pyshell#6>", line 1, in -toplevel-
css = CSSLink(mod=static, name="sample.css", media="printer")
File "c:\pessoal\tg90\turbogears\widgets\base.py", line 50, in widgetinit
func(self, *args, **kw)
TypeError: __init__() got an unexpected keyword argument 'media'
Am I missing something here ?
Just for reference, here is the especification for CSS from W3C:
http://www.w3.org/TR/REC-CSS2/media.html
Thanks !
Roger
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---