Commit Graph

409 Commits

Author SHA1 Message Date
Fabio Erculiani 3e7608690f [Rigo] drop access() usage 2013-09-18 08:55:29 +02:00
Fabio Erculiani 27659c6dc6 [RigoDaemon] drop access() usage 2013-09-18 08:53:44 +02:00
Fabio Erculiani f23ac9936b [Rigo] drop unavailable signal handling for GtkEntry 2013-07-17 11:32:53 +02:00
Fabio Erculiani 8527e65e29 [Rigo] use only cached UGC metadata if user is scrolling the TreeView
This improves the scrolling speed greatly and reduces the network
pressure.
2013-06-11 17:17:21 +02:00
Fabio Erculiani 757f300814 [rigo.ui.gtk3.models] add cached keyword argument to get_icon 2013-06-11 17:16:44 +02:00
Fabio Erculiani 9cf9e45a11 [rigo.models.application] add cached argument to avoid querying the WS 2013-06-11 17:16:05 +02:00
Fabio Erculiani 96293b934f [Rigo] rate limit requests towards the web service 2013-06-10 19:26:49 +02:00
Fabio Erculiani 4339285804 [Rigo] cope with invalid icon data path 2013-06-10 18:06:07 +02:00
Fabio Erculiani 7ff15f22eb [RigoDaemon] randomize _auto_repositories_update to avoid bursts of requests 2013-06-10 11:07:18 +02:00
Fabio Erculiani 1e339b6401 [Rigo] update translations 2013-05-14 06:34:28 +02:00
Fabio Erculiani 1655f8d692 [Rigo] update translations 2013-04-05 16:10:10 +01:00
Fabio Erculiani d6295b3e00 [entropy*] create const_mkstemp() as tempfile.mkstemp() wrapper.
using /tmp as TMPDIR is a no go, since on modern systems, /tmp is on
tmpfs with a very limited amount of fs size assigned. Use /var/tmp/entropy
(or /var/tmp as fallback) instead.
2013-03-29 12:09:17 +00:00
Fabio Erculiani ff560d42d5 [Rigo] paths: call mkdtemp with dir=/var/tmp 2013-03-29 11:42:41 +00:00
Fabio Erculiani db850299c0 [Rigo] execute the DBus initialization in the main loop 2013-03-18 17:40:17 +00:00
Fabio Erculiani 760599c135 [Rigo] automatically reconnect to the dbus system bus if the connection dies 2013-03-18 17:09:21 +00:00
Fabio Erculiani bbe4c6b046 [rigo] update translations 2013-03-09 20:37:24 +00:00
Fabio Erculiani 73abfc6fa0 [RigoDaemon] schedule a reload every 24 hours to cut on Python leaks. 2013-03-04 13:59:44 +00:00
Fabio Erculiani f0a8156eb7 [Rigo] ApplicationsViewController: sort category and package set entries 2013-02-25 00:18:15 +01:00
Fabio Erculiani 7771d641e2 [entropy.client] extend Client.calculate_updates() to return critical updates info
calculate_updates() now returns a dictionary containing the same pieces of
information available before. In addition, it now also returns if critical
updates were found and returned by the method itself.
This is particularly useful for enforcing relaxed deps calculation in case
of critical updates (which is what happens now).

This commit breaks the Entropy Client API.
2013-02-24 13:30:28 +00:00
Fabio Erculiani 1655cb3baa [RigoDaemon] drop send_requested_reply from dbus config, causes deadlock with gdm-3.6 2013-02-12 14:22:56 +01:00
Fabio Erculiani a123f53e43 [Rigo] update rigo.pot 2013-02-06 07:44:33 +00:00
Fabio Erculiani d8848d68fc [Rigo] make Glade-3 happy and acknowledge its xml changes once and for all 2013-02-06 07:44:33 +00:00
Fabio Erculiani 1cdda9f5fe [Rigo] add support for accelerators
From the main Rigo window, these are the currently supported accelerators:
- CTRL+A: move the focus to the search bar, put the cursor at the beginning
- CTRL+B: move the focus to the search bar, send a backspace character to it
- CTRL+F: move the focus to the search bar
- CTRL+K: move the focus to the search bar, kill the right-most text
- CTRL+M: load the preferences Menu
- CTRL+P: move the focus to the Application View widget
2013-02-06 07:44:33 +00:00
Fabio Erculiani 20c4a55984 [Rigo] fixup Application View rendering when window is maximized 2013-02-06 07:44:33 +00:00
Fabio Erculiani d339fc8208 [Rigo] make possible to disable the updates notification box 2013-02-06 07:44:32 +00:00
Fabio Erculiani c2c6c51703 [Rigo] fix Application View rendering when window is maximized 2013-02-06 07:44:32 +00:00
Fabio Erculiani 2839e9c03d [Rigo] change startup view to Groups 2013-01-27 10:41:34 +00:00
Fabio Erculiani cd71308eb8 [Rigo] fixup TreeView initialization that could lead to race condition in calculating widget size 2013-01-24 22:12:15 +00:00
Fabio Erculiani 321eb030c5 [Rigo] GenericTreeView: fixup row height calculation during TV initialization 2013-01-24 00:39:07 +00:00
Fabio Erculiani 18d89599de [Rigo] cellrenderers: cleanup the code a bit 2013-01-24 00:34:27 +00:00
Fabio Erculiani 4f5acbfb44 [Rigo] AppTreeView: reorder initialization, fixes a race in rendering cells
This addresses a potential race that caused the row size to be calculated
incorrectly.
2013-01-24 00:32:26 +00:00
Fabio Erculiani 550e8aad3b [Rigo] preload the EntropyWebService instances by calling EntropyWebService.preload() 2013-01-24 00:18:44 +00:00
Fabio Erculiani 170b0635d8 [Rigo] use new-style classes and super() in cellrenderers 2013-01-24 00:18:16 +00:00
Fabio Erculiani 77196a0b79 [Rigo] add preload() to EntropyWebService. It can be called to preload objects in cache 2013-01-24 00:17:20 +00:00
Fabio Erculiani d4545d0da8 [Rigo] use ETP_DEBUG=1 in debug_rigo.sh 2013-01-24 00:16:59 +00:00
Fabio Erculiani 466e89cf8f [Rigo] update translations 2013-01-20 12:02:06 +00:00
Fabio Erculiani 1600c49887 [Rigo] always use units in rigo.css, clears warnings 2013-01-17 19:25:51 +00:00
Fabio Erculiani ec4c84294f [Rigo] add download/disk size info in the search element list, fixes bug 3852 2012-12-17 00:32:27 +01:00
Fabio Erculiani 4b38e262cd [Rigo] provide emblem-system icon by default, fixes bug #3822 2012-12-03 00:56:05 +01:00
Fabio Erculiani a39e44f93c [rigo] update translations, add tr and hr 2012-12-01 19:29:41 +01:00
Fabio Erculiani d42003ba94 Merge remote-tracking branch 'origin/solo'
Conflicts:
	client/po/bg.po
	client/po/ca.po
	client/po/cs.po
	client/po/da.po
	client/po/de.po
	client/po/entropy.pot
	client/po/es.po
	client/po/es_CL.po
	client/po/fr.po
	client/po/fr_CA.po
	client/po/it.po
	client/po/nl.po
	client/po/pl.po
	client/po/pt.po
	client/po/pt_BR.po
	client/po/ru.po
	client/po/sk.po
	client/po/sv.po
	client/po/uk.po
	client/po/zh_TW.po
	client/revision
	docs/ChangeLog
	docs/TODO
	lib/entropy/cache.py
	lib/entropy/client/interfaces/db.py
	lib/entropy/const.py
	lib/entropy/revision
	lib/entropy/spm/plugins/interfaces/portage_plugin/__init__.py
	server/revision
2012-11-06 22:35:01 +01:00
Fabio Erculiani f32ddb95e5 [RigoDaemon] drop any reference to etpUi['debug'] 2012-11-06 20:50:47 +01:00
Fabio Erculiani 280a7067b3 [entropy.cli] drop module, move code to client/ and server/
Even though it is a small code duplication, entropy.cli does make
much less sense.
2012-11-04 21:11:56 +01:00
Fabio Erculiani 68ae30e5ba [Rigo] fix infinite loop in _vanished_callback() 2012-09-17 12:40:46 +02:00
Fabio Erculiani 97aeed94be [Rigo] always validate repositories after update
On a fresh install, with no downloaded repositories, users were forced
to restart Rigo in order to have the search function fully functional.
If a local repository is configured but not downloaded (thus, not
available) the same bug happens.

It turned out to be Entropy._enabled_repos, returned by Entropy.repositories()
which didn't get re-initialized after a repository update. This commit adds
a _validate_repositories() call inside _repositories_updated_signal().
2012-09-08 20:11:23 +02:00
Fabio Erculiani 8df6964462 [Rigo] Application: escape _("N/A")
Application.get_markup() and Application.get_extended_markup() must
always return bytestring (decoded) data to make Gtk3 libs and code
happy. It happened that _("N/A") was returned without passing through
prepare_markup() or escape_markup(). This commit fixes it.
2012-09-08 20:11:22 +02:00
Fabio Erculiani c9ed841e75 [Rigo] RigoServiceController: convert app_name=_("Application") to rawstring
If app_name is unicode decoded, the following code will fail (in pl_PL):

  >>> prepare_markup(_("<b>%s</b>, internal error")) % (_("Application"),)

with a nice UnicodeDecodeError due to implicit bytestring decode.
prepare_markup() output is bytestring, _() output is unicode.
Thanks to Enlik for reporting.
2012-09-08 20:11:22 +02:00
Sławomir Nizio 6c96c7608e [magneto,rigo] modernize .desktop files 2012-09-08 20:11:22 +02:00
Fabio Erculiani d9bfa7f11f [RigoDaemon] half the timer frequency and add some randomization in _auto_repositories_update()
When sabayon-weekly is updated, the web service is hit by a huge amount of
requests. This commits add a bit more entropy on the execution of
_auto_repositories_update() (random between 30mins to 2 hours) and reduces
the timer frequency to 8hrs (from 4).
2012-09-08 20:11:22 +02:00
Fabio Erculiani 2092303f55 [Rigo] always validate repositories after update
On a fresh install, with no downloaded repositories, users were forced
to restart Rigo in order to have the search function fully functional.
If a local repository is configured but not downloaded (thus, not
available) the same bug happens.

It turned out to be Entropy._enabled_repos, returned by Entropy.repositories()
which didn't get re-initialized after a repository update. This commit adds
a _validate_repositories() call inside _repositories_updated_signal().
2012-09-03 19:21:56 +02:00