summaryrefslogtreecommitdiff
path: root/portato/gui/session.py
blob: a37cd85730b2c672ec9f176eac90a93c7722f963 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# -*- coding: utf-8 -*-
#
# File: portato/gui/session.py
# This file is part of the Portato-Project, a graphical portage-frontend.
#
# Copyright (C) 2008 René 'Necoro' Neumann
# This is free software.  You may redistribute copies of it under the terms of
# the GNU General Public License version 2.
# There is NO WARRANTY, to the extent permitted by law.
#
# Written by René 'Necoro' Neumann <necoro@necoro.net>

from ..helper import debug

# the current version for saved sessions
# change this, whenever the change is incompatible with previous versions
SESSION_VERSION = 1

class SessionException (Exception):

	error = _("Version mismatch.")
	def __init__ (self, got, expected):
		self.got = got
		self.expected = expected

	def __str__ (self):
		return "%s %s" % (self.error, (_("Got '%d' - expected '%d'.") % (self.got, self.expected)))

class OldSessionException (SessionException):
	error = _("Current session format is too old.")

class NewSessionException (SessionException):
	error = _("Current session format is newer than this version supports.")
extensions: introduce system extensionsJason A. Donenfeld2-7/+16 2016-12-211password2pass: modernizationAlex Dunn1-15/+23 2016-12-21extensions: make opt-inJason A. Donenfeld2-15/+22 2016-12-21Add signaturesJason A. Donenfeld2-0/+31 2016-12-20Add extensionsJason A. Donenfeld2-3/+27 2016-12-20generate: use /dev/urandom directlyJason A. Donenfeld4-14/+28 Passing to tr using the "pick and discard" technique is more straight- forwardly correct and less error-prone. It also allows users to select their own character sets to be passed to tr. 2016-02-07dmenu: read likes -rJason A. Donenfeld1-1/+1 2016-02-06zsh-completion: add prefix zstyleBenjamin Richter1-1/+11 This option can be used to select a different pass repository for completion. A configuration example is given inside the completion file. 2016-02-06Make gpg errors fatalJason A. Donenfeld1-5/+5 2016-02-06Moved to webpageJason A. Donenfeld1-7/+0