new release is tagged

This commit is contained in:
lars 2006-12-15 13:48:42 +00:00
parent 25aae11576
commit 33a8c4a1bb
719 changed files with 106587 additions and 0 deletions

View file

@ -0,0 +1,97 @@
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: sense.lab <devel@senselab.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: utf-8\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Show the content of the log file"
msgstr ""
#: Link
msgid "Show log file"
msgstr ""
#: Title.Log
msgid "CryptoBox logfiles"
msgstr ""
#: Text.EmptyLog
msgid "The logfile of the CryptoBox is empty."
msgstr ""
#: Text.Refresh
msgid "Refresh"
msgstr ""
#: Name
msgid "Show event log"
msgstr ""
#: Link
msgid "Event log"
msgstr ""
#: Title.Log
msgid "CryptoBox event log"
msgstr ""
#: Text.ShowAll
msgid "Show all messages"
msgstr ""
#: Text.AtLeastWarnings
msgid "Show warnings and errors"
msgstr ""
#: Text.OnlyErrors
msgid "Show errors only"
msgstr ""
#: Text.AgeOfEvent
msgid "Time passed"
msgstr ""
#: Text.EventText
msgid "Description"
msgstr ""
#: Text.TimeUnits.Days
msgid "days"
msgstr ""
#: Text.TimeUnits.Hours
msgid "hours"
msgstr ""
#: Text.TimeUnits.Minutes
msgid "minutes"
msgstr ""
#: Text.TimeUnits.Seconds
msgid "seconds"
msgstr ""
#: AdviceMessage.EmptyLog.Text
msgid "There are no messages available."
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Title
msgid "No log file configured"
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Text
msgid "The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events."
msgstr ""
#: Help.EventLog
msgid "Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and messages besides a detailed description to info@cryptobox.org."
msgstr ""

View file

@ -0,0 +1,98 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Show the content of the log file"
msgstr ""
#: Link
msgid "Show log file"
msgstr ""
#: Title.Log
msgid "CryptoBox logfiles"
msgstr ""
#: Text.EmptyLog
msgid "The logfile of the CryptoBox is empty."
msgstr ""
#: Text.Refresh
msgid "Refresh"
msgstr ""
#: Name
msgid "Show event log"
msgstr ""
#: Link
msgid "Event log"
msgstr ""
#: Title.Log
msgid "CryptoBox event log"
msgstr ""
#: Text.ShowAll
msgid "Show all messages"
msgstr ""
#: Text.AtLeastWarnings
msgid "Show warnings and errors"
msgstr ""
#: Text.OnlyErrors
msgid "Show errors only"
msgstr ""
#: Text.AgeOfEvent
msgid "Time passed"
msgstr ""
#: Text.EventText
msgid "Description"
msgstr ""
#: Text.TimeUnits.Days
msgid "days"
msgstr ""
#: Text.TimeUnits.Hours
msgid "hours"
msgstr ""
#: Text.TimeUnits.Minutes
msgid "minutes"
msgstr ""
#: Text.TimeUnits.Seconds
msgid "seconds"
msgstr ""
#: AdviceMessage.EmptyLog.Text
msgid "There are no messages available."
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Title
msgid "No log file configured"
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Text
msgid "The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events."
msgstr ""
#: Help.EventLog
msgid "Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and messages besides a detailed description to info@cryptobox.org."
msgstr ""

View file

@ -0,0 +1,98 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Show the content of the log file"
msgstr ""
#: Link
msgid "Show log file"
msgstr ""
#: Title.Log
msgid "CryptoBox logfiles"
msgstr ""
#: Text.EmptyLog
msgid "The logfile of the CryptoBox is empty."
msgstr ""
#: Text.Refresh
msgid "Refresh"
msgstr ""
#: Name
msgid "Show event log"
msgstr ""
#: Link
msgid "Event log"
msgstr ""
#: Title.Log
msgid "CryptoBox event log"
msgstr ""
#: Text.ShowAll
msgid "Show all messages"
msgstr ""
#: Text.AtLeastWarnings
msgid "Show warnings and errors"
msgstr ""
#: Text.OnlyErrors
msgid "Show errors only"
msgstr ""
#: Text.AgeOfEvent
msgid "Time passed"
msgstr ""
#: Text.EventText
msgid "Description"
msgstr ""
#: Text.TimeUnits.Days
msgid "days"
msgstr ""
#: Text.TimeUnits.Hours
msgid "hours"
msgstr ""
#: Text.TimeUnits.Minutes
msgid "minutes"
msgstr ""
#: Text.TimeUnits.Seconds
msgid "seconds"
msgstr ""
#: AdviceMessage.EmptyLog.Text
msgid "There are no messages available."
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Title
msgid "No log file configured"
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Text
msgid "The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events."
msgstr ""
#: Help.EventLog
msgid "Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and messages besides a detailed description to info@cryptobox.org."
msgstr ""

View file

@ -0,0 +1,98 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Show the content of the log file"
msgstr ""
#: Link
msgid "Show log file"
msgstr ""
#: Title.Log
msgid "CryptoBox logfiles"
msgstr ""
#: Text.EmptyLog
msgid "The logfile of the CryptoBox is empty."
msgstr ""
#: Text.Refresh
msgid "Refresh"
msgstr ""
#: Name
msgid "Show event log"
msgstr ""
#: Link
msgid "Event log"
msgstr ""
#: Title.Log
msgid "CryptoBox event log"
msgstr ""
#: Text.ShowAll
msgid "Show all messages"
msgstr ""
#: Text.AtLeastWarnings
msgid "Show warnings and errors"
msgstr ""
#: Text.OnlyErrors
msgid "Show errors only"
msgstr ""
#: Text.AgeOfEvent
msgid "Time passed"
msgstr ""
#: Text.EventText
msgid "Description"
msgstr ""
#: Text.TimeUnits.Days
msgid "days"
msgstr ""
#: Text.TimeUnits.Hours
msgid "hours"
msgstr ""
#: Text.TimeUnits.Minutes
msgid "minutes"
msgstr ""
#: Text.TimeUnits.Seconds
msgid "seconds"
msgstr ""
#: AdviceMessage.EmptyLog.Text
msgid "There are no messages available."
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Title
msgid "No log file configured"
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Text
msgid "The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events."
msgstr ""
#: Help.EventLog
msgid "Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and messages besides a detailed description to info@cryptobox.org."
msgstr ""

View file

@ -0,0 +1,102 @@
msgid ""
msgstr ""
#: Name
msgid "Show the content of the log file"
msgstr "Show the content of the log file"
#: Link
msgid "Show log file"
msgstr "Show log file"
#: Title.Log
msgid "CryptoBox logfiles"
msgstr "CryptoBox logfiles"
#: Text.EmptyLog
msgid "The logfile of the CryptoBox is empty."
msgstr "The logfile of the CryptoBox is empty."
#: Text.Refresh
msgid "Refresh"
msgstr "Refresh"
#: Name
msgid "Show event log"
msgstr "Show event log"
#: Link
msgid "Event log"
msgstr "Event log"
#: Title.Log
msgid "CryptoBox event log"
msgstr "CryptoBox event log"
#: Text.ShowAll
msgid "Show all messages"
msgstr "Show all messages"
#: Text.AtLeastWarnings
msgid "Show warnings and errors"
msgstr "Show warnings and errors"
#: Text.OnlyErrors
msgid "Show errors only"
msgstr "Show errors only"
#: Text.AgeOfEvent
msgid "Time passed"
msgstr "Time passed"
#: Text.EventText
msgid "Description"
msgstr "Description"
#: Text.TimeUnits.Days
msgid "days"
msgstr "days"
#: Text.TimeUnits.Hours
msgid "hours"
msgstr "hours"
#: Text.TimeUnits.Minutes
msgid "minutes"
msgstr "minutes"
#: Text.TimeUnits.Seconds
msgid "seconds"
msgstr "seconds"
#: AdviceMessage.EmptyLog.Text
msgid "There are no messages available."
msgstr "There are no messages available."
#: AdviceMessage.NoLogFileConfigured.Title
msgid "No log file configured"
msgstr "No log file configured"
#: AdviceMessage.NoLogFileConfigured.Text
msgid ""
"The CryptoBox is not configured to log events to a file. Thus it is not "
"possible to review log events."
msgstr ""
"The CryptoBox is not configured to log events to a file. Thus it is not "
"possible to review log events."
#: Help.EventLog
msgid ""
"Here you can see the event log of the CryptoBox. Every message belongs to "
"one of the following groups: information/warning/error as represented by the "
"symbol in the leftmost column. You may choose to see all or only some "
"selected messages. If you encounter any problems with the CryptoBox then you "
"should send the most recent warnings and messages besides a detailed "
"description to info@cryptobox.org."
msgstr ""
"Here you can see the event log of the CryptoBox. Every message belongs to "
"one of the following groups: information/warning/error as represented by the "
"symbol in the leftmost column. You may choose to see all or only some "
"selected messages. If you encounter any problems with the CryptoBox then you "
"should send the most recent warnings and messages besides a detailed "
"description to info@cryptobox.org."

View file

@ -0,0 +1,98 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Show the content of the log file"
msgstr ""
#: Link
msgid "Show log file"
msgstr ""
#: Title.Log
msgid "CryptoBox logfiles"
msgstr ""
#: Text.EmptyLog
msgid "The logfile of the CryptoBox is empty."
msgstr ""
#: Text.Refresh
msgid "Refresh"
msgstr ""
#: Name
msgid "Show event log"
msgstr ""
#: Link
msgid "Event log"
msgstr ""
#: Title.Log
msgid "CryptoBox event log"
msgstr ""
#: Text.ShowAll
msgid "Show all messages"
msgstr ""
#: Text.AtLeastWarnings
msgid "Show warnings and errors"
msgstr ""
#: Text.OnlyErrors
msgid "Show errors only"
msgstr ""
#: Text.AgeOfEvent
msgid "Time passed"
msgstr ""
#: Text.EventText
msgid "Description"
msgstr ""
#: Text.TimeUnits.Days
msgid "days"
msgstr ""
#: Text.TimeUnits.Hours
msgid "hours"
msgstr ""
#: Text.TimeUnits.Minutes
msgid "minutes"
msgstr ""
#: Text.TimeUnits.Seconds
msgid "seconds"
msgstr ""
#: AdviceMessage.EmptyLog.Text
msgid "There are no messages available."
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Title
msgid "No log file configured"
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Text
msgid "The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events."
msgstr ""
#: Help.EventLog
msgid "Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and messages besides a detailed description to info@cryptobox.org."
msgstr ""

View file

@ -0,0 +1,98 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Show the content of the log file"
msgstr ""
#: Link
msgid "Show log file"
msgstr ""
#: Title.Log
msgid "CryptoBox logfiles"
msgstr ""
#: Text.EmptyLog
msgid "The logfile of the CryptoBox is empty."
msgstr ""
#: Text.Refresh
msgid "Refresh"
msgstr ""
#: Name
msgid "Show event log"
msgstr ""
#: Link
msgid "Event log"
msgstr ""
#: Title.Log
msgid "CryptoBox event log"
msgstr ""
#: Text.ShowAll
msgid "Show all messages"
msgstr ""
#: Text.AtLeastWarnings
msgid "Show warnings and errors"
msgstr ""
#: Text.OnlyErrors
msgid "Show errors only"
msgstr ""
#: Text.AgeOfEvent
msgid "Time passed"
msgstr ""
#: Text.EventText
msgid "Description"
msgstr ""
#: Text.TimeUnits.Days
msgid "days"
msgstr ""
#: Text.TimeUnits.Hours
msgid "hours"
msgstr ""
#: Text.TimeUnits.Minutes
msgid "minutes"
msgstr ""
#: Text.TimeUnits.Seconds
msgid "seconds"
msgstr ""
#: AdviceMessage.EmptyLog.Text
msgid "There are no messages available."
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Title
msgid "No log file configured"
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Text
msgid "The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events."
msgstr ""
#: Help.EventLog
msgid "Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and messages besides a detailed description to info@cryptobox.org."
msgstr ""

View file

@ -0,0 +1,98 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Show the content of the log file"
msgstr ""
#: Link
msgid "Show log file"
msgstr ""
#: Title.Log
msgid "CryptoBox logfiles"
msgstr ""
#: Text.EmptyLog
msgid "The logfile of the CryptoBox is empty."
msgstr ""
#: Text.Refresh
msgid "Refresh"
msgstr ""
#: Name
msgid "Show event log"
msgstr ""
#: Link
msgid "Event log"
msgstr ""
#: Title.Log
msgid "CryptoBox event log"
msgstr ""
#: Text.ShowAll
msgid "Show all messages"
msgstr ""
#: Text.AtLeastWarnings
msgid "Show warnings and errors"
msgstr ""
#: Text.OnlyErrors
msgid "Show errors only"
msgstr ""
#: Text.AgeOfEvent
msgid "Time passed"
msgstr ""
#: Text.EventText
msgid "Description"
msgstr ""
#: Text.TimeUnits.Days
msgid "days"
msgstr ""
#: Text.TimeUnits.Hours
msgid "hours"
msgstr ""
#: Text.TimeUnits.Minutes
msgid "minutes"
msgstr ""
#: Text.TimeUnits.Seconds
msgid "seconds"
msgstr ""
#: AdviceMessage.EmptyLog.Text
msgid "There are no messages available."
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Title
msgid "No log file configured"
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Text
msgid "The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events."
msgstr ""
#: Help.EventLog
msgid "Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and messages besides a detailed description to info@cryptobox.org."
msgstr ""

View file

@ -0,0 +1,98 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Show the content of the log file"
msgstr ""
#: Link
msgid "Show log file"
msgstr ""
#: Title.Log
msgid "CryptoBox logfiles"
msgstr ""
#: Text.EmptyLog
msgid "The logfile of the CryptoBox is empty."
msgstr ""
#: Text.Refresh
msgid "Refresh"
msgstr ""
#: Name
msgid "Show event log"
msgstr ""
#: Link
msgid "Event log"
msgstr ""
#: Title.Log
msgid "CryptoBox event log"
msgstr ""
#: Text.ShowAll
msgid "Show all messages"
msgstr ""
#: Text.AtLeastWarnings
msgid "Show warnings and errors"
msgstr ""
#: Text.OnlyErrors
msgid "Show errors only"
msgstr ""
#: Text.AgeOfEvent
msgid "Time passed"
msgstr ""
#: Text.EventText
msgid "Description"
msgstr ""
#: Text.TimeUnits.Days
msgid "days"
msgstr ""
#: Text.TimeUnits.Hours
msgid "hours"
msgstr ""
#: Text.TimeUnits.Minutes
msgid "minutes"
msgstr ""
#: Text.TimeUnits.Seconds
msgid "seconds"
msgstr ""
#: AdviceMessage.EmptyLog.Text
msgid "There are no messages available."
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Title
msgid "No log file configured"
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Text
msgid "The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events."
msgstr ""
#: Help.EventLog
msgid "Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and messages besides a detailed description to info@cryptobox.org."
msgstr ""

View file

@ -0,0 +1,98 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Show the content of the log file"
msgstr ""
#: Link
msgid "Show log file"
msgstr ""
#: Title.Log
msgid "CryptoBox logfiles"
msgstr ""
#: Text.EmptyLog
msgid "The logfile of the CryptoBox is empty."
msgstr ""
#: Text.Refresh
msgid "Refresh"
msgstr ""
#: Name
msgid "Show event log"
msgstr ""
#: Link
msgid "Event log"
msgstr ""
#: Title.Log
msgid "CryptoBox event log"
msgstr ""
#: Text.ShowAll
msgid "Show all messages"
msgstr ""
#: Text.AtLeastWarnings
msgid "Show warnings and errors"
msgstr ""
#: Text.OnlyErrors
msgid "Show errors only"
msgstr ""
#: Text.AgeOfEvent
msgid "Time passed"
msgstr ""
#: Text.EventText
msgid "Description"
msgstr ""
#: Text.TimeUnits.Days
msgid "days"
msgstr ""
#: Text.TimeUnits.Hours
msgid "hours"
msgstr ""
#: Text.TimeUnits.Minutes
msgid "minutes"
msgstr ""
#: Text.TimeUnits.Seconds
msgid "seconds"
msgstr ""
#: AdviceMessage.EmptyLog.Text
msgid "There are no messages available."
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Title
msgid "No log file configured"
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Text
msgid "The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events."
msgstr ""
#: Help.EventLog
msgid "Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and messages besides a detailed description to info@cryptobox.org."
msgstr ""

View file

@ -0,0 +1,98 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Show the content of the log file"
msgstr ""
#: Link
msgid "Show log file"
msgstr ""
#: Title.Log
msgid "CryptoBox logfiles"
msgstr ""
#: Text.EmptyLog
msgid "The logfile of the CryptoBox is empty."
msgstr ""
#: Text.Refresh
msgid "Refresh"
msgstr ""
#: Name
msgid "Show event log"
msgstr ""
#: Link
msgid "Event log"
msgstr ""
#: Title.Log
msgid "CryptoBox event log"
msgstr ""
#: Text.ShowAll
msgid "Show all messages"
msgstr ""
#: Text.AtLeastWarnings
msgid "Show warnings and errors"
msgstr ""
#: Text.OnlyErrors
msgid "Show errors only"
msgstr ""
#: Text.AgeOfEvent
msgid "Time passed"
msgstr ""
#: Text.EventText
msgid "Description"
msgstr ""
#: Text.TimeUnits.Days
msgid "days"
msgstr ""
#: Text.TimeUnits.Hours
msgid "hours"
msgstr ""
#: Text.TimeUnits.Minutes
msgid "minutes"
msgstr ""
#: Text.TimeUnits.Seconds
msgid "seconds"
msgstr ""
#: AdviceMessage.EmptyLog.Text
msgid "There are no messages available."
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Title
msgid "No log file configured"
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Text
msgid "The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events."
msgstr ""
#: Help.EventLog
msgid "Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and messages besides a detailed description to info@cryptobox.org."
msgstr ""

View file

@ -0,0 +1,98 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Show the content of the log file"
msgstr ""
#: Link
msgid "Show log file"
msgstr ""
#: Title.Log
msgid "CryptoBox logfiles"
msgstr ""
#: Text.EmptyLog
msgid "The logfile of the CryptoBox is empty."
msgstr ""
#: Text.Refresh
msgid "Refresh"
msgstr ""
#: Name
msgid "Show event log"
msgstr ""
#: Link
msgid "Event log"
msgstr ""
#: Title.Log
msgid "CryptoBox event log"
msgstr ""
#: Text.ShowAll
msgid "Show all messages"
msgstr ""
#: Text.AtLeastWarnings
msgid "Show warnings and errors"
msgstr ""
#: Text.OnlyErrors
msgid "Show errors only"
msgstr ""
#: Text.AgeOfEvent
msgid "Time passed"
msgstr ""
#: Text.EventText
msgid "Description"
msgstr ""
#: Text.TimeUnits.Days
msgid "days"
msgstr ""
#: Text.TimeUnits.Hours
msgid "hours"
msgstr ""
#: Text.TimeUnits.Minutes
msgid "minutes"
msgstr ""
#: Text.TimeUnits.Seconds
msgid "seconds"
msgstr ""
#: AdviceMessage.EmptyLog.Text
msgid "There are no messages available."
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Title
msgid "No log file configured"
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Text
msgid "The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events."
msgstr ""
#: Help.EventLog
msgid "Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and messages besides a detailed description to info@cryptobox.org."
msgstr ""

View file

@ -0,0 +1,98 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Show the content of the log file"
msgstr ""
#: Link
msgid "Show log file"
msgstr ""
#: Title.Log
msgid "CryptoBox logfiles"
msgstr ""
#: Text.EmptyLog
msgid "The logfile of the CryptoBox is empty."
msgstr ""
#: Text.Refresh
msgid "Refresh"
msgstr ""
#: Name
msgid "Show event log"
msgstr ""
#: Link
msgid "Event log"
msgstr ""
#: Title.Log
msgid "CryptoBox event log"
msgstr ""
#: Text.ShowAll
msgid "Show all messages"
msgstr ""
#: Text.AtLeastWarnings
msgid "Show warnings and errors"
msgstr ""
#: Text.OnlyErrors
msgid "Show errors only"
msgstr ""
#: Text.AgeOfEvent
msgid "Time passed"
msgstr ""
#: Text.EventText
msgid "Description"
msgstr ""
#: Text.TimeUnits.Days
msgid "days"
msgstr ""
#: Text.TimeUnits.Hours
msgid "hours"
msgstr ""
#: Text.TimeUnits.Minutes
msgid "minutes"
msgstr ""
#: Text.TimeUnits.Seconds
msgid "seconds"
msgstr ""
#: AdviceMessage.EmptyLog.Text
msgid "There are no messages available."
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Title
msgid "No log file configured"
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Text
msgid "The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events."
msgstr ""
#: Help.EventLog
msgid "Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and messages besides a detailed description to info@cryptobox.org."
msgstr ""

View file

@ -0,0 +1,98 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Show the content of the log file"
msgstr ""
#: Link
msgid "Show log file"
msgstr ""
#: Title.Log
msgid "CryptoBox logfiles"
msgstr ""
#: Text.EmptyLog
msgid "The logfile of the CryptoBox is empty."
msgstr ""
#: Text.Refresh
msgid "Refresh"
msgstr ""
#: Name
msgid "Show event log"
msgstr ""
#: Link
msgid "Event log"
msgstr ""
#: Title.Log
msgid "CryptoBox event log"
msgstr ""
#: Text.ShowAll
msgid "Show all messages"
msgstr ""
#: Text.AtLeastWarnings
msgid "Show warnings and errors"
msgstr ""
#: Text.OnlyErrors
msgid "Show errors only"
msgstr ""
#: Text.AgeOfEvent
msgid "Time passed"
msgstr ""
#: Text.EventText
msgid "Description"
msgstr ""
#: Text.TimeUnits.Days
msgid "days"
msgstr ""
#: Text.TimeUnits.Hours
msgid "hours"
msgstr ""
#: Text.TimeUnits.Minutes
msgid "minutes"
msgstr ""
#: Text.TimeUnits.Seconds
msgid "seconds"
msgstr ""
#: AdviceMessage.EmptyLog.Text
msgid "There are no messages available."
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Title
msgid "No log file configured"
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Text
msgid "The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events."
msgstr ""
#: Help.EventLog
msgid "Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and messages besides a detailed description to info@cryptobox.org."
msgstr ""

View file

@ -0,0 +1,98 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Show the content of the log file"
msgstr ""
#: Link
msgid "Show log file"
msgstr ""
#: Title.Log
msgid "CryptoBox logfiles"
msgstr ""
#: Text.EmptyLog
msgid "The logfile of the CryptoBox is empty."
msgstr ""
#: Text.Refresh
msgid "Refresh"
msgstr ""
#: Name
msgid "Show event log"
msgstr ""
#: Link
msgid "Event log"
msgstr ""
#: Title.Log
msgid "CryptoBox event log"
msgstr ""
#: Text.ShowAll
msgid "Show all messages"
msgstr ""
#: Text.AtLeastWarnings
msgid "Show warnings and errors"
msgstr ""
#: Text.OnlyErrors
msgid "Show errors only"
msgstr ""
#: Text.AgeOfEvent
msgid "Time passed"
msgstr ""
#: Text.EventText
msgid "Description"
msgstr ""
#: Text.TimeUnits.Days
msgid "days"
msgstr ""
#: Text.TimeUnits.Hours
msgid "hours"
msgstr ""
#: Text.TimeUnits.Minutes
msgid "minutes"
msgstr ""
#: Text.TimeUnits.Seconds
msgid "seconds"
msgstr ""
#: AdviceMessage.EmptyLog.Text
msgid "There are no messages available."
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Title
msgid "No log file configured"
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Text
msgid "The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events."
msgstr ""
#: Help.EventLog
msgid "Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and messages besides a detailed description to info@cryptobox.org."
msgstr ""

View file

@ -0,0 +1,98 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Show the content of the log file"
msgstr ""
#: Link
msgid "Show log file"
msgstr ""
#: Title.Log
msgid "CryptoBox logfiles"
msgstr ""
#: Text.EmptyLog
msgid "The logfile of the CryptoBox is empty."
msgstr ""
#: Text.Refresh
msgid "Refresh"
msgstr ""
#: Name
msgid "Show event log"
msgstr ""
#: Link
msgid "Event log"
msgstr ""
#: Title.Log
msgid "CryptoBox event log"
msgstr ""
#: Text.ShowAll
msgid "Show all messages"
msgstr ""
#: Text.AtLeastWarnings
msgid "Show warnings and errors"
msgstr ""
#: Text.OnlyErrors
msgid "Show errors only"
msgstr ""
#: Text.AgeOfEvent
msgid "Time passed"
msgstr ""
#: Text.EventText
msgid "Description"
msgstr ""
#: Text.TimeUnits.Days
msgid "days"
msgstr ""
#: Text.TimeUnits.Hours
msgid "hours"
msgstr ""
#: Text.TimeUnits.Minutes
msgid "minutes"
msgstr ""
#: Text.TimeUnits.Seconds
msgid "seconds"
msgstr ""
#: AdviceMessage.EmptyLog.Text
msgid "There are no messages available."
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Title
msgid "No log file configured"
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Text
msgid "The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events."
msgstr ""
#: Help.EventLog
msgid "Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and messages besides a detailed description to info@cryptobox.org."
msgstr ""

View file

@ -0,0 +1,98 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: CryptoBox-Server 0.3\n"
"Report-Msgid-Bugs-To: translate@cryptobox.org\n"
"POT-Creation-Date: 2006-11-28 05:04+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Translate Toolkit 0.10.1\n"
#: Name
msgid "Show the content of the log file"
msgstr ""
#: Link
msgid "Show log file"
msgstr ""
#: Title.Log
msgid "CryptoBox logfiles"
msgstr ""
#: Text.EmptyLog
msgid "The logfile of the CryptoBox is empty."
msgstr ""
#: Text.Refresh
msgid "Refresh"
msgstr ""
#: Name
msgid "Show event log"
msgstr ""
#: Link
msgid "Event log"
msgstr ""
#: Title.Log
msgid "CryptoBox event log"
msgstr ""
#: Text.ShowAll
msgid "Show all messages"
msgstr ""
#: Text.AtLeastWarnings
msgid "Show warnings and errors"
msgstr ""
#: Text.OnlyErrors
msgid "Show errors only"
msgstr ""
#: Text.AgeOfEvent
msgid "Time passed"
msgstr ""
#: Text.EventText
msgid "Description"
msgstr ""
#: Text.TimeUnits.Days
msgid "days"
msgstr ""
#: Text.TimeUnits.Hours
msgid "hours"
msgstr ""
#: Text.TimeUnits.Minutes
msgid "minutes"
msgstr ""
#: Text.TimeUnits.Seconds
msgid "seconds"
msgstr ""
#: AdviceMessage.EmptyLog.Text
msgid "There are no messages available."
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Title
msgid "No log file configured"
msgstr ""
#: AdviceMessage.NoLogFileConfigured.Text
msgid "The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events."
msgstr ""
#: Help.EventLog
msgid "Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and messages besides a detailed description to info@cryptobox.org."
msgstr ""

View file

@ -0,0 +1,30 @@
Name = Show event log
Link = Event log
Title.Log = CryptoBox event log
Text {
ShowAll = Show all messages
AtLeastWarnings = Show warnings and errors
OnlyErrors = Show errors only
AgeOfEvent = Time passed
EventText = Description
TimeUnits {
Days = days
Hours = hours
Minutes = minutes
Seconds = seconds
}
}
Help.EventLog = Here you can see the event log of the CryptoBox. Every message belongs to one of the following groups: information/warning/error as represented by the symbol in the leftmost column. You may choose to see all or only some selected messages. If you encounter any problems with the CryptoBox then you should send the most recent warnings and messages besides a detailed description to info@cryptobox.org.
AdviceMessage {
EmptyLog.Text = There are no messages available.
NoLogFileConfigured {
Title = No log file configured
Text = The CryptoBox is not configured to log events to a file. Thus it is not possible to review log events.
}
}

View file

@ -0,0 +1,15 @@
#log table.log td.level img {
width: 24px;
height: 24px;
vertical-align: middle;
}
#log table.log td.time {
padding: 0 5px 0 3px;
}
#log table.log td.text {
font-size: 0.9em;
font-family: monospace;
}

194
v0.3/plugins/logs/logs.py Normal file
View file

@ -0,0 +1,194 @@
#
# Copyright 2006 sense.lab e.V.
#
# This file is part of the CryptoBox.
#
# The CryptoBox 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.
#
# The CryptoBox 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 the CryptoBox; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
"""The logs feature of the CryptoBox.
"""
__revision__ = "$Id"
import cryptobox.plugins.base
import os
import re
import datetime
LOG_LEVELS = [ 'DEBUG', 'INFO', 'NOTICE', 'WARNING', 'ERROR' ]
LINE_REGEX = re.compile(r"(?P<year>\d{4})-(?P<month>\d{2})-(?P<day>\d{2}) " \
+ r"(?P<hour>\d{2}):(?P<minute>\d{2}):\d{2},\d{3} (?P<level>" \
+ "|".join([ "(?:%s)" % e for e in LOG_LEVELS]) + r"): (?P<text>.*)$")
class logs(cryptobox.plugins.base.CryptoBoxPlugin):
"""The logs feature of the CryptoBox.
"""
plugin_capabilities = [ "system" ]
plugin_visibility = [ "preferences" ]
request_auth = False
rank = 90
def do_action(self, lines=50, size=3000, level=None):
"""Show the latest part of the log file.
"""
## filter input
try:
lines = int(lines)
if lines <= 0:
raise(ValueError)
except ValueError:
self.cbox.log.info("[logs] invalid line number: %s" % str(lines))
lines = 50
try:
size = int(size)
if size <= 0:
raise(ValueError)
except ValueError:
self.cbox.log.info("[logs] invalid log size: %s" % str(size))
size = 3000
if not level is None:
level = str(level)
if not level in LOG_LEVELS:
self.cbox.log.info("[logs] invalid log level: %s" % str(level))
level = None
for (index, line) in enumerate(self.__filter_log_content(lines, size, level)):
self.__set_line_hdf_data(self.hdf_prefix + "Content.%d" % index, line)
self.hdf[self.hdf_prefix + "StyleSheetFile"] = os.path.abspath(os.path.join(
self.plugin_dir, "logs.css"))
self.hdf[self.hdf_prefix + "Destination"] = self.cbox.prefs["Log"]["Destination"].lower()
return "show_log"
def get_status(self):
"""The current status includes the log configuration details.
"""
return "%s:%s:%s" % (
self.cbox.prefs["Log"]["Level"],
self.cbox.prefs["Log"]["Destination"],
self.cbox.prefs["Log"]["Details"])
def __filter_log_content(self, lines, max_size, level):
"""Filter, sort and shorten the log content.
"""
if level and level in LOG_LEVELS:
filtered_levels = LOG_LEVELS[:]
## only the given and higher levels are accepted
while filtered_levels[0] != level:
del filtered_levels[0]
content = []
current_length = 0
for line in self.__get_log_data():
for one_level in filtered_levels:
if line.find(one_level) != -1:
break
else:
## the line does not contain an appropriate level name
continue
## we found a line that fits
content.append(line)
current_length += len(line)
if lines and len(content) >= lines:
break
if max_size and current_length >= max_size:
break
else:
content = self.__get_log_data(lines, max_size)
return content
def __set_line_hdf_data(self, hdf_prefix, line):
"""Parse the log line for time and log level.
If parsing fails, then the output line is simply displayed without
meta information.
"""
self.hdf[hdf_prefix + ".Text"] = line.strip()
match = LINE_REGEX.match(line)
if not match:
## we could not parse the line - just return the text without meta info
return
## matching was successfully - we can parse the line for details
## calculate time difference of log line (aka: age of event)
try:
(year, month, day, hour, minute) = match.group(
'year', 'month', 'day', 'hour', 'minute')
(year, month, day, hour, minute) = \
(int(year), int(month), int(day), int(hour), int(minute))
## timediff is a timedelta object
timediff = datetime.datetime.today() - \
datetime.datetime(year, month, day, hour, minute)
## the time units (see below) correspond to the names within the language
## file: Text.TimeUnits.Days ...
if timediff.days >= 1:
self.hdf[hdf_prefix + ".TimeDiff.Unit"] = 'Days'
self.hdf[hdf_prefix + ".TimeDiff.Value"] = timediff.days
elif timediff.seconds >= 3600:
self.hdf[hdf_prefix + ".TimeDiff.Unit"] = 'Hours'
self.hdf[hdf_prefix + ".TimeDiff.Value"] = timediff.seconds / 3600
elif timediff.seconds >= 60:
self.hdf[hdf_prefix + ".TimeDiff.Unit"] = 'Minutes'
self.hdf[hdf_prefix + ".TimeDiff.Value"] = timediff.seconds / 60
else:
self.hdf[hdf_prefix + ".TimeDiff.Unit"] = 'Seconds'
self.hdf[hdf_prefix + ".TimeDiff.Value"] = timediff.seconds
except (OverflowError, TypeError, ValueError, IndexError), err_msg:
pass
## retrieve the level
try:
self.hdf[hdf_prefix + ".Level"] = match.group('level')
except IndexError:
pass
try:
self.hdf[hdf_prefix + ".Text"] = match.group('text').strip()
except IndexError:
pass
def __get_log_data(self, lines=None, max_size=None):
"""get the most recent log entries of the log file
the maximum number and size of these entries can be limited by
'lines' and 'max_size'
"""
# return nothing if the currently selected log output is not a file
try:
if self.cbox.prefs["Log"]["Destination"].upper() != "FILE":
return []
log_file = self.cbox.prefs["Log"]["Details"]
except KeyError:
self.cbox.log.error(
"could not evaluate one of the following config settings: "
+ "[Log]->Destination or [Log]->Details")
return []
try:
fdesc = open(log_file, "r")
if max_size:
fdesc.seek(-max_size, 2) # seek relative to the end of the file
content = fdesc.readlines()
fdesc.close()
except IOError:
self.cbox.log.warn("failed to read the log file (%s)" % log_file)
return []
if lines:
content = content[-lines:]
content.reverse()
return content

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View file

@ -0,0 +1,73 @@
<?cs # $Id$ ?>
<style type="text/css">
<?cs include:Data.Plugins.logs.StyleSheetFile ?>
</style>
<h1><?cs var:html_escape(Lang.Plugins.logs.Title.Log) ?></h1>
<?cs call:handle_messages() ?>
<?cs call:show_help(Lang.Plugins.logs.Help.EventLog) ?>
<table border="0" align="center"><tr>
<td><?cs call:print_form_header("log-all", "logs") ?>
<button type="submit" value="refresh"><?cs
var:html_escape(Lang.Plugins.logs.Text.ShowAll) ?></button>
</form></td>
<td><?cs call:print_form_header("log-warnings", "logs") ?>
<input type="hidden" name="level" value="WARNING" />
<button type="submit" value="refresh"><?cs
var:html_escape(Lang.Plugins.logs.Text.AtLeastWarnings) ?></button>
</form></td>
<td><?cs call:print_form_header("log-only-error", "logs") ?>
<input type="hidden" name="level" value="ERROR" />
<button type="submit" value="refresh"><?cs
var:html_escape(Lang.Plugins.logs.Text.OnlyErrors) ?></button>
</form></td>
</tr></table>
<div id="log">
<?cs if:Data.Plugins.logs.Destination != "file" ?>
<?cs call:hint("Plugins.logs.NoLogFileConfigured") ?>
<?cs elif:subcount(Data.Plugins.logs.Content) > 0 ?>
<table class="log"><?cs # the first line dictates if we show meta info or not
?><?cs if:Data.Plugins.logs.Content.0.Level ?>
<tr><th></th>
<th><?cs var:html_escape(Lang.Plugins.logs.Text.AgeOfEvent) ?></th>
<th><?cs var:html_escape(Lang.Plugins.logs.Text.EventText) ?></th>
</tr>
<?cs loop:index = #0, subcount(Data.Plugins.logs.Content)-1, #1 ?><?cs
with:x=Data.Plugins.logs.Content[index] ?><?cs
if:x.Text ?><?cs
if:x.Level == "ERROR" ?><?cs
set:meta_file="dialog-error_tango.gif" ?><?cs
elif:x.Level == "WARNING" ?><?cs
set:meta_file="dialog-warning_tango.gif" ?><?cs
else ?><?cs
set:meta_file="dialog-information_tango.gif" ?><?cs
/if ?>
<tr><td class="level"><img src="<?cs
call:link("cryptobox-misc/" + meta_file, "", "", "", "") ?>"
alt="symbol: <?cs var:html_escape(x.Level) ?>" /></td>
<td class="time"><?cs if:x.TimeDiff.Value ?><?cs
var:html_escape(x.TimeDiff.Value) ?>&nbsp;<?cs
var:html_escape(Lang.Plugins.logs.Text.TimeUnits[
x.TimeDiff.Unit]) ?><?cs
/if ?></td>
<td class="text"><?cs var:html_escape(x.Text) ?></td></tr><?cs
/if ?><?cs /with ?><?cs /loop ?><?cs
else ?><?cs
loop:index = #0, subcount(Data.Plugins.logs.Content)-1, #1 ?><?cs
with:x=Data.Plugins.logs.Content[index] ?>
<tr><td><?cs var:html_escape(x.Text) ?></td></tr><?cs
/with ?><?cs /loop ?><?cs
/if ?>
</table>
<?cs else ?>
<?cs call:hint("Plugins.logs.EmptyLog") ?>
<?cs /if ?>
</div>

View file

@ -0,0 +1,65 @@
#
# Copyright 2006 sense.lab e.V.
#
# This file is part of the CryptoBox.
#
# The CryptoBox 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.
#
# The CryptoBox 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 the CryptoBox; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
__revision__ = "$Id"
import cryptobox.web.testclass
class unittests(cryptobox.web.testclass.WebInterfaceTestClass):
def test_read_logs(self):
"""Read the log files.
"""
log_url = self.url + "logs"
self.register_auth(log_url)
self.cmd.go(log_url)
self.cmd.find('<table class="log">')
def test_write_logs(self):
"""Send a log message and read it again.
"""
log_text = "unittest - just a marker - please ignore"
self.cbox.log.error(log_text)
log_url = self.url + "logs"
self.register_auth(log_url)
self.cmd.go(log_url + "?level=ERROR")
self.cmd.find(log_text)
def test_invalid_args(self):
"""Send various invalid input combinations to the 'log' plugin.
"""
log_url = self.url + "logs"
self.cmd.go(log_url + "?lines=10")
self.cmd.find('<table class="log">')
self.cmd.go(log_url + "?lines=0")
self.cmd.find('<table class="log">')
self.cmd.go(log_url + "?lines=x")
self.cmd.find('<table class="log">')
self.cmd.go(log_url + "?size=1000")
self.cmd.find('<table class="log">')
self.cmd.go(log_url + "?size=0")
self.cmd.find('<table class="log">')
self.cmd.go(log_url + "?size=x")
self.cmd.find('<table class="log">')
self.cmd.go(log_url + "?level=foobar")
self.cmd.find('<table class="log">')
self.cmd.go(log_url + r"?level=kfj!^(]")
self.cmd.find('<table class="log">')