[shared] Added appy.shared.data.vatEuroCountries, which is the list of countries of the euro zone.

This commit is contained in:
Gaetan Delannay 2012-12-20 16:09:05 +01:00
parent 6d0d2ea591
commit bba7c589be
3 changed files with 10 additions and 3 deletions

View file

@ -214,7 +214,10 @@ function setSubTitles(value) {
// Function that toggles the value for showing/hiding sub-titles.
function toggleSubTitles() {
// Get the current value
var value = readCookie('showSubTitles');
if (value == null) value = 'true';
// Toggle the value
var newValue = 'true';
if (value == 'true') newValue = 'false';
setSubTitles(newValue);

View file

@ -437,8 +437,7 @@ class Renderer:
try:
from appy.pod.converter import Converter, ConverterError
try:
Converter(resultOdtName, resultType,
self.ooPort).run()
Converter(resultOdtName, resultType, self.ooPort).run()
except ConverterError, ce:
raise PodError(CONVERT_ERROR % str(ce))
except ImportError:

View file

@ -163,6 +163,11 @@ nativeNames = {
# List of languages having direction right-to-left (RTL) -----------------------
rtlLanguages = ('ar', 'he', 'fa')
# Countries of the "euro" zone
vatEuroCountries = ('AT', 'BE', 'BG', 'CY', 'CZ', 'DE', 'DK', 'EE', 'GR', 'ES',
'FI', 'FR', 'GB', 'HU', 'IE', 'IT', 'LT', 'LU', 'LV', 'MT',
'NL', 'PL' 'PT', 'RO', 'SE', 'SI', 'SK')
# ------------------------------------------------------------------------------
class Languages:
'''This class gives access to the language codes and names as standardized