Skip to main content
Mar 16, 2020 3:50 AM UTC
Solved

CREOSON: What's the hidden purpose that I don't understand?

I tried equivalent functions listed in the manual https://creopyson.readthedocs.io/en/latest/modules.html for example:

  1. Called through a client session : c.drawing_get_sheet_format(1)
  2. Called from Creopyson module : creopyson.drawing.get_sheet_format(c,1)

And I found that they return the same result. Please ignore the specific example of "get_sheet_format"

my question is : why there are two ways to call the same function?

ZepmanAnswer
Mar 16, 2020 1:48 PM UTC

Hi

there is no hidden purpose, the client session way is the simpliest way.

The other exists because of the structure of the librairy

2 replies

Mar 16, 2020 1:28 PM UTC

That is really a package / library question for the developer ... I would post that question on: 

 

https://github.com/Zepmanbc/creopyson/issues

 

 

 

 

ZepmanAnswer
Mar 16, 2020 1:48 PM UTC

Hi

there is no hidden purpose, the client session way is the simpliest way.

The other exists because of the structure of the librairy