Mantis Issue Tracking for Scribus
· Hosting provided by Anduin.net / Øverby Consulting ·

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008651ScribusScripterpublic09-Dec-16 17:0712-Jul-15 22:58
Reporterale 
Assigned Tojainbasil 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version1.5.0svn 
Target Version1.5.0svnFixed in Version1.5.0svn 
Summary0008651: new scripter engine
Descriptionintegration of the new scripter engine from henning into trunk (1.5svn)
TagsNo tags attached.
Attached Files? file icon scripter.tar.bz [^] (3,758,202 bytes) 09-Dec-16 17:16
patch file icon highlighter.patch [^] (1,747 bytes) 09-Dec-17 04:07 [Show Content]
? file icon highlighter.py [^] (8,095 bytes) 09-Dec-17 04:10
patch file icon compile_fix.patch [^] (4,086 bytes) 10-Apr-13 02:04 [Show Content]

- Relationships

-  Notes
(0022968)
ale (manager)
09-Dec-16 17:11

i got the new scripter to work on my system.

i can run existing scripts, but i can't launch the editor hennings has developed.

steps to install the scripter:

* add the scripter directory into the scribus/plugins/ of your current 1.5svn source files
* edit CMakeLists.txt:
    #IF(NOT WIN32)
      #ADD_SUBDIRECTORY(scriptplugin)
    #ENDIF(NOT WIN32)
    ADD_SUBDIRECTORY(scripter)
* cmake && make && make install
* scripter > run script from file and run scribus_bin_path/lib/scribus/plugin/scripter/example/test.spy

please test it and report wether it works or not.


i can't get any feedback from scribus or gdb when the script editor hangs. please help!


ciao
a.l.e
(0022970)
christoph_s (administrator)
09-Dec-16 19:50

Reminder sent to: h_a_j_s

Any idea?
(0022972)
h_a_j_s (developer)
09-Dec-17 04:19

This is related to a change in Qt 4.5
The issue is mentioned at http://labs.trolltech.com/blogs/2008/11/04/910/ [^]
Attached you will find a fixed highlighter module for scedit.
(0022973)
h_a_j_s (developer)
09-Dec-17 04:30
edited on: 09-Dec-18 23:23

I have looked through the changes, looks good so far :-)

You could also apply the following:
--- scripter_hooks.py.old 2009-10-11 22:57:49.000000000 +0200
+++ scripter_hooks.py 2009-12-17 04:23:11.000000000 +0100
@@ -27,7 +27,7 @@
     def createMenu(self, title):
         m = QMenu(title)
         self.menus.append(m)
- self.menubar.addAction(m)
+ self.menubar.addMenu(m)
         return m


BTW I worked on a new editor widget ( https://launchpad.net/codeaide [^] ) which could replace scedit in the very near future.

(0022976)
ale (manager)
09-Dec-17 14:25

thanks for the comments!

i will have a look at it on friday evening / saturday morning
(0022988)
ale (manager)
09-Dec-18 23:25

everything i've looked at works now...
(0022989)
ale (manager)
09-Dec-19 09:53

i propose that the scripter gets added to 1.5 as currently is (the attached tar.bz + the .py file from henning + the small patch in the comment above).

once it is integrated into 1.5svn, i would go through the scribus functions supported by the scribus and check that all are supported also in the new scripter.

as soon as it is somehow mature, we will then ask for feedback from scripts authors and users.

before pushing it to svn, it would be a good idea to announce it on the -dev list (users of 1.5svn who rely on the scripter should then refrain from updating for a while).

i will have some time between christmas and new year to go through the functions.
(0023209)
cbradney (administrator)
10-Feb-06 00:15

committed code, currently inactive due to some issues found as discussed.
(0023214)
ale (manager)
10-Feb-06 16:35

@craig: checked out, edited makefile and made: i get a scripter menu here. and it works! :-)
i wonder if there is a new dependency involved... (pyqt?)
(0023231)
h_a_j_s (developer)
10-Feb-09 20:46

Fine :)
There should be no new build-dependency. But PyQt is required to run the plug-in. Most distribution install PyQt if you run a full KDE desktop. For Windows there is an installer at http://www.riverbankcomputing.co.uk/software/pyqt/download [^]

I thought about splitting the plug-in into two parts. The first part (scripter-core) would contain the scripting api implementation in C++. The second part (scripter-python) would contain the Python stuff. A possible third plug-in could contain an independent QtScript connection to the api. Other C++ plug-ins could also use this (stable) api to interact with Scribus.

But that's not a very high priority right now IMHO. The question is what the current priority is? What are the next plans?
I would like to submit patches. Should I use this ticket?
(0023232)
cbradney (administrator)
10-Feb-09 21:04

PyQt dependencies are a PITA, at least on OSX.. I am going to build Qt from Macports tonight just for this... and uninstall from the DMG. gr. Oh well.
(0023234)
ale (manager)
10-Feb-10 19:27

hallo h_a_j_s,

personally, i'd like to have the scripter added as soon as possible. there are many requests for new scripter features pending and i don't want to add them them to the old scripter.

i like you idea of cleanly splitting the scripter in two/three modules.

i'd like to give you a hand, but i think that we first have to have a chat on how i can help you!

can you ping me on #scribus or #scribus-dev one of the next evenings, a wednesday or during the weekend?

finally, i think that new patches should go into new bug reports... they will be easier to track (the patches in this report are already applied to the trunk)

have a nice evening and thanks!
a.l.e
(0023243)
cbradney (administrator)
10-Feb-11 23:49

I have python 2.6 + pyqt4 installed on osx now .. but no idea how to make it find those versions of the python files (instead of the system ones) and the pyqt stuff.. so, I am at a loss here.
(0023671)
h_a_j_s (developer)
10-Apr-13 02:17

Hi a.l.e,
sorry the last months I was very busy. I am glad that you would like to give me a hand :) I'll try to hang around #scribus more often again.
The attached small patch gets the plug-in compiling again (doc->itemToolPrefs is now a method).
Greets
Henning
(0023673)
cbradney (administrator)
10-Apr-13 20:52

Latest patch committed, thanks.
(0023678)
h_a_j_s (developer)
10-Apr-13 22:53

cbradney thanks, but please also apply the highlighter patch for scribus/plugins/scripter/python/sceditor/highlighter.py - without it the editor is unusable for Qt >= 4.5

Should I post further improvements as patches here or should I open new bugs for every part?
(0023857)
ale (manager)
10-May-01 14:16

ciao henning,

personally i think it's better to open a bug for each part... easier to track!

ciao
a.l.e
(0028411)
jainbasil (administrator)
12-Jul-10 07:29

New scripter engine added to trunk.

- Issue History
Date Modified Username Field Change
09-Dec-16 17:07 ale New Issue
09-Dec-16 17:11 ale Note Added: 0022968
09-Dec-16 17:16 ale File Added: scripter.tar.bz
09-Dec-16 19:50 christoph_s Note Added: 0022970
09-Dec-17 04:07 h_a_j_s File Added: highlighter.patch
09-Dec-17 04:10 h_a_j_s File Added: highlighter.py
09-Dec-17 04:19 h_a_j_s Note Added: 0022972
09-Dec-17 04:30 h_a_j_s Note Added: 0022973
09-Dec-17 14:25 ale Note Added: 0022976
09-Dec-18 23:23 ale Note Edited: 0022973
09-Dec-18 23:25 ale Note Added: 0022988
09-Dec-19 09:53 ale Note Added: 0022989
09-Dec-19 10:03 christoph_s Status new => assigned
09-Dec-19 10:03 christoph_s Assigned To => cbradney
10-Feb-05 23:21 plinnell Target Version => 1.5.0svn
10-Feb-06 00:15 cbradney Note Added: 0023209
10-Feb-06 16:35 ale Note Added: 0023214
10-Feb-09 20:46 h_a_j_s Note Added: 0023231
10-Feb-09 21:04 cbradney Note Added: 0023232
10-Feb-10 19:27 ale Note Added: 0023234
10-Feb-11 23:49 cbradney Note Added: 0023243
10-Feb-12 00:00 cbradney Assigned To cbradney => ale
10-Apr-13 02:04 h_a_j_s File Added: compile_fix.patch
10-Apr-13 02:17 h_a_j_s Note Added: 0023671
10-Apr-13 20:52 cbradney Note Added: 0023673
10-Apr-13 22:53 h_a_j_s Note Added: 0023678
10-May-01 14:16 ale Note Added: 0023857
12-Jun-20 23:11 cbradney Assigned To ale => jainbasil
12-Jul-10 07:29 jainbasil Note Added: 0028411
12-Jul-10 07:29 jainbasil Status assigned => closed
12-Jul-10 07:29 jainbasil Resolution open => fixed
12-Jul-10 07:29 jainbasil Fixed in Version => 1.5.1
12-Jul-15 22:58 jghali Fixed in Version 1.5.1 => 1.5.0svn



Copyright © 2000 - 2013 MantisBT Team
Powered by Mantis Bugtracker