[tryton-debian-vcs] tryton-modules-calendar-classification branch upstream updated. upstream/2.8.0-1-gc7290e1
git repository hosting
tryton-debian-vcs at m9s.biz
Mon Nov 25 19:33:29 UTC 2013
The following commit has been merged in the upstream branch:
http://debian.tryton.org/gitweb/?p=packages/tryton-modules-calendar-classification.git;a=commitdiff;h=upstream/2.8.0-1-gc7290e1
commit c7290e1089ddcb875fb92d277e69f2e9508357e3
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sun Nov 24 17:26:34 2013 +0100
Adding upstream version 3.0.0.
diff --git a/CHANGELOG b/CHANGELOG
index b82e27d..8376d07 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 3.0.0 - 2013-10-21
+* Bug fixes (see mercurial logs for details)
+
Version 2.8.0 - 2013-04-22
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index c38777f..8a69a7d 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
Metadata-Version: 1.1
Name: trytond_calendar_classification
-Version: 2.8.0
+Version: 3.0.0
Summary: Tryton module to add classification access to events
Home-page: http://www.tryton.org/
Author: Tryton
Author-email: UNKNOWN
License: GPL-3
-Download-URL: http://downloads.tryton.org/2.8/
+Download-URL: http://downloads.tryton.org/3.0/
Description: trytond_calendar_classification
===============================
@@ -60,6 +60,7 @@ Classifier: Natural Language :: English
Classifier: Natural Language :: French
Classifier: Natural Language :: German
Classifier: Natural Language :: Russian
+Classifier: Natural Language :: Slovenian
Classifier: Natural Language :: Spanish
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.6
diff --git a/calendar_.py b/calendar_.py
index c0dfd8c..bef4230 100644
--- a/calendar_.py
+++ b/calendar_.py
@@ -24,7 +24,7 @@ class Event:
@classmethod
def search(cls, domain, offset=0, limit=None, order=None, count=False,
- query_string=False):
+ query=False):
if Transaction().user:
domain = domain[:]
domain = [domain,
@@ -40,7 +40,7 @@ class Event:
],
]
return super(Event, cls).search(domain, offset=offset, limit=limit,
- order=order, count=count, query_string=query_string)
+ order=order, count=count, query=query)
@classmethod
def create(cls, vlist):
@@ -89,19 +89,19 @@ class Event:
def read(cls, ids, fields_names=None):
Rule = Pool().get('ir.rule')
cursor = Transaction().cursor
+ table = cls.__table__()
if len(set(ids)) != cls.search([('id', 'in', ids)],
count=True):
cls.raise_user_error('access_error', cls.__doc__)
writable_ids = []
- domain1, domain2 = Rule.domain_get(cls.__name__, mode='write')
- if domain1:
+ domain = Rule.domain_get(cls.__name__, mode='write')
+ if domain:
for i in range(0, len(ids), cursor.IN_MAX):
sub_ids = ids[i:i + cursor.IN_MAX]
- red_sql, red_ids = reduce_ids('id', sub_ids)
- cursor.execute('SELECT id FROM "' + cls._table + '" '
- 'WHERE ' + red_sql + ' AND (' + domain1 + ')',
- red_ids + domain2)
+ red_sql = reduce_ids(table.id, sub_ids)
+ cursor.execute(*table.select(table.id,
+ where=red_sql & table.id.in_(domain)))
writable_ids.extend(x[0] for x in cursor.fetchall())
else:
writable_ids = ids
diff --git a/locale/fr_FR.po b/locale/fr_FR.po
index d0b9c6d..4b684c3 100644
--- a/locale/fr_FR.po
+++ b/locale/fr_FR.po
@@ -7,13 +7,5 @@ msgid "Busy"
msgstr "Occupé"
msgctxt "error:calendar.event:"
-msgid "Busy"
-msgstr "Occupé"
-
-msgctxt "error:calendar.event:"
-msgid "Free"
-msgstr "Libre"
-
-msgctxt "error:calendar.event:"
msgid "Free"
msgstr "Libre"
diff --git a/locale/sl_SI.po b/locale/sl_SI.po
new file mode 100644
index 0000000..e9ceab5
--- /dev/null
+++ b/locale/sl_SI.po
@@ -0,0 +1,11 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "error:calendar.event:"
+msgid "Busy"
+msgstr "Zasedeno"
+
+msgctxt "error:calendar.event:"
+msgid "Free"
+msgstr "Prosto"
diff --git a/setup.py b/setup.py
index 356c0d7..7467f5c 100644
--- a/setup.py
+++ b/setup.py
@@ -62,6 +62,7 @@ setup(name='trytond_calendar_classification',
'Natural Language :: French',
'Natural Language :: German',
'Natural Language :: Russian',
+ 'Natural Language :: Slovenian',
'Natural Language :: Spanish',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.6',
diff --git a/tryton.cfg b/tryton.cfg
index c636627..484a029 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=2.8.0
+version=3.0.0
depends:
calendar
ir
diff --git a/trytond_calendar_classification.egg-info/PKG-INFO b/trytond_calendar_classification.egg-info/PKG-INFO
index 7749c45..e7abb11 100644
--- a/trytond_calendar_classification.egg-info/PKG-INFO
+++ b/trytond_calendar_classification.egg-info/PKG-INFO
@@ -1,12 +1,12 @@
Metadata-Version: 1.1
Name: trytond-calendar-classification
-Version: 2.8.0
+Version: 3.0.0
Summary: Tryton module to add classification access to events
Home-page: http://www.tryton.org/
Author: Tryton
Author-email: UNKNOWN
License: GPL-3
-Download-URL: http://downloads.tryton.org/2.8/
+Download-URL: http://downloads.tryton.org/3.0/
Description: trytond_calendar_classification
===============================
@@ -60,6 +60,7 @@ Classifier: Natural Language :: English
Classifier: Natural Language :: French
Classifier: Natural Language :: German
Classifier: Natural Language :: Russian
+Classifier: Natural Language :: Slovenian
Classifier: Natural Language :: Spanish
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.6
diff --git a/trytond_calendar_classification.egg-info/SOURCES.txt b/trytond_calendar_classification.egg-info/SOURCES.txt
index e73b944..ff569b1 100644
--- a/trytond_calendar_classification.egg-info/SOURCES.txt
+++ b/trytond_calendar_classification.egg-info/SOURCES.txt
@@ -18,6 +18,7 @@ locale/es_ES.po
locale/fr_FR.po
locale/nl_NL.po
locale/ru_RU.po
+locale/sl_SI.po
trytond_calendar_classification.egg-info/PKG-INFO
trytond_calendar_classification.egg-info/SOURCES.txt
trytond_calendar_classification.egg-info/dependency_links.txt
diff --git a/trytond_calendar_classification.egg-info/requires.txt b/trytond_calendar_classification.egg-info/requires.txt
index 7a60220..b9ade18 100644
--- a/trytond_calendar_classification.egg-info/requires.txt
+++ b/trytond_calendar_classification.egg-info/requires.txt
@@ -1,3 +1,3 @@
vobject >= 0.8.0
-trytond_calendar >= 2.8, < 2.9
-trytond >= 2.8, < 2.9
\ No newline at end of file
+trytond_calendar >= 3.0, < 3.1
+trytond >= 3.0, < 3.1
\ No newline at end of file
--
tryton-modules-calendar-classification
More information about the tryton-debian-vcs
mailing list