View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0010133 | Scribus | Scripter | public | 2011-07-14 15:38 | 2014-10-08 23:18 |
Reporter | ale | Assigned To | jainbasil | ||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | assigned | Resolution | open | ||
Product Version | 1.5.0svn | ||||
Summary | 0010133: scripter-ng: check if it would be possible to make the scripter access functions defined in plugins... | ||||
Description | ... would it be possible (or is it already possible?) that the scripter can accesses -- as an example -- the barcode generator? | ||||
Tags | No tags attached. | ||||
Patch | |||||
|
Scripter must not access directly plugin functions. Plugins are plugins and consequently one must not suppose their availability at any moment. Plugin functionnalities must be accessed from Scribus plugin interface, which is already possible. See scribus_placevec() function in current scripter svgimport.cpp for an example on how to do that. |
|
i'm very well aware that the access to "missing" plugins must be solved. the question is if each "plugin call" in the scripter API should sort it out or if the scripter should have a general mechanism to gracefully fail if a command related to a missing plugin is called. i mean: currently we have scribus_placevec() which is always available but won't return any result (i guess) if the svg plugin is not there. in the future we may have the plugin defining its API and all calls to plugin.* to gracefully fail if the plugin is not there.. or am i on the wrong path? |
|
Wrong path... If a plugin define its own api and is not there, then all call to plugin.* will have *no* way to fail gracefully as plugin.* will not be declared and by consequence will trigger a python exception. And Scribus will not be able to handle those exceptions by itself, they will have to be handled by scripts. Currently scribus_placevec() handle missing plugins gracefully, returns null and set an error string in those case. |
Date Modified | Username | Field | Change |
---|---|---|---|
2011-07-14 15:38 | ale | New Issue | |
2011-07-14 15:38 | ale | Status | new => assigned |
2011-07-14 15:38 | ale | Assigned To | => jainbasil |
2011-07-14 16:39 | jghali | Note Added: 0026596 | |
2011-07-17 13:33 | ale | Note Added: 0026608 | |
2011-07-17 13:55 | jghali | Note Added: 0026609 | |
2011-07-17 21:49 | jghali | Note Edited: 0026609 | |
2011-07-19 09:30 | StefanM | Tag Attached: script | |
2014-10-08 23:18 | Kunda | Tag Detached: script |