1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2026-08-08 13:28:37 +02:00
Commit graph

20 commits

Author SHA1 Message Date
Roland Haroutiounian
4f8c7a22bb [#61] Added the prototype for the get method in LeDataSource class 2015-10-21 11:11:07 +02:00
Roland Haroutiounian
a0f8196e05 [#61] Added the LeDataSource file 2015-10-21 11:11:06 +02:00
Yann
c48147e732 Correct the _LeObject.get() method and add some methods to LeType
Now the _LeObject.get() method should be able to return LeType child classes instance
LeType has two new methods :
	- LeTypes.datas() @property method that returns a dict(FIELDNAME:FIELDVALUE)
	- LeType.populate() that fetch from datassource missing fieldvalues
2015-10-21 11:08:00 +02:00
Yann
0f0a636eac Add LeObject._me_uid dict populate in LeFactory + code factorisation 2015-10-21 10:57:52 +02:00
Yann
589d7f2eef Changed the way LeFactory generates python code
Added a test on LeFactory generated code
2015-10-21 09:47:30 +02:00
Yann
250aa9e0ff Add a class attribute to LeObject that maps EditorialModel uid with LeType and LeClass python class 2015-10-16 17:05:29 +02:00
Yann
756b0e0b0b Test were broken by previous commit... 2015-10-16 16:48:30 +02:00
Yann
4d445e876e _LeObject.get() enhancement 2015-10-16 16:42:33 +02:00
Yann
6123d23be4 Update the _LeObject.get() method to handle relationnal filters 2015-10-16 16:22:10 +02:00
Yann
2c37a9bf46 Update the quer_filter spliting method to handle superior.nature field notation.
Update the associated tests
2015-10-16 15:46:01 +02:00
Yann
0c51d6a483 Added some class property to LeFactory generated classes to avoid Model calls 2015-10-16 14:05:18 +02:00
Yann
482378fb18 Started some method implementation form _LeObject and LeType
Methods are _LeObject.get() and LeType.check_datas()
2015-10-16 14:05:18 +02:00
Yann
24aa04a913 Added a _split_query method to _LeObject
This method split a string in a tuple(FIELD, OPERATOR, VALUE)
2015-10-15 17:17:47 +02:00
Yann
215b51a566 [untested, dev] Updated the code for leobject, leclass and letype
This commit is in "work in progress state" all the code is not consistent
2015-10-14 17:30:10 +02:00
Yann
896c061327 [LeFactory] changed the way LeType and LeClass stores fieldgroups, fields and fieldtypes 2015-10-14 16:59:36 +02:00
Yann
f27bb26f9a Introduction of LeFactory and its generatePython method
LeFactory.generatePython() is a method that generate LeObject code and python classes for each EmClass and EmType in an EditorialModel
2015-10-14 16:18:06 +02:00
ArnAud
28c068712a LeObject: first shot at _prepare_filters() 2015-10-14 10:50:41 +02:00
Roland Haroutiounian
eb9cafa94b Turned leobject/datasources into a module 2015-10-09 09:21:46 +02:00
Roland Haroutiounian
996c4f4222 Added the init file to turn leobject into a module 2015-10-09 09:08:27 +02:00
ArnAud
535c8b7e22 LeObject: begining of implementation 2015-10-08 17:22:46 +02:00