<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_permalink_path(self):
 """Get just path component of permalink."""

    try:
        first_permalink_id = next(self.get_permalink_ids_iter())
    except StopIteration:
        return None

    return '/{settings[PERMALINK_PATH]}/{first_permalink}.html'.format(
        settings=self.settings, first_permalink=first_permalink_id)