Yann Weber
f6001dbd20
Add a numeric PK for lodelsite EmClass. solves #255
7 роки тому
Yann Weber
d202a55773
Bugfixes in LodelSiteDatasource
Now we are able to insert a lodelsite
7 роки тому
Quentin Bonaventure
a33f1daaeb
Added basic User class to the EM
7 роки тому
Yann Weber
695ce80fc5
Merge branch 'master' into lodelsites-dev
7 роки тому
Yann Weber
fa8bf06f15
Make runtest.sh exit status consistent solves #249
7 роки тому
Quentin Bonaventure
8a8a624cb7
Correction of lodelsites plugin scripts
7 роки тому
Yann Weber
a65b87d596
Deleted more from runtest.sh solves #249
7 роки тому
Quentin Bonaventure
a3e048dcd3
Fix of the fix of base_class
7 роки тому
Quentin Bonaventure
a3eb448093
Fix on base_classes
7 роки тому
Yann Weber
df2c6810a6
[broken] First LodelSiteDatasource implementation
no debug has been made on those piece of code
7 роки тому
Quentin Bonaventure
819e9f62cf
Added check against primary_key and uniq
As a primary_key field has to be unique, added a check at DataHandler
instanciation to make sure a field set as a pk is not set as non-unique
7 роки тому
Quentin Bonaventure
5f304cd64e
Switched shortname to primary_key
Modified the shortname's DH attribute value from uniq to primary_key
7 роки тому
Quentin Bonaventure
94e7cf412a
Changed shortname DH
Switched the shortname field's DH from Varchar to Regex
7 роки тому
Quentin Bonaventure
c4289764ec
Created and added varcharlist DH to lodelsites EM
7 роки тому
Quentin Bonaventure
ec6da44b47
Adding the lodelsites_em.py for EM generation
No knowing what datahandler ought to be used for em_groups, I simply set
'text' in place of it. To be changed accordingly
7 роки тому
prieto
086dd471cb
Remove useless and wrong import
7 роки тому
prieto
4fb0c89ddb
Utilisation is_exist
7 роки тому
Yann Weber
d89203665b
Updated tests on Plugin class
The Plugin class and discover steps were updated. Some test are deleted
because they were obsolete (discover method do not take any argument
anymore)
7 роки тому
prieto
54b1521d09
Adds LeQuery.is_exist function to test the existence of an LeObject instance
7 роки тому
prieto
e9a0b7a924
Small correction
7 роки тому
prieto
27eab69422
Corrects slim -h error
7 роки тому
prieto
084b2dd5f0
Corrects an error
7 роки тому
prieto
588efa485e
Small corrections
7 роки тому
prieto
a66e5d2d30
Add a check that the given value points onto an allowed class
7 роки тому
Roland Haroutiounian
adfe7b886a
Fixed some methods' documentation
7 роки тому
prieto
610b4d4f55
Tests enhancements 3
7 роки тому
Yann Weber
163b4cba88
Enhancement of some autotools actions
Warning, may contains some bugs !!!
7 роки тому
Yann Weber
278d10bf43
Written some tests for PluginVersion
7 роки тому
Yann Weber
a0bf4c1176
Bugfixes in PluginVersion comparison functions
7 роки тому
Quentin Bonaventure
8d68809694
Added symlink on install
7 роки тому
prieto
e6381cc70a
Tests enhancements 2
7 роки тому
prieto
f612e62fbc
Tests enhancements
7 роки тому
Quentin Bonaventure quentin.bonaventure@openedition.org
5055b2a6ef
Merge remote-tracking branch 'origin/master'
7 роки тому
Quentin Bonaventure
c880c99316
Tests for Boolean and Plugin
7 роки тому
Yann Weber
08bcdbe57b
Starts implementation of uninstall plugins action
For the moment there is only uninstalling by name that works because #207
7 роки тому
Yann Weber
0a93191207
Syntax error bugfix
7 роки тому
Yann Weber
eac6df20fa
Adding a -c --clean option to plugins action in lodel_admin
Clean take care of deleting plugins with same name and different versions
(the lower versions will be deleted)
7 роки тому
Yann Weber
5706810928
Enhancement in plugins-list lodel_admin action
Now in verbose mode we are printing all plugins, even those with duplicated
names and different versions
7 роки тому
Yann Weber
74893c76fb
Bugfixes in PluginVersion
7 роки тому
Yann Weber
0fc2b6ad0f
Add an action allowing to install plugins in lodel_admin
the action is named plugins
7 роки тому
Yann Weber
4277576b99
Begining to write plugins scripts
For the moment a new action for lodel_admin has been added : list-plugins
With two options : verbosity and output formatted in CSV
7 роки тому
Yann Weber
aa1c0fb40c
Updated comments for lodel.plugin.plugins
fixes #205
7 роки тому
Yann Weber
31a18f37fe
Updated plugins beahavior according to lodelContext
Now discover is run when we want to know the list of installed plugins.
+ bugfix in module name generation (only in the constructor) to take care
of possible subdirs
7 роки тому
Quentin Bonaventure
daa16b93e1
Removed strange import
Removed the "from .datasource_plugin import DatasourcePlugin" in
Plugin.register
7 роки тому
Quentin Bonaventure
dab816f228
Removed repeated conditionnal statements
The exact same conditionnal statement throwing error if ptype is unknown
in Plugin.register() is already executed by
MetaPlugType.type_from_name(), which is called right after it. Guessing
which class should be concerned by such a check, I ended up removing it
in Plugin.
7 роки тому
Quentin Bonaventure
ff5c13929a
Proposed change for test_text.py
7 роки тому
Quentin Bonaventure
bf4540c1b1
Cleaned tests
7 роки тому
Quentin Bonaventure
a9e90b7368
Proposed rewrite of test_regex
Here is a rewritten test suite for Regex DataHandler. This rewrite aims
at being lighter, more readable, accurate.
7 роки тому
Quentin Bonaventure
ef60a76d68
ConcatTestCase rewrite
The previous test was testing FormatString.construct_data which is
irrelevant to this test case. Thus, I rewrote it to test what Concat
does : format a format_string to initialize FormatString with.
7 роки тому
Quentin Bonaventure
dd8dde4395
Removed useless assertions
7 роки тому