emesene forum
July 31, 2010, 01:18:11 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: CACHE KEY ERRORS? NICK NOT SAVED? UPGRADE TO 1.6.2 FIRST!

REPORT ANY ISSUE HERE - PLEASE CHECK IF THE PROBLEM HAS ALREADY BEEN REPORTED FIRST -- THANKS
 
  Home   Forum   Help Search Login Register  
Pages: 1 ... 8 9 [10] 11
  Print  
Author Topic: [New Plugin] Facebook  (Read 17375 times)
mehd36
Hero Member
*****

l33tness: 8
Offline Offline

Posts: 151


Facebook Plugin inside ©


View Profile Email
« Reply #135 on: August 31, 2009, 03:55:55 PM »

0.7 | 09/01/2009 : Now when the status is cleared from facebook, the commentsbox disappears. Bugfix w/ commentsactive. Now comments are grabbed in a new thread if commentscount changes.> Faster. Configuration box rewritten. Optimized threads. Some cleaning.

@C10ud :
Could you update launchpad translations strings since my plugin has been added ? Do I have to do something special for internationalization ?
Logged
C10uD
ololol
Administrator
Hero Member
*****

l33tness: -9990
Offline Offline

Posts: 2308



View Profile Email
« Reply #136 on: September 01, 2009, 01:01:07 AM »

in order to get your plugin translated, it must be suitable for gettext, so you must include all the translatable strings in brackets like this:

_('whatever, hy lulz')

p.s. you could have to import gettext, i'm unsure Cheesy
Logged
mehd36
Hero Member
*****

l33tness: 8
Offline Offline

Posts: 151


Facebook Plugin inside ©


View Profile Email
« Reply #137 on: September 01, 2009, 04:05:28 AM »

Changelog :
Plugin ready for translations | Updated some strings

I didn't have to import gettext.
Now please, could you update strings in launchpad translations ?
Logged
C10uD
ololol
Administrator
Hero Member
*****

l33tness: -9990
Offline Offline

Posts: 2308



View Profile Email
« Reply #138 on: September 01, 2009, 04:17:23 AM »

there's something wrong at line 1290:
        l.append(Plugin.Option('format', str, _("Custom time (example: '%x, %X'):"), '',\
            self.config.getPluginValue( self.name, 'format', '' )) )
what is this supposed to mean? %s are used for replacing text in strings like 'hello %s' % 'sir' otherwise i think we've to escape them someway, do you need % for replacing text or just to tell the user write %x?

note please use the svn version for further modifications as i've done a little modification (personnal->personal)

i'll recreate the translation template as soon as we get this issue fixed
Logged
mehd36
Hero Member
*****

l33tness: 8
Offline Offline

Posts: 151


Facebook Plugin inside ©


View Profile Email
« Reply #139 on: September 01, 2009, 04:27:46 AM »

I know that, I just tell the user to write %x, %X
What should I do ?
Logged
C10uD
ololol
Administrator
Hero Member
*****

l33tness: -9990
Offline Offline

Posts: 2308



View Profile Email
« Reply #140 on: September 01, 2009, 04:37:52 AM »

i'm trying to find a solution Tongue
Logged
C10uD
ololol
Administrator
Hero Member
*****

l33tness: -9990
Offline Offline

Posts: 2308



View Profile Email
« Reply #141 on: September 01, 2009, 04:42:13 AM »

ok, done... template will be uploaded soon to launchpad
for further development please leave the same strings and use current svn version as a base as i've done some small modifications

cheers
Logged
mehd36
Hero Member
*****

l33tness: 8
Offline Offline

Posts: 151


Facebook Plugin inside ©


View Profile Email
« Reply #142 on: September 01, 2009, 04:45:32 AM »

Ok, thank you very much for everything :-)

I'll use the current's svn version as a base
Logged
mehd36
Hero Member
*****

l33tness: 8
Offline Offline

Posts: 151


Facebook Plugin inside ©


View Profile Email
« Reply #143 on: September 01, 2009, 04:45:36 PM »

Changelog : Some translations updates | The two status option have merged into a "synchronization" option. Seeparing them is kind of unusual now. | Comments are downloaded in a new thread if there is a new comment | Fixed a bug with commentscount displaying | Various comments bugfixes

Screenshot of the current configuration box :

note : the "miscellaneous" mistake is already corrected
Logged
mehd36
Hero Member
*****

l33tness: 8
Offline Offline

Posts: 151


Facebook Plugin inside ©


View Profile Email
« Reply #144 on: September 02, 2009, 10:19:14 AM »

Changelog:
Various configuration bugfixes | Updated some strings
Logged
Heero_Yuy
Newbie
*

l33tness: 0
Offline Offline

Posts: 2


View Profile Email
« Reply #145 on: February 07, 2010, 10:09:11 AM »

Hi I'm new in the fourms, I'm wondering if you could help me solve this problem with the plugin...  Huh

I just installed Emesene 1.6 from PPA, I enabled the plugin and it worked at first, when I closed emesene and came back
the plugin was disabled, when I tried to enable it, it gave me this exception :

You are using emesene 1.6.X PPA-r1833 "mate" so you're free to complain here:
http://forum.emesene.org/index.php/board,19.0.html
Check already existing tickets for duplicates first, please.
Traceback (most recent call last):

  File "/usr/share/emesene/PreferenceWindow.py", line 1980, in active_toggled
    status = self.pluginManager.checkPlugin(plugin_name)

  File "/usr/share/emesene/PluginManager.py", line 220, in checkPlugin
    return self.loaded_plugin[ name ].check()

  File "/usr/share/emesene/plugins_base/Facebook.py", line 1223, in check
    uidgotten = str(self.fb.users.getLoggedInUser())

  File "<string>", line 4, in getLoggedInUser

  File "/usr/share/emesene/plugins_base/Facebook.py", line 197, in __call__
    return self._client('%s.%s' % (self._name, method), args)

  File "/usr/share/emesene/plugins_base/Facebook.py", line 492, in __call__
    return self._parse_response(response, method)

  File "/usr/share/emesene/plugins_base/Facebook.py", line 424, in _parse_response
    self._check_error(result)

  File "/usr/share/emesene/plugins_base/Facebook.py", line 374, in _check_error
    raise FacebookError(response['error_code'], response['error_msg'], response['request_args'])

FacebookError: Error 453: A session key is required for calling this method

Anyhelp appreciated, I really wish it would work again  Sad
Logged
mehd36
Hero Member
*****

l33tness: 8
Offline Offline

Posts: 151


Facebook Plugin inside ©


View Profile Email
« Reply #146 on: February 07, 2010, 10:16:34 AM »

Looks like a bug...

For now, delete the Facebook.conf file located in :"~/.config/emesene1.0/your_email_address/ , and restart emesene
Logged
Heero_Yuy
Newbie
*

l33tness: 0
Offline Offline

Posts: 2


View Profile Email
« Reply #147 on: February 07, 2010, 10:54:44 AM »

Looks like a bug...

For now, delete the Facebook.conf file located in :"~/.config/emesene1.0/your_email_address/ , and restart emesene

Tried that, I restarted and enabled it successfully, however when I exit emesene and get back it's disabled again and the exception shows up...

I even tried not changing its default settings to no vail. Sad
Logged
mehd36
Hero Member
*****

l33tness: 8
Offline Offline

Posts: 151


Facebook Plugin inside ©


View Profile Email
« Reply #148 on: February 27, 2010, 10:16:02 AM »

Hello people !

As I had some free time, I rewrote the auth part of the plugin, part that causes a lot of problems.

So now, just one window, you'll just have to login once, no need to check anything.

Could someone test it and tell me if it works ? Cheesy



Cheers
Logged
DarKprince
Hero Member
*****

l33tness: 14
Offline Offline

Posts: 252


Italians Do It better XD XD


View Profile Email
« Reply #149 on: February 27, 2010, 11:05:48 AM »

I've got this:
Code:
Exception
You are using emesene 1.6.X BETABETABETA "mate" so you're free to complain here:
http://forum.emesene.org/index.php/board,19.0.html
Check already existing tickets for duplicates first, please.
Traceback (most recent call last):

  File "/home/saverio/emesene/PreferenceWindow.py", line 1935, in reloadPlugin
    self.pluginManager.restartPlugin(name)

  File "/home/saverio/emesene/PluginManager.py", line 214, in restartPlugin
    self.startPlugin(name)

  File "/home/saverio/emesene/PluginManager.py", line 234, in startPlugin
    self.loaded_plugin[ name ].start()

  File "/home/saverio/emesene/plugins_base/Facebook.py", line 849, in start
    self.addunread()

  File "/home/saverio/emesene/plugins_base/Facebook.py", line 1145, in addunread
    pmcount = (self.fb.notifications.get()['messages'])['unread']

  File "<string>", line 4, in get

  File "/home/saverio/emesene/plugins_base/Facebook.py", line 200, in __call__
    return self._client('%s.%s' % (self._name, method), args)

  File "/home/saverio/emesene/plugins_base/Facebook.py", line 495, in __call__
    return self._parse_response(response, method)

  File "/home/saverio/emesene/plugins_base/Facebook.py", line 427, in _parse_response
    self._check_error(result)

  File "/home/saverio/emesene/plugins_base/Facebook.py", line 377, in _check_error
    raise FacebookError(response['error_code'], response['error_msg'], response['request_args'])

FacebookError: Error 453: A session key is required for calling this method

then I have deleted all facebook.conf files and tried again, getting this
Code:
Exception
You are using emesene 1.6.X BETABETABETA "mate" so you're free to complain here:
http://forum.emesene.org/index.php/board,19.0.html
Check already existing tickets for duplicates first, please.
Traceback (most recent call last):

  File "/home/saverio/emesene/PreferenceWindow.py", line 1995, in active_toggled
    self.pluginManager.startPlugin(plugin_name)

  File "/home/saverio/emesene/PluginManager.py", line 234, in startPlugin
    self.loaded_plugin[ name ].start()

  File "/home/saverio/emesene/plugins_base/Facebook.py", line 849, in start
    self.addunread()

  File "/home/saverio/emesene/plugins_base/Facebook.py", line 1145, in addunread
    pmcount = (self.fb.notifications.get()['messages'])['unread']

  File "<string>", line 4, in get

  File "/home/saverio/emesene/plugins_base/Facebook.py", line 200, in __call__
    return self._client('%s.%s' % (self._name, method), args)

  File "/home/saverio/emesene/plugins_base/Facebook.py", line 495, in __call__
    return self._parse_response(response, method)

  File "/home/saverio/emesene/plugins_base/Facebook.py", line 427, in _parse_response
    self._check_error(result)

  File "/home/saverio/emesene/plugins_base/Facebook.py", line 377, in _check_error
    raise FacebookError(response['error_code'], response['error_msg'], response['request_args'])

FacebookError: Error 453: A session key is required for calling this method
« Last Edit: February 27, 2010, 11:10:13 AM by DarKprince » Logged
Pages: 1 ... 8 9 [10] 11
  Print  
 
Jump to:  

TinyPortal v.1.0.6 beta 2 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!