GXINTERNET class

class GXINTERNET(handle=0)[source]

GXINTERNET class.

This library provides functions for accessing the internet and MAPI-compliant e-mail services. Supported by Oasis montaj ONLY.

__init__(handle=0)[source]

Initialize self. See help(type(self)) for accurate signature.

classmethod download_http(url, file, size)[source]

Download GXHTTP file from the internet to file.

Parameters
  • url (str) – GXHTTP URL

  • file (str) – File Name to save to

  • size (int) – No longer used, just pass 0

Returns

0 - Ok 1 - Error

Return type

int

New in version 5.0.

License: Geosoft End-User License

Note: The file must be stored on a server that supports the GXHTTP protocol and not require a password.

See also

iserver.gxh internet class.

is_null()[source]

Check if this is a null (undefined) instance

Returns

True if this is a null (undefined) instance, False otherwise.

Return type

bool

classmethod null()[source]

A null (undefined) instance of GXINTERNET

Returns

A null GXINTERNET

Return type

GXINTERNET

classmethod send_mail(recipient, p2, p3, p4, p5, p6, p7, p8)[source]

Prepaire an email for the user.

Parameters
  • recipient (str) – Recipient Name (“” for none)

  • p2 (str) – Recipient Address (“” for none)

  • p3 (str) – szSubject (“” for none)

  • p4 (str) – Message Text (“” for none)

  • p5 (str) – Attachment1 File Name (“” for none)

  • p6 (str) – Attachment1 User Name (“” for none)

  • p7 (str) – Attachment2 File Name (“” for none)

  • p8 (str) – Attachment2 User Name (“” for none)

New in version 5.0.

License: Geosoft End-User License

Note: Requires a MAPI complient mail system to be installed on the client machine.