Hyper Open Edge Cloud

Guideline Python Method Name Must Be Prefixed With Portal Type

The context should always be visible.
  • Last Update:2017-04-06
  • Version:001
  • Language:en

Python Script Method Name Be Prefixed With Portal Type

Python scripts in the OFS are meant to be called on the context of a portal type, then the naming must follow: PortalType_methodName

Good Example:

AccountingTransactionLine_getSourceItemList
PurchaseInvoiceTransaction_init

Bad Example:

getSourceItemList