default is stable stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 10 Feb 2011 12:14:32 +0100
branchstable
changeset 52 81e1d9f995f8
parent 48 2d0870c9ceea (current diff)
parent 51 5d254dd4ffb2 (diff)
child 55 e681276a45f2
default is stable
--- a/.hgtags	Thu Feb 10 11:58:14 2011 +0100
+++ b/.hgtags	Thu Feb 10 12:14:32 2011 +0100
@@ -2,3 +2,5 @@
 be80182ec9cf014ce2b7a31207bdcc02f106810b cubicweb-fresh-debian-version-0_3_1-1
 1f1e4a1efb58a407386af60fd5c6090c8e39af78 cubicweb-fresh-version-0.5.0
 23b964ed9f9649a92644af1b14238813edd955cd cubicweb-fresh-debian-version-0.5.0-1
+6f326f9908bd375725287b703693d68901b0d4e5 cubicweb-fresh-version-0.5.1
+4e43a847289138e0ffd33ea98e4b6817ff1e1e20 cubicweb-fresh-debian-version-0.5.1-1
--- a/__pkginfo__.py	Thu Feb 10 11:58:14 2011 +0100
+++ b/__pkginfo__.py	Thu Feb 10 12:14:32 2011 +0100
@@ -4,16 +4,14 @@
 modname = 'fresh'
 distname = 'cubicweb-fresh'
 
-numversion = (0, 5, 1)
+numversion = (0, 5, 2)
 version = '.'.join(str(num) for num in numversion)
 
 license = 'LGPL'
 author = 'Logilab'
 author_email = 'contact@logilab.fr'
-
 description = 'expense tracking application built on the CubicWeb framework'
 web = 'http://www.cubicweb.org/project/%s' % distname
-
 classifiers = [
     'Environment :: Web Environment',
     'Framework :: CubicWeb',
--- a/debian/changelog	Thu Feb 10 11:58:14 2011 +0100
+++ b/debian/changelog	Thu Feb 10 12:14:32 2011 +0100
@@ -1,3 +1,9 @@
+cubicweb-fresh (0.5.2-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- Sylvain Thénault <sylvain.thenault@logilab.fr>  Thu, 10 Feb 2011 12:13:40 +0100
+
 cubicweb-fresh (0.5.1-1) unstable; urgency=low
 
   * new upstream release
--- a/i18n/en.po	Thu Feb 10 11:58:14 2011 +0100
+++ b/i18n/en.po	Thu Feb 10 12:14:32 2011 +0100
@@ -5,6 +5,7 @@
 "PO-Revision-Date: 2008-06-09 17:56+0200\n"
 "Last-Translator: Logilab\n"
 "Language-Team: English <devel@logilab.fr.org>\n"
+"Language: en\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
@@ -14,13 +15,6 @@
 msgid "accounting entry view"
 msgstr "accounting entry view"
 
-msgid "actions_accaction"
-msgstr "action which generates accounting entries"
-
-# add related box generated message
-msgid "actions_accaction_description"
-msgstr "action which generates accounting entries"
-
 msgid "generate accounting entries"
 msgstr "generate accounting entries"
 
@@ -36,9 +30,9 @@
 msgid "spent_for"
 msgstr "spent for"
 
+msgid "spent_for_object"
+msgstr "was paid"
+
 msgctxt "Workcase"
 msgid "spent_for_object"
 msgstr "was paid"
-
-msgid "spent_for_object"
-msgstr "was paid"
--- a/i18n/fr.po	Thu Feb 10 11:58:14 2011 +0100
+++ b/i18n/fr.po	Thu Feb 10 12:14:32 2011 +0100
@@ -5,6 +5,7 @@
 "PO-Revision-Date: 2008-06-09 17:56+0200\n"
 "Last-Translator: Logilab\n"
 "Language-Team: French <devel@logilab.fr.org>\n"
+"Language: fr\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
@@ -14,13 +15,6 @@
 msgid "accounting entry view"
 msgstr "écriture comptabilité"
 
-msgid "actions_accaction"
-msgstr "action permettant de générer les écritures"
-
-# add related box generated message
-msgid "actions_accaction_description"
-msgstr "action permettant de générer les écritures"
-
 msgid "generate accounting entries"
 msgstr "générer les écritures comptables"
 
@@ -36,9 +30,9 @@
 msgid "spent_for"
 msgstr "dépensé pour"
 
+msgid "spent_for_object"
+msgstr "s'est fait rembourser"
+
 msgctxt "Workcase"
 msgid "spent_for_object"
 msgstr "s'est fait rembourser"
-
-msgid "spent_for_object"
-msgstr "s'est fait rembourser"
--- a/views/__init__.py	Thu Feb 10 11:58:14 2011 +0100
+++ b/views/__init__.py	Thu Feb 10 12:14:32 2011 +0100
@@ -9,10 +9,19 @@
 _afs.tag_subject_of(('Expense', 'spent_for', '*'), 'main', 'attributes')
 _afs.tag_subject_of(('Expense', 'spent_for', '*'), 'muledit', 'attributes')
 _affk.tag_subject_of(('Expense', 'spent_for', '*'),
-                     {'widget': fw.RestrictedAutoCompletionWidget(autocomplete_initfunc='get_concerned_by')})
+                     {'widget': fw.LazyRestrictedAutoCompletionWidget(
+            autocomplete_initfunc='get_concerned_by',
+            autocomplete_settings={'limit': 100,
+                                   'delay': 300}),
+                      })
 
 
 @monkeypatch(basecontrollers.JSonController)
 @basecontrollers.jsonize
 def js_get_concerned_by(self):
-    return self._cw.execute('DISTINCT Any W,R ORDERBY R WHERE W ref R').rows
+    term = self._cw.form['q']
+    limit = self._cw.form.get('limit', 50)
+    return [{'value': eid, 'label': ref}
+            for eid, ref in self._cw.execute('DISTINCT Any W,R ORDERBY R LIMIT %s WHERE W ref R,'
+                                             'W ref ILIKE %%(term)s' % limit,
+                                             {'term': u'%%%s%%' % term})]