View Issue Details

IDProjectCategoryView StatusLast Update
0015515ScribusScripterpublic2020-03-31 10:15
Reporterale Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version1.5.5.svn 
Target VersionFixed in Version 
Summary0015515: scripter API. cannot create new pages when there are multiple masterpages
Descriptionif there is only one master page (the default for for a single layouted page) there is no problem.

if there are multiple master pages (the default for a double layouted page) the scripter crashes with the error

Traceback (most recent call last):
  File "<string>", line 8, in <module>
  File "/tmp/t/lot_forum/jpg-album.py", line 59, in <module>
    scribus.newPage(-1)
IndexError: Given master page name does not match any existing.

scribus should behave in the same way as it does when one adds a page in the GUI and use the "default" left and right master pages.
TagsNo tags attached.
PatchNo

Activities

ale

2018-12-17 20:00

manager   ~0045724

it also seems to be impossible to know what the left and right master pages are.
using the indexes in the list won't work, since french and english have different alphabetical order.

jghali

2018-12-17 20:25

administrator   ~0045725

Unable to reproduce, works here.

ale

2018-12-17 20:56

manager   ~0045726

Last edited: 2018-12-17 21:02

View 3 revisions

ok, got where the problem comes from...

create a double sided file with a "french" scirbus.

open it with an english scribus get a script to create a page and boom : - )

one more time: scribus should not expose its internal values to the user... not for the colors, not for the item names, not for the master pages...
(ps:: not for everything that gets translated!)

ale

2018-12-19 13:17

manager   ~0045727

jean, could you replicate?

jghali

2018-12-19 14:08

administrator   ~0045728

I have not tried again yet.

alexwriter

2020-03-31 10:15

reporter   ~0047484

Thanks

bug.pdf (56,734 bytes)

Issue History

Date Modified Username Field Change
2018-12-17 19:59 ale New Issue
2018-12-17 20:00 ale Note Added: 0045724
2018-12-17 20:25 jghali Note Added: 0045725
2018-12-17 20:56 ale Note Added: 0045726
2018-12-17 20:57 ale Note Edited: 0045726 View Revisions
2018-12-17 21:02 ale Note Edited: 0045726 View Revisions
2018-12-19 13:17 ale Note Added: 0045727
2018-12-19 14:08 jghali Note Added: 0045728
2020-03-31 10:15 alexwriter File Added: bug.pdf
2020-03-31 10:15 alexwriter Note Added: 0047484