accerciser r414 - in trunk: . plugins
- From: parente svn gnome org
- To: svn-commits-list gnome org
- Subject: accerciser r414 - in trunk: . plugins
- Date: Fri, 11 Jan 2008 03:01:28 +0000 (GMT)
Author: parente
Date: Fri Jan 11 03:01:27 2008
New Revision: 414
URL: http://svn.gnome.org/viewvc/accerciser?rev=414&view=rev
Log:
* Fixed path bug
* Added to make process
Modified:
trunk/Makefile.am
trunk/configure.in
trunk/plugins/Makefile.am
trunk/plugins/validate.py
Modified: trunk/Makefile.am
==============================================================================
--- trunk/Makefile.am (original)
+++ trunk/Makefile.am Fri Jan 11 03:01:27 2008
@@ -1,4 +1,4 @@
-SUBDIRS = doc help icons plugins po src pixmaps
+SUBDIRS = doc help icons plugindata plugins po src pixmaps
INTLTOOL = \
intltool-extract.in \
Modified: trunk/configure.in
==============================================================================
--- trunk/configure.in (original)
+++ trunk/configure.in Fri Jan 11 03:01:27 2008
@@ -44,6 +44,8 @@
icons/Makefile
pixmaps/Makefile
plugins/Makefile
+plugindata/Makefile
+plugindata/validate/Makefile
po/Makefile.in
src/accerciser
src/Makefile
Modified: trunk/plugins/Makefile.am
==============================================================================
--- trunk/plugins/Makefile.am (original)
+++ trunk/plugins/Makefile.am Fri Jan 11 03:01:27 2008
@@ -8,5 +8,7 @@
ipython_view.py \
quick_select.py \
script_recorder.glade \
- script_recorder.py
+ script_recorder.py \
+ validate.glade \
+ validate.py
EXTRA_DIST = $(plugins_DATA)
Modified: trunk/plugins/validate.py
==============================================================================
--- trunk/plugins/validate.py (original)
+++ trunk/plugins/validate.py Fri Jan 11 03:01:27 2008
@@ -25,7 +25,7 @@
GLADE_FILE = os.path.join(os.path.dirname(__file__), 'validate.glade')
USER_SCHEMA_PATH = os.path.join(os.environ['HOME'], '.accerciser',
'plugindata', 'validate')
-SYS_SCHEMA_PATH = os.path.join(sys.prefix, 'accerciser',
+SYS_SCHEMA_PATH = os.path.join(sys.prefix, 'share', 'accerciser',
'plugindata', 'validate')
VALIDATORS = {}
SCHEMA_METADATA = {}
@@ -176,13 +176,14 @@
self.schema = self.main_xml.get_widget('schema combo')
# model for the combobox
- model = gtk.ListStore(gobject.TYPE_STRING)
+ model = gtk.ListStore(gobject.TYPE_STRING, gobject.TYPE_STRING)
self.schema.set_model(model)
# append all schema names/descriptions
vm = ValidatorManager
- for d in [vm.getSchemaMetadata(name) for name in vm.listSchemas()]:
- model.append(['%s - %s' % (d['name'], d['description'])])
+ for name in vm.listSchemas():
+ d = vm.getSchemaMetadata(name)
+ model.append(['%s - %s' % (d['name'], d['description']), name])
self.schema.set_active(0)
# model for the report
@@ -250,7 +251,9 @@
# clear the report
self.report.get_model().clear()
# get the validators
- self.vals = ValidatorManager.getValidators('basic')
+ index = self.schema.get_active()
+ row = self.schema.get_model()[index]
+ self.vals = ValidatorManager.getValidators(row[1])
# build a new state dict
state = {}
# build our walk generator
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]