View Issue Details

IDProjectCategoryView StatusLast Update
0008226ScribusScripterpublic2009-07-01 22:05
Reporterjameyhg Assigned Tojghali  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Platformwin32OSWindows XPOS VersionSP3
Product Version1.3.5svn 
Fixed in Version1.3.5svn 
Summary0008226: Scripter doesn't allow setting object names (AutoName = true)
DescriptionWhen you use the Scripter plugin to create objects, such as text or image boxes, their object names are not preserved when saving the document. Everything is renamed sequentially: Image1, Image2... Text1, Text2 and so on.
Steps To ReproduceCreate a new Python script containing the following:

----------
import scribus

scribus.createText(150, 150, 300, 300, "ourTextBoxNamed")
scribus.setText("Some example text", "ourTextBoxNamed")
----------

Make a new document in Scribus, run this simple script and then open up the Properties window on the text box it creates. Notice the object's name is "ourTextBoxNamed". Now save the document somewhere, close it and re-open it in Scribus.

You will notice the name of text box has been changed to "Text1".
TagsNo tags attached.
Patch

Relationships

has duplicate 0006486 closedsubik Names of objects created via script are not remembered 

Activities

jameyhg

2009-06-29 08:57

reporter   ~0022051

I added "AutoName = false;" to the end of PageItem::setItemName() in pageitem.cpp, after line 2225. This is a quick workaround fix for this problem.

jghali

2009-06-29 18:08

administrator   ~0022055

PageItem::setItemName() must not set the AutoName property. Fixed by modifying scripter directly.

Issue History

Date Modified Username Field Change
2009-06-29 07:55 jameyhg New Issue
2009-06-29 08:57 jameyhg Note Added: 0022051
2009-06-29 18:08 jghali Note Added: 0022055
2009-06-29 18:08 jghali Status new => resolved
2009-06-29 18:08 jghali Fixed in Version => 1.3.5svn
2009-06-29 18:08 jghali Resolution open => fixed
2009-06-29 18:08 jghali Assigned To => jghali
2009-07-01 22:05 cbradney Status resolved => closed
2009-11-05 20:21 jghali Relationship added has duplicate 0006486