@staticmethod
    def generate_sender():
        try:
            user_id = current.auth.user.id
        except AttributeError:
            return ""

        return "%s/%d" % (current.xml.domain, user_id)

    # -------------------------------------------------------------------------
Generate a sender for a new form
dataset/ETHPy150Open sahana/eden/modules/s3db/cap.py/S3CAPModel.generate_sender