Example #1
0
    def get(self, login_user=None, template_values={}):
        contact = encode_contact(login_user.me, login_user=login_user, include_attic=False, include_privacy=True)
        template_values['contact'] = contact

        # render search result page
        path = os.path.join(os.path.dirname(__file__), 'take2share.html')
        self.response.out.write(template.render(path, template_values))
Example #2
0
    def get(self, login_user=None, template_values={}):
        contact_key = self.request.get("key", None)

        assert contact_key

        con = Contact.get(contact_key)

        # access rights check
        if not write_access(con,login_user):
            self.error(500)
            return

        contact = encode_contact(con, login_user, include_attic=True)

        # render edit page
        template_values['contact'] = contact
        path = os.path.join(os.path.dirname(__file__), 'take2edit.html')
        self.response.out.write(template.render(path, template_values))