View Single Post
Old 04-18-2011, 09:56 AM   #70
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123457
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Quote:
Originally Posted by kovidgoyal View Post
There's no social metadata anymore. The identify method should return all fields the source knows about. You can default disable fields by overriding the __init__ method in your plugin like this

Code:
def __init__(self, *args, **kwargs):
   SourcePlugin.__init__(self, *args, **kwargs)
   self.prefs.defaults['ignore_fields'] =[list of fields from touched_fields]
global name 'SourcePlugin' is not defined... Not sure where it's supposed to be defined, but I'm pretty sure you meant for me to use that specific string.

Is the list of field's the user is actually requesting available for testing inside of identify?
ldolse is offline   Reply With Quote