def get_permalink_ids_iter(self):
 permalink_id_key = self.settings['PERMALINK_ID_METADATA_KEY']
 permalink_ids_raw = self.metadata.get(permalink_id_key, '')
 for permalink_id in permalink_ids_raw.split(','):
  if permalink_id:
   (yield permalink_id.strip())

def get_permalink_ids_iter ( self ) : permalink_id_key = self . settings [ 'PERMALINK_ID_METADATA_KEY' ] permalink_ids_raw = self . metadata . get ( permalink_id_key , '' ) for permalink_id in permalink_ids_raw . split ( ',' ) : if permalink_id : ( yield permalink_id . strip ( ) )
method to get permalink ids from content .