Hi,

I've recently experienced two issues with the html helpers when trying
to implement <colgroup>.

First, the TAG helper doesn't seem to pickle (but all the others do).
Have I missed something here?

>>> import cPickle
>>> htm1 = cPickle.dumps(DIV())
>>> htm2 = cPickle.dumps(TAG.colgroup())
Traceback (most recent call last):
  File "<console>", line 1, in <module>
PicklingError: Can't pickle <class 'gluon.html.__tag__'>: attribute
lookup gluon
.html.__tag__ failed

Second, the TABLE helper doesn't seem to treat colgroup
appropriately...

>>> table = TABLE(TAG.colgroup(),THEAD(),TBODY())
>>> print table
<table><tr><td><colgroup></colgroup></td></tr><thead></thead><tbody></
tbody></ta
ble>

When something like this would seem the preferable result...

<table><colgroup></colgroup><thead></thead><tbody><tr><td></td></tr></
tbody></ta
ble>

I know the work-around is to split it into two steps with "table.insert
(0,TAG.colgroup())", but that does seem a little messy (and then it
doesn't pickle anyway).  Perhaps a colgroup helper is warranted?

Thanks
Russell


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to