prieto
50560c8496
Changes to slim for LodelContext
2016-11-03 16:03:14 +01:00
Roland Haroutiounian
360a60fee7
LodelContext is used in the lodelsite starting process
2016-11-03 14:57:39 +01:00
Yann
5981bdc0e5
Various bugfix in LodelContext integration
...
- Replaced some "hidden" import with LodelContext.expose_modules calls
- in some functions of Setting, Plugin, validator
- in loader.py (temporary version)
In this state the tests runs (151 success), I'm able to run an instance (from debian package using slim) in MONOSITE mode and in MULTISITE mode by creating and loading a context in the loader.
2016-11-03 10:58:38 +01:00
Yann
8085efeb99
Replaced all lodel subthings import by LodelContext.expose_modules calls
...
Test passes
2016-11-02 16:24:22 +01:00
Yann
1257e49de6
Add the possibility to indicate an alias when exposing a list of objects
...
Changed the exposure specs to allow giving an alias for an object when importing using the from x import y,z form
2016-11-02 16:22:54 +01:00
Yann
572c408a79
POC of context manager to handle virtual lodel packages
2016-11-02 14:34:27 +01:00
prieto
2d8a9811e6
Some adjustments and corresions
2016-10-06 09:03:07 +02:00
Yann
0b60a24582
Bugfixes on back reference handling for singleRef solves #154
2016-09-30 17:26:30 +02:00
Yann
2010fb29e8
empty method implementation for Reference objects
2016-09-30 14:15:27 +02:00
Yann
949320298d
Another bugfix on get_from_uid LeObject method
...
When not found return None and do not try to run len() on None
2016-09-30 14:14:00 +02:00
Yann
8a1aef8d68
Enhancement of LeObject get_from_uid method
...
Return an instance and not a list of len 1 anymore
2016-09-30 11:56:27 +02:00
Yann
78e3dca30b
MultipleRef datahandlers bugfixes
...
In construct and check data
2016-09-30 11:55:41 +02:00
prieto
e4214a1705
Bugfixes
2016-09-29 09:43:48 +02:00
prieto
43bf90d1ca
Bugfixes
2016-09-29 09:18:38 +02:00
prieto
d7b2feb35a
Bugfixe
2016-09-28 17:42:03 +02:00
prieto
f9000bbc83
Bugfixes
2016-09-28 17:28:39 +02:00
Yann
8f48612c82
Enables debian package creation
...
with make deb . Next commit will update the README
2016-09-23 14:34:57 +02:00
Yann
629ac94dc8
Avoiding fails at session_restore
...
Before when session restore fails the webui was answering "Unknown status 200" as content.
Now it produce 2 log messages (maybe)
2016-09-23 10:12:19 +02:00
Yann
58b88b0b97
[broken] Fixes validator issues + confspec call
...
broken nginx conf + absolute path in slim that is known only at build time
2016-09-22 17:34:15 +02:00
Yann
a51e0a37cf
fix a comment
2016-09-22 15:22:26 +02:00
Yann
9e3f66b403
Bugfix in autotools dist make target
2016-09-22 14:11:48 +02:00
Yann
39a5ba77cc
Small bugfix in plugins error message
2016-09-21 17:14:51 +02:00
Yann
ca4952a264
webui & slim enhancement
...
Adds a LODEL2LOGDIR to buildconf.py
Adds a nginx-conf option to slim
...
2016-09-16 16:45:37 +02:00
Yann
43ca4e4c52
Add a data to buildconf.py
...
It a real buildtime variable, the localestatedir
2016-09-16 14:14:31 +02:00
m.orban
556bea1f73
Added comment to bases_classes
2016-09-16 11:38:42 +02:00
Yann
e6e4a03a27
Enhancement in SLIM capabilities + bugfixes in install process
...
SLIM is now able to edit configuration from CLI, to start instances etc.
2016-09-14 16:01:57 +02:00
Yann
2ce93cc452
Enhancement in settings_loader.py : better support for empty values
...
when a value is composed only with space tabs etc consider it as None
2016-09-08 15:39:29 +02:00
Yann
9d273e6fef
Add a new sttings validator + use it
...
- Written a new custom_list validator, it takes another validator name as argument (in order to validate items of list)
- Using it to validate list of plugins names
2016-09-08 14:48:35 +02:00
m.orban
06609ca238
Added tests for MultiRef datahandler and modified _check_data_value raise exception
2016-09-08 13:57:08 +02:00
m.orban
c270977e4e
Added test for multiple references
2016-09-08 09:27:55 +02:00
Roland Haroutiounian
bda7779166
Changed the filesystem_session handler and added new commands to the sessionhandler (to add, del and read values from the session)
2016-09-07 17:42:36 +02:00
Yann
c7553748f0
Moved both classes un lodel/plugin/datasource_plugin.py + check inheritance
...
Implements the check of the bases classes of a datasource class in a datasource plugin ( solves #144 )
2016-09-07 17:27:02 +02:00
prieto
2f68c55f65
Bugfixes due to datahandler changes
2016-09-07 17:11:12 +02:00
Yann
3e4231e871
Add an abtract datasource to make Datasource classes of plugins inherit from it
...
refs #132
2016-09-07 16:55:02 +02:00
Yann
4507b22fad
Bugfixes on SettingValidator class
2016-09-07 16:36:59 +02:00
m.orban
6edda9f5ba
Started to implement test for reference datahandler
2016-09-07 16:33:01 +02:00
m.orban
08f07d45a8
Modified and added test for varchar. Modified strict test for datahandler integer
2016-09-07 14:40:39 +02:00
m.orban
a6cc69294a
Modified test for datetime datahandler
2016-09-07 14:11:11 +02:00
m.orban
f9d41368ab
Modified and added test unit for integer datahandler
2016-09-07 14:11:11 +02:00
Yann
e602e009ad
Bugfixes in backref handling in mongodb datasrouce refs #131
...
Now backref seems to work at creation of a Person linked with a text the Person UID is appended to Text.linked_persons
2016-09-07 12:33:00 +02:00
prieto
37621c8ba5
Merge branch 'master' of git.labocleo.org:lodel2
2016-09-07 10:57:38 +02:00
prieto
6eef088a5c
Bugfixe in Client.py
2016-09-07 10:57:30 +02:00
Yann
66d08738dc
Bugfixes in Backref process refs #131 and in Integer dh
...
Triggered a bug in wrong Integer DH tests
2016-09-07 10:48:10 +02:00
Yann
622d486b0a
Small bugfixes in Integer DH and Update query class
2016-09-07 10:39:24 +02:00
Yann
61e892fe61
Implements an empty() classmethod for multiref datahandlers
...
Return the value of this datahandler when empty
2016-09-07 10:22:42 +02:00
Yann
0b443a6d93
Various bugfixes in DataHandlers
...
refs #131
2016-09-07 09:50:41 +02:00
Yann
60acfd80f1
Dedeuplication bufix in prepare_filter
...
The dedup mechanism was using a cast of list to set. But sometimes, filters contains list, and list are not hashable...
2016-09-07 09:49:33 +02:00
Yann
ae9829d31d
Bugfix in Reference abstract DataHandler class
...
refs #131
2016-09-07 09:26:45 +02:00
Yann
4e90475dbf
Continuing mongodb backreference implementation
2016-09-05 08:52:42 +02:00
m.orban
67bd4087a9
Moved new class exceptions in exceptions.py
2016-09-02 17:48:55 +02:00