1468ddbecb
towards supporting python 2 and 3
...
- use absolute_imports
- make use of six.moves
- use exec instead of execfile
- use list(dict) instead if dict.keys()
2016-08-25 18:34:36 +02:00
e9863c238e
always use get_operator, avoid case-insensitive match if possible
2016-06-30 11:28:09 +02:00
aa0fbc9d4a
Entity.json: get document ids from join table
...
This is a bit quicker because it's just a lookup in a single table, not
a join.
2016-04-28 14:15:12 +01:00
a8dcbbbe89
Include DocumentProperties.data in Document.json()
2016-03-05 15:07:47 +05:30
a55cbcfb9f
DocumentProperties: add data field
2016-03-05 15:07:47 +05:30
0c98cd080e
Entity.alternativeNames: default to () not [] ( fixes #2896 )
...
Otherwise this:
self.name_find = '||' + '||'.join((self.name,) + self.alternativeNames) + '||'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
fails because () + [] is an error. I guess this must have been
introduced by the DictField/TupleField rewrite.
Without this fix, it is impossible to create a new entity.
Basically the same logic is used for Event and Place too so I've made
the same change to those, and, in passing, fix another copy of the bug
fixed for Entity.name_find in fe7f961
.
2016-03-04 17:11:36 +00:00
8c23bdff6d
Implement DocumentProperties.__unicode__
2016-03-04 12:41:41 +00:00
051a3578b4
inline django 1.9 version of ox.django
2016-02-20 10:41:23 +00:00
1cc795995d
user.get_profile()->user.profile
2016-02-19 22:06:11 +05:30
e22cc432b3
use transaction.atomic
2016-02-19 21:55:09 +05:30
691b3fa934
Entity: only update annotations when name has changed ( fixes #2877 )
...
Just like ace0468
this doesn't exactly fix #2827 , but it does reduce the
unnecessary work.
2016-02-05 19:03:16 +05:30
ace04688f2
Entity.save(): update annotations async ( fixes #2827 , kinda)
2015-09-02 14:32:16 +02:00
j
83013bbe5e
Update items when entities are renamed ( fixes #2825 )
2015-08-26 19:42:03 +02:00
fe7f961ff6
Entity: fix name_find when alternativeNames is non-empty
...
Previously, given:
name = "foo"
alternativeNames = ("bar", "baz")
then:
name_find = '||foobar||baz||'
2015-05-20 12:16:32 +02:00
j
8abed26dc9
make sure alternative names are unique too, also fixes #2754
2015-04-23 17:20:00 +05:30
j
5b7b389661
ignore case checking for existing entities, check for alternative names too, migrate existing double entries, fixes #2754
2015-04-23 12:55:11 +02:00
j
9d3c50fcec
ignore undefined entity data
2015-04-21 15:34:37 +05:30
j
2dc081b8aa
store name, remove unused keys
2015-04-17 16:01:49 +01:00
j
a869c7a89a
extend findEntities to support entity keys and *
2015-04-17 11:17:12 +01:00
j
e851dcabfb
entities are not links
2015-04-16 20:02:31 +00:00
j
1ed91da4e0
fix import
2015-02-26 06:07:18 +00:00
j
deda6252f1
keep entity annotation find/sort values in sync with entities
2015-02-26 06:04:16 +00:00
j
ccfaa7db4a
add entity/document relation
2015-02-13 11:06:09 +00:00
j
ad8db3a293
return html value for entities
2015-02-06 15:11:19 +05:30
j
d492619be6
entity names are only unique by type
2015-02-06 12:42:19 +05:30
j
83393ee385
name must be unicode
2015-02-03 18:44:05 +01:00
j
beca371b43
handle unknown entities.
2014-12-17 19:20:00 +00:00
j
34506d5b99
entity sort name
2014-12-16 17:44:05 +00:00
j
50fcb08a86
pass type
2014-12-16 16:45:35 +00:00
j
536834a03c
use name sort for entities if sortType is person
2014-12-16 15:46:04 +00:00
j
d52dc11b4c
get entity by name
2014-12-16 14:59:21 +00:00
j
b7ab390425
towards entity layer
2014-11-20 13:20:48 +00:00
j
60a7beeb23
add user
2014-11-19 19:21:42 +00:00
j
80ce81ac67
add entities backend
2014-11-18 18:16:28 +00:00