def METHOD_NAME(self, action):
    data, errors = self.extractData()
    if errors:
        self.status = self.formErrorsMessage
        return
    CheckAuthenticator(self.request)
    if not self.available():
        self.status = _(
            "text_not_allowed_manage_server",
            default="You are not allowed to manage the Zope server.",
        )
        return
    days = data.get("days", None)
    # skip the actual pack method in tests
    if days is not None and isinstance(days, int) and days >= 0:
        db = self.portal()._p_jar.db()
        t = time.time() - (days * 86400)
        db.pack(t)
    self.status = _("Packed the database.")