Loading ...
Sorry, an error occurred while loading the content.

Re: [XP] Wikis With Widgets

Expand Messages
  • attkeithray
    ... wrote: [...] ... [...] ... look for ... include the ... instance, and include ... [...] Why not let the user type in Python code in the input-form, which
    Message 1 of 15 , Dec 31, 2001
    • 0 Attachment
      --- In extremeprogramming@y..., George Paci <george@r...>
      wrote:
      [...]
      > We were using one of the PHP Wiki implementations and had
      a similar idea:
      > why not make it so you can include objects in a Wiki page?
      [...]
      > In PHP, it was really, really easy: we got our displaying code to
      look for
      > lines that begin with "#", treat the next word as a class name,
      include the
      > file for that class, and instantiate it with the rest of the line as a
      > string parameter. Then call the display() method on the
      instance, and include
      > the output in the Wiki page.
      [...]

      Why not let the user type in Python code in the input-form, which
      gets compiled and executed...?

      (I know "why not", but isn't there a "safe" dialect of Python to
      prevent the user from trashing your server?)
    Your message has been successfully submitted and would be delivered to recipients shortly.