Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge geolocalized tasks into master #13

Closed

Conversation

elianerpereira
Copy link

Parin, who was my mentor during last round of OPW, asked me to do this pull request to merge the geolocalized-tasks plugins into master.

elianerpereira and others added 30 commits April 10, 2014 01:26
…rkers

- doesn't allow the user to delete user location
- use a different color to the tag
…s-event

LibChamplain does not handle the button-release-event when button-press-event
is being treated by geolocalized-tasks, keeping the cursor as a closed hand.
If we treat the button-release-event, the behavior is according to what we expect.
…tom menuitems to it

There are 2 public methods - add_custom_menuitem() and remove_custom_menuitem() which will be used by plugins for the same
@izidormatusov
Copy link
Contributor

@elianerpereira Can you provide a command that installs all the dependencies on a major distro, e.g. Ubuntu? I would like to try out your work!

@parinporecha
Copy link
Contributor

@elianerpereira , I deleted all the tags, still the edit location dialog shows them - http://i.imgur.com/6aSQIIn.png

@elianerpereira
Copy link
Author

Izidor,

On Thursday, April 10, 2014, Izidor Matušov notifications@github.com
wrote:

@elianerpereira https://github.com/elianerpereira Can you provide a
command that installs all the dependencies on a major distro, e.g. Ubuntu?
I would like to try out your work!

Sorry for the long time to answer you. I am traveling with my husband and
we are without internet in the most places. I will checkout the packages
names and send to you as soon as I have the laptop and the internet.


Reply to this email directly or view it on GitHubhttps://github.com//pull/13#issuecomment-40148197
.

Eliane Ramos Pereira

@elianerpereira
Copy link
Author

Parin,

On Tuesday, April 15, 2014, Parin Porecha notifications@github.com wrote:

@elianerpereira https://github.com/elianerpereira , I deleted all the
tags, still the edit location dialog shows them -
http://i.imgur.com/6aSQIIn.png

Did you clean up your stuff before test it?
I am traveling with Fabiano and we are out of internet here. I will take a
look on the bug as soon as I have the laptop with me and access to internet.


Reply to this email directly or view it on GitHubhttps://github.com//pull/13#issuecomment-40453365
.

Eliane Ramos Pereira

@elianerpereira
Copy link
Author

Izidor,

In addition to the packages needed by GTG, I needed to install:
python3-dbus, running a fedora 20 with gnome 3.12, newly installed.

On Tue, Apr 15, 2014 at 3:27 PM, Eliane Ramos elianerpereira@gmail.comwrote:

Izidor,

On Thursday, April 10, 2014, Izidor Matušov notifications@github.com
wrote:

@elianerpereira https://github.com/elianerpereira Can you provide a
command that installs all the dependencies on a major distro, e.g. Ubuntu?
I would like to try out your work!

Sorry for the long time to answer you. I am traveling with my husband and
we are without internet in the most places. I will checkout the packages
names and send to you as soon as I have the laptop and the internet.


Reply to this email directly or view it on GitHubhttps://github.com//pull/13#issuecomment-40148197
.

Eliane Ramos Pereira

Eliane Ramos Pereira

@elianerpereira
Copy link
Author

Hi Parin,

I'm using an F20, newly installed with gnome 3.12, and tested the behavior
shown by him but was unable to reproduce the bug.
Can you tell me what system you are using, so I can download and install it
on a virtual machine to test?

By the way, I commited a bug that was giving problem with Geoclue yesterday.

On Tue, Apr 15, 2014 at 3:29 PM, Eliane Ramos elianerpereira@gmail.comwrote:

Parin,

On Tuesday, April 15, 2014, Parin Porecha notifications@github.com
wrote:

@elianerpereira https://github.com/elianerpereira , I deleted all the
tags, still the edit location dialog shows them -
http://i.imgur.com/6aSQIIn.png

Did you clean up your stuff before test it?
I am traveling with Fabiano and we are out of internet here. I will take a
look on the bug as soon as I have the laptop with me and access to internet.


Reply to this email directly or view it on GitHubhttps://github.com//pull/13#issuecomment-40453365
.

Eliane Ramos Pereira

Eliane Ramos Pereira

@NimitS1
Copy link
Contributor

NimitS1 commented May 31, 2014

Hi Elaine,
I am facing this issue while enabling the plugin:
Traceback (most recent call last):
File "/home/limit/projects/gtg/gtg/GTG/gtk/plugins.py", line 261, in on_plugin_toggle
self.pengine.activate_plugins([plugin])
File "/home/limit/projects/gtg/gtg/GTG/core/plugins/engine.py", line 217, in activate_plugins
plugin.active = True
File "/home/limit/projects/gtg/gtg/GTG/core/plugins/engine.py", line 79, in _set_active
self.instance = self.plugin_class()
File "/home/limit/projects/gtg/gtg/GTG/plugins/geolocalized_tasks/geolocalized_tasks.py", line 72, in init
self.where = Geoclue()
File "/home/limit/projects/gtg/gtg/GTG/plugins/geolocalized_tasks/geoclue.py", line 42, in __init

self.DESKTOP_ID
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in call
**keywords)
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.InvalidArgs: No such property 'DesktopId'

@elianerpereira
Copy link
Author

Hello Nimit,

On Sat, May 31, 2014 at 8:42 AM, Nimit Shah notifications@github.com
wrote:

Hi Elaine,
I am facing this issue while enabling the plugin:
Traceback (most recent call last):
File "/home/limit/projects/gtg/gtg/GTG/gtk/plugins.py", line 261, in
on_plugin_toggle
self.pengine.activate_plugins([plugin])
File "/home/limit/projects/gtg/gtg/GTG/core/plugins/engine.py", line 217,
in activate_plugins
plugin.active = True
File "/home/limit/projects/gtg/gtg/GTG/core/plugins/engine.py", line 79,
in

_set_active self.instance = self.plugin_class() File
"/home/limit/projects/gtg/gtg/GTG/plugins/geolocalized_tasks/geolocalized_tasks.py",
line 72, in init
self.
_where = Geoclue() File
"/home/limit/projects/gtg/gtg/GTG/plugins/geolocalized_tasks/geoclue.py",
line 42, in _init
self.DESKTOP_ID
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in call
**keywords)
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in
call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.InvalidArgs: No
such property 'DesktopId'

May I ask you to just comment out the lines 39, 40, 41, 42 and 43?
Newer versions of Geoclue asks you to set the Desktop Id property, if I
remember correctly.

What do you suggest as solution? Have a specific (new) version of the

Geoclue as dependency? Try to check the versions?

Eliane Ramos Pereira

@parinporecha
Copy link
Contributor

For which distros is the newer version of Geoclue2 released ?

Geoclue2 is fairly new and under active development so API changes are to
be expected.
If you add the code to check versions, it'll have to be updated whenever a
new version is released and it'll also cause maintainability problems.

I think you should add error handling in the code. Check for DBus
exceptions and related, and if caught, show a 'Please mark your position on
the map' infobar message or something like that. The user will have to do
it only once and since we're saving his co-ordinates, it won't happen the
second time onwards.

When the API becomes stable after some time, we'll update the relevant part.

On Sat, May 31, 2014 at 2:47 PM, elianerpereira notifications@github.com
wrote:

Hello Nimit,

On Sat, May 31, 2014 at 8:42 AM, Nimit Shah notifications@github.com
wrote:

Hi Elaine,
I am facing this issue while enabling the plugin:
Traceback (most recent call last):
File "/home/limit/projects/gtg/gtg/GTG/gtk/plugins.py", line 261, in
on_plugin_toggle
self.pengine.activate_plugins([plugin])
File "/home/limit/projects/gtg/gtg/GTG/core/plugins/engine.py", line 217,
in activate_plugins
plugin.active = True
File "/home/limit/projects/gtg/gtg/GTG/core/plugins/engine.py", line 79,
in

*set_active self.instance = self.plugin_class() File

"/home/limit/projects/gtg/gtg/GTG/plugins/geolocalized_tasks/geolocalized_tasks.py",
line 72, in _init*
self.

_where = Geoclue() File
"/home/limit/projects/gtg/gtg/GTG/plugins/geolocalized_tasks/geoclue.py",
line 42, in _init
self.DESKTOP_ID
File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in
call

**keywords)
File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in
call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.InvalidArgs: No
such property 'DesktopId'

May I ask you to just comment out the lines 39, 40, 41, 42 and 43?
Newer versions of Geoclue asks you to set the Desktop Id property, if I
remember correctly.

What do you suggest as solution? Have a specific (new) version of the

Geoclue as dependency? Try to check the versions?

Eliane Ramos Pereira


Reply to this email directly or view it on GitHub
#13 (comment)
.

Regards,
Parin Porecha

@elianerpereira
Copy link
Author

Hello Parin,

On Sat, May 31, 2014 at 11:32 AM, Parin Porecha notifications@github.com
wrote:

For which distros is the newer version of Geoclue2 released ?

Hmm. I don't know exactly. I made the patch based on the distro I'm using
(Fedora 20 with COPR enabled to use GNOME-3.12)

Geoclue2 is fairly new and under active development so API changes are to
be expected.
If you add the code to check versions, it'll have to be updated whenever a
new version is released and it'll also cause maintainability problems.

I think you should add error handling in the code. Check for DBus
exceptions and related, and if caught, show a 'Please mark your position
on
the map' infobar message or something like that. The user will have to do
it only once and since we're saving his co-ordinates, it won't happen the
second time onwards.

Right. I will do this with the other changes suggested by Nimit (or you, or
who else will review this code).

Eliane Ramos Pereira

from dbus.mainloop.glib import DBusGMainLoop


class Geoclue:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

class Geoclue(object):

# to GtkBuilder format together with other glade XMLs.
# FIXME Since this plugin is broken, I am not going to replace galde mentions
# to GtkBuilder, it's your job ;)
FILTER_NAME = '@@GeolocalizedTasks'


class geolocalizedTasks:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should inherit from object

@diegogangl
Copy link
Contributor

Hi, wasn't this merged at some point? We moved geolocalized tasks into the unmaintained folder. Closing this for now. Thanks for your work though!

@diegogangl diegogangl closed this Feb 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants