1. 30 Jul, 2010 1 commit
  2. 26 Jun, 2010 1 commit
  3. 29 May, 2010 2 commits
  4. 17 Jul, 2009 1 commit
  5. 06 Jul, 2009 1 commit
  6. 26 May, 2009 2 commits
  7. 23 May, 2009 2 commits
  8. 01 Mar, 2009 1 commit
    • abridgewater's avatar
      Further consolidate paste list / paste index access and related cleanups · b6cc3063
      abridgewater authored
        Added explicit WEAKEN-PASTE-CONTENTS function to eliminate the KLUDGE
      of going through the accessors to set up the weak pointer.
      
        Added RESET-PASTE-INDEX, ADD-PASTE-TO-INDEX and
      REMOVE-PASTE-FROM-INDEX to cover most of the remaining uses of *pastes*
      and one of the uses of *paste-counter*.
      
        Added ADD-NEW-PASTE-TO-INDEX and ANNOTATE-PASTE to do the dirty work
      of paste-number allocation, adding pastes or annotations to the
      appropriate places, manage serialization, etc. in order to simplify
      MAKE-NEW-PASTE further.
      
        Deleted SERIALIZE-TRANSACTION as no longer necessary.
      
        Added a list of valid keywords to MAKE-NEW-PASTE's arglist.
      b6cc3063
  9. 28 Feb, 2009 2 commits
  10. 27 Feb, 2009 1 commit
    • abridgewater's avatar
      Use SBCL weak pointers for paste contents. · 87267f8d
      abridgewater authored
        Define accessors for paste-contents by hand, instead of by defclass.
      
        Change serialize-object-slots and deserialize-object-slots to operate
      in terms of readers and writers instead of slot-value.
      
        Add a new function, reload-paste-contents, to re-read the
      paste-contents field of a paste from the xml file on disk.
      
        Have the paste-contents accessors use weak pointers, falling back to
      reload-paste-contents for broken pointers, and have the reader return
      the slot value when it is not a weak pointer.
      
        Have paste-write-xml-to-file write first to a string-output-stream so
      as to not risk trying to read the paste-contents for a broken weak
      pointer while the file is being rewritten.
      
        Have serialize-transaction weaken the paste-contents pointer (it is
      created as a bare string, not a weak pointer).
      
        Minor cleanups: re-ordered functions within the file, added section
      headers, removed make-paste (it was useless), made a couple functions
      with useless return values explicitly return (values).
      87267f8d
  11. 18 Feb, 2009 2 commits
  12. 17 Feb, 2009 1 commit
    • abridgewater's avatar
      Restructured paste creation. · 24fe8bcb
      abridgewater authored
        Added a parent-paste slot to the paste structure to link annotations
      back to their parents.
      
        Changed paste-display-url to provide a valid and correct link for
      annotations as well as normal pastes.
      
        Changed the read-paste-xml-from-file to set the parent-paste slot
      when reading annotations.
      
        Changed serialize-transaction to operate purely in terms of a paste
      object, detecting the annotation case by means of paste-parent-paste.
      
        Extracted irc-announce-paste from make-new-paste, rewriting it to
      operate solely in terms of a paste object.
      
        Changed make-new-paste from a macro to a function, eliminating all
      redundant and constant inputs, adding paste-number allocation to the
      scope of the function, and having it return the new paste.
      
        Changed the submit-paste-handler to interact properly with the new
      version of make-new-paste, cleaning out some redudnant calculations
      along the way.
      
        Changed xmlrpc-method-newpaste to work properly with the new version
      of make-new-paste.
      24fe8bcb
  13. 15 Feb, 2009 4 commits
    • abridgewater's avatar
      More clean up access to paste list. · 0b6d4846
      abridgewater authored
        Added MAYBE-SPAM parameter to LIST-PASTES.
      
        Added new COUNT-PASTES function to establish an interface for
      obtaining quantity data without (theoretically) having to cons up an
      intermediate list or directly accessing *pastes*, implemented by
      consing up said immediate list and obtaining its length (oops).
      
        Changed the two references to *pastes* in administration.lisp to use
      the two functions mentioned above.
      0b6d4846
    • abridgewater's avatar
      Paste list handler bugfixes. · 764cbc65
      abridgewater authored
        Treat a non-numeric query parameter as if no query parameter had been
      given, no longer returning a blank page and writing a backtrace to the
      log.
      
        Generate valid page-urls for "channels" None and Some.
      764cbc65
    • abridgewater's avatar
      Refactored handle-request-response for list-paste-handler. · 8ccfc167
      abridgewater authored
        Broke out page links handling to new function
      page-links-for-paste-list.
      
        Cleaned up page-url computation for page links.
      8ccfc167
    • abridgewater's avatar
      Moved log files to logs/ subdirectory. · fa015481
      abridgewater authored
        Changed *ban-log-file*, *event-log-file* and *times-file-root* to
      point to a new subdirectory, logs/, of the base directory.
      fa015481
  14. 14 Feb, 2009 5 commits
    • abridgewater's avatar
      Clean up access to paste list. · 6fe73065
      abridgewater authored
        Added new function LIST-PASTES to return a list of pastes matching
      certian criteria.
      
        Changed all direct access to *PASTES* in web-server.lisp and
      xml-paste.lisp other than paste creation to use LIST-PASTES.
      6fe73065
    • abridgewater's avatar
      Use FIND-PASTE where possible. · efad4733
      abridgewater authored
        Changed all direct searches of *PASTES* for a particular paste number
      to use FIND-PASTE.
      efad4733
    • abridgewater's avatar
      Paste storage consolidation · 67aa5db7
      abridgewater authored
        Moved definition of class paste and some helper functions from
      web-server.lisp to persistent-pastes.lisp.
      
        Moved paste creation and manipulation macros and functions from
      lisppaste.lisp to persistent-pastes.lisp.
      
        Fixed up dependencies related to the changes above in lisppaste.asd.
      67aa5db7
    • abridgewater's avatar
      Paste storage consolidation · b37c1139
      abridgewater authored
        Moved definition of class paste and some helper functions from
      web-server.lisp to persistent-pastes.lisp.
      
        Moved paste creation and manipulation macros and functions from
      lisppaste.lisp to persistent-pastes.lisp.
      
        Fixed up dependencies related to the changes above in lisppaste.asd.
      b37c1139
    • abridgewater's avatar
      Heavy refactoring. · ff97f549
      abridgewater authored
        Broke up the anonymous xml-rpc-call-hook into separate functions and
      a dispatcher.
      
        Introduced a local variable to the pastedetails handler to reduce
      repeated code.
      
        Converted newpaste handler to use guard clauses instead of deeply
      nested conditionals.
      ff97f549
  15. 13 Feb, 2009 1 commit
  16. 12 Feb, 2009 2 commits
  17. 04 Feb, 2009 1 commit
    • lisppaste's avatar
      Per-channel coloring modes · e30ff3c7
      lisppaste authored
      New diff coloring mode and a specific version for #webkit
      Make it easier to fix the bots when things go wrong
      e30ff3c7
  18. 14 Aug, 2008 1 commit
  19. 18 Jun, 2008 1 commit
  20. 25 May, 2008 1 commit
  21. 08 May, 2008 1 commit
  22. 05 May, 2008 1 commit
  23. 11 Apr, 2008 1 commit
  24. 02 Dec, 2007 1 commit
  25. 28 Jun, 2007 1 commit
  26. 27 Jun, 2007 1 commit
  27. 25 Mar, 2007 1 commit