debian/0000775000000000000000000000000011604766372007204 5ustar debian/source/0000775000000000000000000000000011604766372010504 5ustar debian/source/format0000664000000000000000000000001411604766372011712 0ustar 3.0 (quilt) debian/compat0000664000000000000000000000000211604766372010402 0ustar 7 debian/moin.vim0000664000000000000000000000017411604766372010665 0ustar au! BufRead,BufNewFile *.moin \ if getline(1) =~ '^@@ Syntax: 1\.5$' | setf moin1_5 \ | else | setf moin1_6 | endif debian/editmoin.manpages0000664000000000000000000000001311604766372012523 0ustar editmoin.1 debian/patches/0000775000000000000000000000000011604766372010633 5ustar debian/patches/02_alternative_cookie_names.patch0000664000000000000000000000264511604766372017216 0ustar Description: Current moin versions use MOIN_SESSION_80_ROOT or MOIN_SESSION_443_ROOT cookie names. Try these before the standard MOIN_SESSION cookie. Author: Andy Whitcroft Bug: https://launchpad.net/bugs/801284 Index: debian/editmoin =================================================================== --- debian.orig/editmoin 2011-07-06 06:53:11.304601803 +0200 +++ debian/editmoin 2011-07-06 06:53:15.014601829 +0200 @@ -458,12 +458,22 @@ # Moin >= 1.7 cookiename, cookievalue = get_session_cookie(user, url) urlopener = get_urlopener(url, cookievalue, cookiename) + moinfile = fetchfile(urlopener, url, cookievalue, template) else: # Moin < 1.7 cookievalue = get_id(url) - urlopener = get_urlopener(url, cookievalue) + moinfile = None + for cookiename in ("MOIN_SESSION_80_ROOT", "MOIN_SESSION_443_ROOT"): + try: + urlopener = get_urlopener(url, cookievalue, cookiename) + moinfile = fetchfile(urlopener, url, cookievalue, template) + break + except: + pass + if not moinfile: + urlopener = get_urlopener(url, cookievalue) + moinfile = fetchfile(urlopener, url, cookievalue, template) - moinfile = fetchfile(urlopener, url, cookievalue, template) try: page_edited = editfile_func(moinfile) if page_edited: debian/patches/01_man_ids_from_firefox.patch0000664000000000000000000000154411604766372016337 0ustar Description: Document how to create a .moin_ids from Firefox Author: Martin Pitt Bug: https://launchpad.net/bugs/806304 Index: debian/editmoin.1 =================================================================== --- debian.orig/editmoin.1 2011-07-06 06:47:43.854599539 +0200 +++ debian/editmoin.1 2011-07-06 06:47:47.754599564 +0200 @@ -103,6 +103,18 @@ https://user:password@example.com/moin/moin.cgi 123456789.123.12345 .PP +You can use a command like this to create a +.B ~/.moin_ids +file from your current Firefox profile: + +.PP +sqlite3 -separator ' ' .mozilla/*/*.default/cookies.sqlite \\ +.BR + "SELECT host,value FROM moz_cookies WHERE name LIKE 'MOIN_SESSION'" \\ +.BR + | sed 's_^_https://_' > ~/.moin_ids + +.PP For using shortcuts (see below), and also for better control, defining URLs without IDs in that file is valid. debian/patches/series0000664000000000000000000000010011604766372012037 0ustar 01_man_ids_from_firefox.patch 02_alternative_cookie_names.patch debian/rules0000775000000000000000000000015511604766372010265 0ustar #!/usr/bin/make -f %: dh "$@" override_dh_auto_install: # setup.py installs too much noise, don't use it debian/control0000664000000000000000000000157711604766372010621 0ustar Source: editmoin Section: text Priority: optional Build-Depends: debhelper (>= 7.0.50~), python (>= 2.5) Maintainer: Martin Pitt Homepage: http://labix.org/editmoin Standards-Version: 3.9.2 Vcs-Bzr: http://code.launchpad.net/~pitti/editmoin/debian Package: editmoin Architecture: all Depends: python, ${misc:Depends} Suggests: vim-addon-manager Description: edit MoinMoin wiki pages with your favourite editor editmoin allows you to edit pages in MoinMoin wikis with your preferred editor instead of the (usually quite limited) web browser text areas. . It also supports configuration files to define shortcuts for URLs that you edit often. . This package also includes a Vim syntax file. Install vim-addon-manager and use "vim-addons install editmoin" to activate. . However, you can use any other editor by setting the standard $EDITOR environment variable. debian/vim-editmoin.yaml0000664000000000000000000000020711604766372012470 0ustar addon: editmoin description: edit MoinMoin wiki pages in vim files: - syntax/moin1_5.vim - syntax/moin1_6.vim - plugin/moin.vim debian/changelog0000664000000000000000000001250211604766372011056 0ustar editmoin (1.17-1) unstable; urgency=low * New upstream release: - Use sensible-editor instead of vi to pick up the system level editor preference. - Add support for URLs that include query parameters. * Switch to 3.0 source package format. * Move inline change to editmoin.1 to 01_man_ids_from_firefox.patch. Also update it to catch cookies like "MOIN_SESSION_443_ROOT". * Move moin-plugin.vim into debian/, to work better for 3.0 source. * debian/control: Bump Standards-Version to 3.9.2. * Add 02_alternative_cookie_names.patch: Current moin versions use MOIN_SESSION_80_ROOT or MOIN_SESSION_443_ROOT cookie names. Try these before the standard MOIN_SESSION cookie. Thanks Andy Whitcroft for the patch! (LP: #801284) * debian/editmoin.install, debian/rules: Simplify installation of vim plugin. * Add bzr-builddeb configuration (merge mode). -- Martin Pitt Wed, 06 Jul 2011 07:04:53 +0200 editmoin (1.16-1) unstable; urgency=low * New upstream release: - Split editing logic in its own function - avoid showing the note message multiple times - allow arguments in $EDITOR variable * editmoin.1: Add example command how to parse moin wiki IDs from mozilla/firefox cookie database. * debian/control: Fix typo in "vim-addons" in long description. (Closes: #612706) * Drop Pythonic build system; this is only a single-script program, no modules at all, and setup.py installs too much noise around it. Just install the executable and manpage manually. * Move to debhelper level 7 and from cdbs to dh. * Bump Standards-Version to 3.9.1. -- Martin Pitt Fri, 11 Feb 2011 16:22:48 +0100 editmoin (1.15-1) unstable; urgency=low * New upstream release: - Moin used to work with numerical IDs for identification, and editmoin was still based on this model. This release adds support for direct authentication as available in current Moin releases. - The new file ~/.moin_users is now parsed to obtain usernames, supporting the feature above. Shortcuts are also supported in this file. - Added support for textcha question handling. * debian/control: Replace python-dev build dependency (which isn't really required) with just python. * Bump Standards-Version to 3.8.4 (no changes necessary). * Add debian/source/format. Keep 1.0 for now, 3.0 does not work well for VCS maintained packages. -- Martin Pitt Wed, 23 Jun 2010 18:17:52 +0200 editmoin (1.10.1-3) unstable; urgency=low * editmoin: Fix md5 deprecation warning with Python 2.6, thanks to Max Bowsher. (LP: #357221) * debian/control: Add missing misc:Depends, thanks lintian. * debian/control: Bump Standards-Version (no changes necessary). -- Martin Pitt Sun, 03 May 2009 15:17:11 +0200 editmoin (1.10.1-2) unstable; urgency=low * Rebuild against latest python-central. (Closes: #490460) -- Martin Pitt Sun, 13 Jul 2008 11:56:42 +0200 editmoin (1.10.1-1) unstable; urgency=low * New upstream version: - Merged all Debian fixes except the vim modeline addition. - Add moin 1.6 syntax file. - No other changes. - The upstream inclusion of the manpage now makes it fall under GPL. (Closes: #460187) * Revert our vim modeline patch, too, since there are now two different ones, and it looks ugly for users of other editors. * debian/rules: Remove simple-patchsys.mk, we use bzr branches. * debian/editmoin.install: Adapt for multiple moin vim syntax files. * Add moin-plugin.vim: auto file-type plugin for vim, to replace the former vim modeline hack. Install it in debian/rules. * Add debian/vim-editmoin.yaml, a "new vim world order" registry file for the vim plugin. Suggest vim-addon-manager and add a stanza about it to the package description. -- Martin Pitt Wed, 05 Mar 2008 17:53:10 +0100 editmoin (1.9.1-2) unstable; urgency=low * Import package into bzr, branching from upstream trunk (https://code.launchpad.net/~niemeyer/editmoin/trunk). Drop debian/patches and apply them inline, since that's much more convenient for merging. Add Vcs-Bzr: to debian/control. * debian/control: Fix typo in description. (Closes: #459549) * Add editmoin.1: manpage, based on former README. Install it in setup.py. (Closes: #453682) * Remove debian/editmoin.README.debian, superseded by manpage. * editmoin: Use subprocess instead of os.system() to run the editor, to avoid issues with weird $EDITOR values. * editmoin: Fix crash when the first line starting with "@ " comes before the first line starting with "@@". (LP: #190081) -- Martin Pitt Sat, 16 Feb 2008 20:50:45 +0100 editmoin (1.9.1-1) unstable; urgency=low * Initial release to Debian. (Closes: #452946) * debian/patches/01_vim-modeline.patch: Add a vim modeline to automatically enable the moin.vim syntax file. * debian/patches/02_http_auth.patch: - Replace URLopener with FancyURLopener to make HTTP authentication actually work. Thanks to Soren Hansen for the patch. * Add editmoin.README.debian: Upstream tarball does not come with any documentation, take the http://labix.org/editmoin Moin source and mangle it a bit for readability. -- Martin Pitt Sun, 30 Dec 2007 12:40:06 +0100 debian/copyright0000664000000000000000000000202311604766372011134 0ustar editmoin was packaged by Martin Pitt . Initial packaging was on Fri, 25 May 2007. It was downloaded from http://labix.org/editmoin Copyright (c) 2002-2006 Gustavo Niemeyer This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. debian/editmoin.install0000664000000000000000000000022411604766372012402 0ustar moin*.vim /usr/share/vim/addons/syntax debian/moin.vim usr/share/vim/addons/plugin debian/vim-editmoin.yaml usr/share/vim/registry editmoin usr/bin