We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

  1. 16 Mar, 2011 4 commits
  2. 09 Mar, 2011 1 commit
  3. 08 Mar, 2011 2 commits
    • Brion Vibber's avatar
      Poll plugin: make the polling response form submit via AJAX and return the results. · 90f1cfcf
      Brion Vibber authored
      Now, any form marked with 'ajax' class will get the simple FormXHR treatment. Should help cut down on code that just adds that into individual forms.
    • Brion Vibber's avatar
      Initial checkin of Poll plugin: micro-app to post mini polls/surveys from the notice form. · 3438a78c
      Brion Vibber authored
      This version is fairly basic; votes do not (yet) show a reply, they just got in the table. No pretty graphs for the results yet, just text.
      The ActivityStream output is temporary and probably should be replaced; the current structures for adding custom data aren't really ready yet (especially since we need to cover JSON and Atom formats, probably pretty differently)
      Uses similar system as Bookmark for attaching to notices -- saves a custom URI for an alternate action, which we can then pass in and hook back up to our poll object. This can probably do with a little more simplification in the parent MicroAppPlugin class.
      Currently adds two tables:
      - poll holds the main poll info: id and URI to associate with the notice, then the question and a text blob with the options.
      - poll_response records the selections picked by our nice fellows.
      Hopefully no off-by-one bugs left in the selection, but I give no guarantees. ;)
      Some todo notes in the README and in doc comments.