Пример #1
0
    def __init__(self, data=None):
        """
            If initialized with data, this will parse the JSON and extract
            the attributes back into our class definitions.

            @param data: JSON string defining this object
        """

        self.person_id = None
        self.user_is_submitter = None
        self.origin_node_id = None
        self.submission_id = None
        self.picture_id = None
        self.timestamp = None
        self.submitter_id = None

        self.node_info = db.db_node_info()
        self.submitter_info = db.db_submitter_info()
        self.person_bio = db.db_person_bio()
        self.person_description = db.db_person_description()
        self.person_contact = db.db_person_contact()
        self.person_picture = db.db_person_pictures()
        self.person_links = db.db_person_links()
        self.person_message = db.db_person_messages()

        self.data_picture = db.db_pictures()

        if data is not None:
            self.__unpack__(data)
Пример #2
0
     def __init__(self, data=None):
        """
            If initialized with data, this will parse the JSON and extract
            the attributes back into our class definitions.

            @param data: JSON string defining this object
        """

        self.person_id = None
        self.user_is_submitter = None
        self.origin_node_id = None
        self.submission_id = None
        self.picture_id = None
        self.timestamp = None
        self.submitter_id = None

        self.node_info = db.db_node_info()
        self.submitter_info = db.db_submitter_info()
        self.person_bio = db.db_person_bio()
        self.person_description = db.db_person_description()
        self.person_contact = db.db_person_contact()
        self.person_picture = db.db_person_pictures()
        self.person_links = db.db_person_links()
        self.person_message = db.db_person_messages()

        self.data_picture = db.db_pictures()

        if data is not None:
            self.__unpack__(data)
Пример #3
0
    def __init__(self, data=None):
        """
            If initialized with data, this will parse the JSON and extract
            the attributes back into our class definitions.

            @param data: JSON string defining this object
        """
        self.origin_node_id = None
        self.submission_id = None
        self.timestamp = None

        self.node_info = db.db_node_info()
        self.submitter_info = db.db_submitter_info()

        if data is not None:
            self.__unpack__(data)
Пример #4
0
     def __init__(self, data=None):
        """
            If initialized with data, this will parse the JSON and extract
            the attributes back into our class definitions.

            @param data: JSON string defining this object
        """
        self.origin_node_id = None
        self.submission_id = None
        self.timestamp = None

        self.node_info = db.db_node_info()
        self.submitter_info = db.db_submitter_info()

        if data is not None:
            self.__unpack__(data)