[tryton-debian-vcs] tryton-modules-dashboard branch upstream updated. upstream/2.8.0-1-g39085c6
git repository hosting
tryton-debian-vcs at m9s.biz
Mon Nov 25 19:34:39 UTC 2013
The following commit has been merged in the upstream branch:
http://debian.tryton.org/gitweb/?p=packages/tryton-modules-dashboard.git;a=commitdiff;h=upstream/2.8.0-1-g39085c6
commit 39085c6996398bfea13a31bb9a4ea333a4da9328
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Sun Nov 24 17:27:18 2013 +0100
Adding upstream version 3.0.0.
diff --git a/CHANGELOG b/CHANGELOG
index 758786e..34f8523 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)
* Filter action based on usage "dashboard"
diff --git a/PKG-INFO b/PKG-INFO
index e250673..c583ef9 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
Metadata-Version: 1.1
Name: trytond_dashboard
-Version: 2.8.0
+Version: 3.0.0
Summary: Tryton module for dashboard
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_dashboard
=================
@@ -58,6 +58,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/dashboard.py b/dashboard.py
index ed89c82..406fe05 100644
--- a/dashboard.py
+++ b/dashboard.py
@@ -2,7 +2,7 @@
#this repository contains the full copyright notices and license terms.
from trytond.model import ModelView, ModelSQL, fields
from trytond.transaction import Transaction
-from trytond.backend import TableHandler
+from trytond import backend
from trytond.pyson import Eval
__all__ = ['DashboardAction']
@@ -13,9 +13,7 @@ class DashboardAction(ModelSQL, ModelView):
__name__ = "dashboard.action"
user = fields.Many2One('res.user', 'User', required=True,
select=True)
- sequence = fields.Integer('Sequence',
- order_field='(%(table)s.sequence IS NULL) %(order)s, '
- '%(table)s.sequence %(order)s')
+ sequence = fields.Integer('Sequence')
act_window = fields.Many2One('ir.action.act_window', 'Action',
required=True, ondelete='CASCADE', domain=[
('res_model', '!=', None),
@@ -35,6 +33,7 @@ class DashboardAction(ModelSQL, ModelView):
@classmethod
def __register__(cls, module_name):
+ TableHandler = backend.get('TableHandler')
cursor = Transaction().cursor
table = TableHandler(cursor, cls, module_name)
@@ -42,3 +41,8 @@ class DashboardAction(ModelSQL, ModelView):
# Migration from 2.4: drop required on sequence
table.not_null_action('sequence', action='remove')
+
+ @staticmethod
+ def order_sequence(tables):
+ table, _ = tables[None]
+ return [table.sequence == None, table.sequence]
diff --git a/locale/fr_FR.po b/locale/fr_FR.po
index 5e8bc47..929bf0b 100644
--- a/locale/fr_FR.po
+++ b/locale/fr_FR.po
@@ -63,14 +63,6 @@ msgid "Square"
msgstr "Carré"
msgctxt "selection:res.user,dashboard_layout:"
-msgid "Square"
-msgstr "Carré"
-
-msgctxt "selection:res.user,dashboard_layout:"
-msgid "Stack Bottom"
-msgstr "Pile bas"
-
-msgctxt "selection:res.user,dashboard_layout:"
msgid "Stack Bottom"
msgstr "Pile bas"
@@ -79,14 +71,6 @@ msgid "Stack Left"
msgstr "Pile gauche"
msgctxt "selection:res.user,dashboard_layout:"
-msgid "Stack Left"
-msgstr "Pile gauche"
-
-msgctxt "selection:res.user,dashboard_layout:"
-msgid "Stack Right"
-msgstr "Pile droite"
-
-msgctxt "selection:res.user,dashboard_layout:"
msgid "Stack Right"
msgstr "Pile droite"
@@ -94,14 +78,6 @@ msgctxt "selection:res.user,dashboard_layout:"
msgid "Stack Top"
msgstr "Pile haut"
-msgctxt "selection:res.user,dashboard_layout:"
-msgid "Stack Top"
-msgstr "Pile haut"
-
-msgctxt "view:dashboard.action:"
-msgid "Dashboard Action"
-msgstr "Action tableau de bord"
-
msgctxt "view:dashboard.action:"
msgid "Dashboard Action"
msgstr "Action tableau de bord"
@@ -110,14 +86,6 @@ msgctxt "view:dashboard.action:"
msgid "Dashboard Actions"
msgstr "Actions tableau de bord"
-msgctxt "view:dashboard.action:"
-msgid "Dashboard Actions"
-msgstr "Actions tableau de bord"
-
-msgctxt "view:res.user:"
-msgid "Dashboard"
-msgstr "Tableau de bord"
-
msgctxt "view:res.user:"
msgid "Dashboard"
msgstr "Tableau de bord"
diff --git a/locale/fr_FR.po b/locale/sl_SI.po
similarity index 54%
copy from locale/fr_FR.po
copy to locale/sl_SI.po
index 5e8bc47..9972b2f 100644
--- a/locale/fr_FR.po
+++ b/locale/sl_SI.po
@@ -4,15 +4,15 @@ msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:dashboard.action,act_window:"
msgid "Action"
-msgstr "Action"
+msgstr "Ukrep"
msgctxt "field:dashboard.action,create_date:"
msgid "Create Date"
-msgstr "Date de création"
+msgstr "Ustvarjeno"
msgctxt "field:dashboard.action,create_uid:"
msgid "Create User"
-msgstr "Créé par"
+msgstr "Ustvaril"
msgctxt "field:dashboard.action,id:"
msgid "ID"
@@ -20,104 +20,72 @@ msgstr "ID"
msgctxt "field:dashboard.action,rec_name:"
msgid "Name"
-msgstr "Nom"
+msgstr "Ime"
msgctxt "field:dashboard.action,sequence:"
msgid "Sequence"
-msgstr "Séquence"
+msgstr "Zap.št."
msgctxt "field:dashboard.action,user:"
msgid "User"
-msgstr "Utilisateur"
+msgstr "Uporabnik"
msgctxt "field:dashboard.action,write_date:"
msgid "Write Date"
-msgstr "Date de mise à jour"
+msgstr "Zapisano"
msgctxt "field:dashboard.action,write_uid:"
msgid "Write User"
-msgstr "Mis à jour par"
+msgstr "Zapisal"
msgctxt "field:res.user,dashboard_actions:"
msgid "Dashboard Actions"
-msgstr "Actions tableau de bord"
+msgstr "Ukrepi delovne table"
msgctxt "field:res.user,dashboard_layout:"
msgid "Dashboard Layout"
-msgstr "Mise en page de tableau de bord"
+msgstr "Razporeditev delovne table"
msgctxt "model:dashboard.action,name:"
msgid "Dashboard Action"
-msgstr "Action tableau de bord"
+msgstr "Ukrep delovne table"
msgctxt "model:ir.action,name:act_dashboard"
msgid "Dashboard"
-msgstr "Tableau de bord"
+msgstr "Delovna tabla"
msgctxt "model:ir.ui.menu,name:menu_dashboard"
msgid "Dashboard"
-msgstr "Tableau de bord"
+msgstr "Delovna tabla"
msgctxt "selection:res.user,dashboard_layout:"
msgid "Square"
-msgstr "Carré"
-
-msgctxt "selection:res.user,dashboard_layout:"
-msgid "Square"
-msgstr "Carré"
-
-msgctxt "selection:res.user,dashboard_layout:"
-msgid "Stack Bottom"
-msgstr "Pile bas"
+msgstr "Kvadrat"
msgctxt "selection:res.user,dashboard_layout:"
msgid "Stack Bottom"
-msgstr "Pile bas"
+msgstr "Zloženo spodaj"
msgctxt "selection:res.user,dashboard_layout:"
msgid "Stack Left"
-msgstr "Pile gauche"
-
-msgctxt "selection:res.user,dashboard_layout:"
-msgid "Stack Left"
-msgstr "Pile gauche"
-
-msgctxt "selection:res.user,dashboard_layout:"
-msgid "Stack Right"
-msgstr "Pile droite"
+msgstr "Zloženo levo"
msgctxt "selection:res.user,dashboard_layout:"
msgid "Stack Right"
-msgstr "Pile droite"
+msgstr "Zloženo desno"
msgctxt "selection:res.user,dashboard_layout:"
msgid "Stack Top"
-msgstr "Pile haut"
-
-msgctxt "selection:res.user,dashboard_layout:"
-msgid "Stack Top"
-msgstr "Pile haut"
-
-msgctxt "view:dashboard.action:"
-msgid "Dashboard Action"
-msgstr "Action tableau de bord"
+msgstr "Zloženo na vrhu"
msgctxt "view:dashboard.action:"
msgid "Dashboard Action"
-msgstr "Action tableau de bord"
+msgstr "Ukrep delovne table"
msgctxt "view:dashboard.action:"
msgid "Dashboard Actions"
-msgstr "Actions tableau de bord"
-
-msgctxt "view:dashboard.action:"
-msgid "Dashboard Actions"
-msgstr "Actions tableau de bord"
-
-msgctxt "view:res.user:"
-msgid "Dashboard"
-msgstr "Tableau de bord"
+msgstr "Ukrepi delovne table"
msgctxt "view:res.user:"
msgid "Dashboard"
-msgstr "Tableau de bord"
+msgstr "Delovna tabla"
diff --git a/res.py b/res.py
index b3aeb50..bb0e3e8 100644
--- a/res.py
+++ b/res.py
@@ -1,7 +1,7 @@
#This file is part of Tryton. The COPYRIGHT file at the top level of
#this repository contains the full copyright notices and license terms.
from trytond.model import fields
-from trytond.backend import TableHandler
+from trytond import backend
from trytond.transaction import Transaction
from trytond.pool import PoolMeta
@@ -31,8 +31,11 @@ class User:
@classmethod
def __register__(cls, module_name):
- super(User, cls).__register__(module_name)
+ TableHandler = backend.get('TableHandler')
cursor = Transaction().cursor
+
+ super(User, cls).__register__(module_name)
+
table = TableHandler(cursor, cls, module_name)
# Migration from 1.6
diff --git a/setup.py b/setup.py
index f708acf..c31ad41 100644
--- a/setup.py
+++ b/setup.py
@@ -62,6 +62,7 @@ setup(name='trytond_dashboard',
'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/tests/__init__.py b/tests/__init__.py
index 36d6daf..5ec8ff9 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -2,3 +2,5 @@
#this repository contains the full copyright notices and license terms.
from .test_dashboard import suite
+
+__all__ = ['suite']
diff --git a/tryton.cfg b/tryton.cfg
index a786003..25d3a0e 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=2.8.0
+version=3.0.0
depends:
ir
res
diff --git a/trytond_dashboard.egg-info/PKG-INFO b/trytond_dashboard.egg-info/PKG-INFO
index 8b3b10f..adc12d2 100644
--- a/trytond_dashboard.egg-info/PKG-INFO
+++ b/trytond_dashboard.egg-info/PKG-INFO
@@ -1,12 +1,12 @@
Metadata-Version: 1.1
Name: trytond-dashboard
-Version: 2.8.0
+Version: 3.0.0
Summary: Tryton module for dashboard
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_dashboard
=================
@@ -58,6 +58,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_dashboard.egg-info/SOURCES.txt b/trytond_dashboard.egg-info/SOURCES.txt
index 74b218f..6e08af5 100644
--- a/trytond_dashboard.egg-info/SOURCES.txt
+++ b/trytond_dashboard.egg-info/SOURCES.txt
@@ -25,6 +25,7 @@ locale/es_ES.po
locale/fr_FR.po
locale/nl_NL.po
locale/ru_RU.po
+locale/sl_SI.po
trytond_dashboard.egg-info/PKG-INFO
trytond_dashboard.egg-info/SOURCES.txt
trytond_dashboard.egg-info/dependency_links.txt
diff --git a/trytond_dashboard.egg-info/requires.txt b/trytond_dashboard.egg-info/requires.txt
index 4cdf1bd..b44584b 100644
--- a/trytond_dashboard.egg-info/requires.txt
+++ b/trytond_dashboard.egg-info/requires.txt
@@ -1,2 +1,2 @@
lxml
-trytond >= 2.8, < 2.9
\ No newline at end of file
+trytond >= 3.0, < 3.1
\ No newline at end of file
--
tryton-modules-dashboard
More information about the tryton-debian-vcs
mailing list