So, how to do some like:

<time pubdate datetime="2009-10-09">1 day ago</time>


I tried:


TAG.time('1 day ago', _pubdate=True,
 _datetime=str(datetime.year) + '-' + '%02d' % datetime.month + '-' + '%02d' % 
datetime.day)


And got:


<time datetime="2009-10-09" pubdate="pubdate">1 day ago</time>


Here I can read:

http://www.web2py.com/init/simple_examples/hello5


"attributes without value like "READONLY" can be created with the argument 
"_readonly=ON"."


But not _pubdate=True, nor _pubdate=ON (wich is deprecated and just an alias 
for True according to chapter 5) does not work for me and generates 
pubdate="pubdate".






-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to