WIKI(request.vars.input, extras={'code-color': {'noclasses': True}}) # By
the way, markdown just became my new favorite thing

Produces.


Traceback (most recent call last):
  File "/home/thadeusb/Applications/tb-web2py/gluon/restricted.py",
line 173, in restricted

    exec ccode in environment
  File 
"/home/thadeusb/Applications/tb-web2py/applications/thadeusb0/controllers/default.py"
<http://127.0.0.1:8000/admin/default/edit/thadeusb0/controllers/default.py>,
line 80, in <module>

  File "/home/thadeusb/Applications/tb-web2py/gluon/globals.py", line
96, in <lambda>

    self._caller = lambda f: f()

  File 
"/home/thadeusb/Applications/tb-web2py/applications/thadeusb0/controllers/default.py"
<http://127.0.0.1:8000/admin/default/edit/thadeusb0/controllers/default.py>,
line 10, in test

    d = WIKI(request.vars.input, extras='codehilite')

  File 
"/home/thadeusb/Applications/tb-web2py/gluon/contrib/markdown/__init__.py",
line 9, in WIKI

    return 
XML(markdown(text,extras=extras,safe_mode=safe_mode).encode(encoding,'xmlcharrefreplace'),**attributes)
TypeError: __init__() got an unexpected keyword argument 'extras'


XML() does not take *args or **kwargs. Adding these two to the end of
XML()'s init function fixes this.

-Thadeus

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" 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/web2py?hl=en.


Reply via email to