def archive_url(self, subject):
    assignment_context = find_portlet_assignment_context(self.data, self.context)
    if (assignment_context is None):
        assignment_context = self.context
    self.folder_url = assignment_context.absolute_url()
    sub = urllib2.quote(subject.encode('utf-8'))
    url = ('%s/%s?category=%s' % (self.folder_url, self.data.archive_view, sub))
    return url
def archive_url(self, subject):
    assignment_context = find_portlet_assignment_context(self.data, self.context)
    if (assignment_context is None):
        assignment_context = self.context
    self.folder_url = assignment_context.absolute_url()
    sub = urllib2.quote(subject.encode('utf-8'))
    url = ('%s/%s?category=%s' % (self.folder_url, self.data.archive_view, sub))
    return url