Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/writers.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove logging to let MyLogger handle all logsAleksey Lim2010-09-101-1/+1
|
* Update template writers to use absolute/relative URLsRichard Darst2009-11-241-1/+1
| | | | | | | - This should bring the template writers in line with what the other writers do. darcs-hash:20091124065442-82ea9-61ecf0ee5343d0b679fa70f0f41e12eeb3a002c4.gz
* MediaWiki writer: fix title levelsRichard Darst2009-09-301-1/+1
| | | | | | - Main page title now is " darcs-hash:20090930191728-82ea9-1bf2957cbebdd16ff09addcf77ed4091e1164ae0.gz
* Unify the two writers, select template by using templateRichard Darst2009-09-241-71/+48
| | | | | | | - Unify the TextTemplate and HTMLTemplate writers - Template writer depends on the genshi templating engine darcs-hash:20090924062930-82ea9-b77c45f717e110201231498557d568255699abbf.gz
* Template problem: Don't ever return none for ActionItemsPersonRichard Darst2009-09-241-2/+2
| | | | | | | | - For previous work, ActionItemsPerson was returned as None, which meant to not include it in the final output. This needs to not happen for the templates, or else it causes exceptions. darcs-hash:20090924060414-82ea9-350d8b6fd92e086088a681821aaaa0987e84069d.gz
* Genshi text templatebochecha2009-09-231-1/+42
| | | | | | | | Ignore-this: fd659a7ae6fdf33393d5cbda81b614b3 This commit adds the possibility to control the text output with a Genshi text template. darcs-hash:20090923235257-fa9d6-2b1c550f26384e5a2418e251d9149c48eaa1a5c9.gz
* Implement a templating system with Genshibochecha2009-09-221-2/+28
| | | | | | | | | Ignore-this: dc565ec2e3087ffec03d44c8786be875 This commit enables the first steps towards the use of the Genshi templating system. A templating system makes it possible to control totally the formatted output without any Python skills. darcs-hash:20090922224326-fa9d6-899b1080212c02f2ea74bf2b9b7fad82b18e6066.gz
* Add templaning necessary for the soon-to-be genshi templatingRichard Darst2009-09-221-0/+124
| | | | | | | | | | | - This adds .get_template method on the _BaseWriter which gives a big data structure object that can be used with genshi templates to write custom HTML. - Template writer added - place to add the new writer code. - For information on how this works, search for these two names in the code and read the comments in them. darcs-hash:20090922183039-82ea9-c403d1e748e13ee79afc8dbdf7f8ee286000797a.gz
* Add PmWiki writerRichard Darst2009-09-191-8/+20
| | | | | | | | | | - Alter MediaWiki writer to be subclassable to suit the PmWiki changes. - Make a trivial subclass of MediaWiki to produce PmWiki. - PmWiki (like MediaWiki) still needs to be enabled by using the writer_map config variable. - I should look into unifying all of the differennt writers even more. darcs-hash:20090919035738-82ea9-e662bd934f895012a5fc27c3b6ccaa0842348c0b.gz
* Documentation fix: docstring of Text classRichard Darst2009-09-191-1/+1
| | | | darcs-hash:20090919033046-82ea9-7f67d48e3151707d39343027cb190a2e0919b5f0.gz
* Have all writers say (none) for no action itemsRichard Darst2009-09-191-0/+8
| | | | darcs-hash:20090919033001-82ea9-2eba1daba5ea870df027d7985a341203ab62df9e.gz
* Fix up the MediaWiki writerRichard Darst2009-09-181-17/+17
| | | | | | - It should work now. darcs-hash:20090918234611-82ea9-1686b28b5cabc1d2f87874b7328b35c3504793c5.gz
* Add MediaWiki writer prototypeRichard Darst2009-09-141-0/+123
| | | | | | | | | - This is just a copy of the Text writer for now, no changes have been made for the MediaWiki syntax yet. - This will allow a nice diff of how Text has to be changed to become MediaWiki once I make the next commit. darcs-hash:20090914155337-82ea9-1e1fe08d58d85f8da6189a75b105f20cf3d41f8b.gz
* Greatly change the Text writer to me more modularRichard Darst2009-09-141-59/+52
| | | | | | | - Functionality should be the same, but now has the moduler mechanism that I recently added to the HTML2 writer. darcs-hash:20090914155022-82ea9-5b8bc05ca6516661c1aef8913b863ba61fb6808e.gz
* Shuffle around writer namesRichard Darst2009-09-121-2/+3
| | | | | | - Rename HTML -> HTML1, HTMLlog -> HTMLlog1. Set HTML darcs-hash:20090912021843-82ea9-e82a99401cf16dc6ffd9eab5819182d0c372f4e3.gz
* Make ReST and Text writers not write (none) for unassigned action itemsRichard Darst2009-09-121-6/+14
| | | | | | - This ports the fix I made to the HTML2 writer to these writers, too. darcs-hash:20090912021300-82ea9-b9d7944864971c43089f9933a1e6d462bfdbfd7c.gz
* Don't show unassigned action items when there are none.Richard Darst2009-09-111-4/+7
| | | | | | | | - I had left this here since "explicit is better than implicit", but because of requests (and also "less is better than more"), I'm removing it. darcs-hash:20090911212639-82ea9-eb11d665119f434148f4362a2082f6cf9fd9112f.gz
* Rename "meeting log" to "meeting summary" since it's more accurateRichard Darst2009-09-111-5/+5
| | | | | | - In the various text-based writers. darcs-hash:20090911194043-82ea9-8747499b5d24ab23d5c92740ec23d198d6663fbb.gz
* Fix/improve CSS writers for the HTMLxxx2 writersRichard Darst2009-09-111-90/+52
| | | | | | - cssFile_*, cssEmbed_* config variables for {log, minutes} darcs-hash:20090911015629-82ea9-c3d400078be748da433269fabb3ba06be2f0ca1b.gz
* Make HTML2 formater use CSS formatting from Francis GiannarosRichard Darst2009-09-021-5/+76
| | | | | | | | | | | - Francis provided a sample minutes file with nice CSS. This is the first merging into MeetBot main. It will still need work before it is releasable. - Not all of this will necessarily make it in to MeetBot mainline, but at least the ability to configure it will. - CSS will be user-customizable easily. darcs-hash:20090902154137-82ea9-2c9dcd91ee80cf77f0a4972ec55eda47a400f3d6.gz
* Add a self-done HTMLlog writerRichard Darst2009-09-021-0/+102
| | | | | | | | - This writer does the exact same thing as the current one, but has a custom parsing and writing. This means that it can be more easily customized eventually darcs-hash:20090902154053-82ea9-0aff7cbc7df35234846cc5abc5a968ebd2ba6ee9.gz
* Fix encoding of HTMLlog outputRichard Darst2009-09-011-1/+1
| | | | | | | | | | - With a previous patch, I had attempted to fix charset issues with HTMLlog. Unfortunately I got the name of the option mixed up, making it not output a charset designator in the HTML. Pygments didn't raise any errors about the wrong option name. - Now, the HTML says '... content darcs-hash:20090901173500-82ea9-d461508cc421c6020c25290e5401ab3963eadb32.gz
* Modularize the HTML2 writer in preparation for improvementsRichard Darst2009-08-311-53/+65
| | | | | | - This patch should not change any user-visible behavior - yet! darcs-hash:20090831224059-82ea9-c384d4266b483d4d230c08182c5817a8bde9b3a3.gz
* Add a generic html template to writers.pyRichard Darst2009-08-311-0/+13
| | | | darcs-hash:20090831224005-82ea9-d0f012c2fc284288d3308ca92af58712fa72a05c.gz
* Wrap lines in the HTML logRichard Darst2009-08-311-0/+15
| | | | | | | | | | | - This adds "pre { white-space: pre-wrap; }" to the css via a gross hack - I hope to soon redo this so that this gross hack isn't necessary, and the entire HTML log output is more customizable. - Thanks to commenter at http://francis.giannaros.org/blog/2009/08/27/create-minutes-and-\ logs-for-your-meetings-with-bugbot/ darcs-hash:20090831214329-82ea9-a30ea5f3f72bd0f5e008d0e8fb2a0a1b48c52255.gz
* Fix HTML validation when there is no initial topicRichard Darst2009-08-311-0/+7
| | | | | | | | | - you are allowed to use #info (or other command) before the first #topic command. This requires special handling of the HTML <li>, which I have just fixed. It now validates correctly with the w3 validator. darcs-hash:20090831213729-82ea9-351d0a485c7596ec10fcfc43b28ccc8ce3d9dbe6.gz
* Improve wrapping and Text writer writingRichard Darst2009-08-161-9/+8
| | | | | | | | | - Wrapping made less fragile (less likely to be miswrapped due to user input, but still not foolproof). - Full log link in Text version (but gets lost if you replay it). Also make the Text version look a bit like ReST. darcs-hash:20090816033754-82ea9-b2e52baff4cd77a6fd4ae92b47cb2d253c49b836.gz
* Two small formatting changes in writers: INFO and blank linesRichard Darst2009-08-161-0/+2
| | | | | | | | | | - Make INFO the assumed default in ReST and Text writers - don't show "INFO:" at the start of the line - Add extra blank lines in ReST between topics - makes it look a little bit nicer (but not much. ReST is sort of the worst of both worlds for something this specialized. darcs-hash:20090816031508-82ea9-a8e92abae01914e1bff7f9ee36f22512e27ce114.gz
* Improve code for realtime updating of log filesRichard Darst2009-08-161-4/+2
| | | | | | | | | | | | | | | - The old code for realtime logfile updating was very messy and hard to understand. This is better, but still not perfect. - Updating in realtime still will have issues if the filename changes during the meeting. This would (right now) be only if you use the #meetingname command. - This is not the most efficient in that it rewrites the whole file every time it updates it. This is for convenience and to keep it from getting too complicated (but may not be true forever). - Right now only the .log.txt writer updates at every step, since that one requires the least computation at each step. darcs-hash:20090816022559-82ea9-f952ffebd683907ff599f8ae78544dfc5faaa13b.gz
* Add meeting version note to output of writersRichard Darst2009-08-141-4/+11
| | | | darcs-hash:20090814212701-82ea9-cd1e86a9e27e5c0f0de3d3e11f00d20b7cafb605.gz
* First effort at realtime updating of log filesRichard Darst2009-08-011-1/+5
| | | | | | | | | | | | | - With this change, the .log.txt is updated after every said line, so that people can catch up to the meeting. - This is a general mechanism, but not the most efficient for this task: It re-opens the file after every line. This isn't ideal, but was easiest to integrate. There are other considerations, such as the fact that filenames can change during the meeting (#meetingname command) or file permissions change (#restrictlogs). I still need to work out how to deal with these issues... darcs-hash:20090801003826-82ea9-fddfe6f61bf11ccce94fd80f6f66f3ffbe5fc9f7.gz
* Add newlines to HTML2 and Text writers to improve readabilityRichard Darst2009-07-311-1/+3
| | | | darcs-hash:20090731184052-82ea9-15abffebe8c99e14e64f3f2ae2b9546a3186c3c2.gz
* add Text and HTML2 writersRichard Darst2009-07-301-1/+262
| | | | | | | - These combine the best features of the ReST and HTMLfromReST, without the disadvantages of having to make one source fit two formats. darcs-hash:20090730191919-82ea9-f7f88a57e8b59720f59c26bfe1961f93cda818bc.gz
* Minor changes in writersRichard Darst2009-07-301-3/+9
| | | | darcs-hash:20090730191403-82ea9-130d777301c6c3296b37499624d298fbf8df268e.gz
* Improve mechanisms of encodingRichard Darst2009-07-071-8/+3
| | | | | | | - we now let writers return already-encoded text, this helps in a few cases. darcs-hash:20090707200621-82ea9-e012cd62add13db0c62016414585846a6ed817f7.gz
* Fix very minor indention issue with ReSTRichard Darst2009-07-071-1/+1
| | | | darcs-hash:20090707195955-82ea9-776095ac6d9df1ee5e4fa1f96717123bc6c5ccd8.gz
* Enable some basic escaping of ReSTRichard Darst2009-07-071-1/+2
| | | | darcs-hash:20090707195829-82ea9-0ccdab7bae6ea8c08ad8edf09c33e6b530dd2388.gz
* Add some copyright notices to other filesRichard Darst2009-07-071-1/+30
| | | | darcs-hash:20090707030320-82ea9-784086ecf5900a95b34f0337aaede06aa9078b4f.gz
* remove extraneous quote marksRichard Darst2009-07-071-1/+1
| | | | darcs-hash:20090707030018-82ea9-5c1e5568869556ca128ecbc620003f739e9581da.gz
* Some updates to names and semantics of writersRichard Darst2009-07-061-8/+20
| | | | | | | - RST -> ReST - add the argument "extension darcs-hash:20090706233113-82ea9-f3b6b93a72b939881be3bdb7be14f65f2b5a2ed3.gz
* Fix encoding issue of reST->HTML version writerRichard Darst2009-07-021-1/+8
| | | | darcs-hash:20090702180043-82ea9-5c15ca5b47dbd4c72e02f4a6c6a4ba6ff09f7ce5.gz
* Changes to writers.pyRichard Darst2009-07-021-119/+99
| | | | | | | | - Move the body template to outside the functions - Check HTML sanitization of nicks. - Do reST sanitization of lines and nicks. Right now this is a null op. darcs-hash:20090702175730-82ea9-40a0ee253644d8e51ad91c4c4bec28343abc846a.gz
* another small fix...Richard Darst2009-07-021-1/+1
| | | | | | - and this time, i've actually tested it... darcs-hash:20090702061217-82ea9-8c50a0578709beb760f179c03be46c9e3115f95e.gz
* another bug fix...Richard Darst2009-07-021-1/+1
| | | | darcs-hash:20090702061113-82ea9-cdd7a53f07b9b23a3cf35281562e7f30799b658a.gz
* fix bug where html output wasn't substitutedRichard Darst2009-07-021-0/+1
| | | | darcs-hash:20090702060757-82ea9-4a07f4b3a2198f8241ac694dcd9f42ba2e3472e4.gz
* significant changes to writers.pyRichard Darst2009-07-021-103/+152
| | | | | | | - mainly reducing code duplication and making it more general. - also solving a problem with URLs getting wrapped in reST darcs-hash:20090702044834-82ea9-f942567f1a071d2724a441b2b5b94d504954dee0.gz
* Change format of writer_mapRichard Darst2009-07-011-15/+18
| | | | | | | - we don't store already-instantiated classes in writer_map. The writers are now instantiated with the meeting object as the argument. darcs-hash:20090701224338-82ea9-1abfb53173ce382764868b6c57a5b2929b36a991.gz
* Security for rst->htmlRichard Darst2009-07-011-1/+3
| | | | | | | - disallow includes and raw html - http://docutils.sourceforge.net/docs/howto/security.html darcs-hash:20090701050141-82ea9-7c548a15dc4427c248871eb3eec43fa88c8a0f17.gz
* change to not use isinstance() in determing typesRichard Darst2009-07-011-7/+7
| | | | | | | | | | | | | | - reload() of modules messed this up greatly, in certain cases. Modules get re-executed when you reload(), which causes the classes to be redefined, meaning that the classes stored in the Meeting object are *not* any longer subclasses of items.* - With the other fixes I did, this was only going to be a problem if supybot reloaded the MeetBot module during a meeting, however, it's best to plan for that anyway. - I switch to comparing m.itemtype to a string value. Not as elegant, but works for now. darcs-hash:20090701033031-82ea9-cf69f235e06d70dd70265f5c5481e4c8262ec971.gz
* fix bug in RST writing: .append() bad argumentsRichard Darst2009-07-011-1/+1
| | | | darcs-hash:20090701002601-82ea9-45a8d9f773cfec8795c3e42932e9f045bc81bd86.gz