Browse Source

fieldtypes: use relative import

ArnAud 9 years ago
parent
commit
147cadc377

+ 1
- 1
EditorialModel/fieldtypes/bool.py View File

1
 #-*- coding: utf-8 -*-
1
 #-*- coding: utf-8 -*-
2
 
2
 
3
-from EditorialModel.fieldtypes.generic import GenericFieldType
3
+from .generic import GenericFieldType
4
 
4
 
5
 
5
 
6
 class EmFieldType(GenericFieldType):
6
 class EmFieldType(GenericFieldType):

+ 1
- 1
EditorialModel/fieldtypes/char.py View File

1
 #-*- coding: utf-8 -*-
1
 #-*- coding: utf-8 -*-
2
 
2
 
3
-from EditorialModel.fieldtypes.generic import GenericFieldType
3
+from .generic import GenericFieldType
4
 
4
 
5
 
5
 
6
 class EmFieldType(GenericFieldType):
6
 class EmFieldType(GenericFieldType):

+ 1
- 1
EditorialModel/fieldtypes/datetime.py View File

1
 #-*- coding: utf-8 -*-
1
 #-*- coding: utf-8 -*-
2
 
2
 
3
-from EditorialModel.fieldtypes.generic import GenericFieldType
3
+from .generic import GenericFieldType
4
 
4
 
5
 
5
 
6
 class EmFieldType(GenericFieldType):
6
 class EmFieldType(GenericFieldType):

+ 1
- 1
EditorialModel/fieldtypes/file.py View File

1
 #-*- coding: utf-8 -*-
1
 #-*- coding: utf-8 -*-
2
 
2
 
3
-from EditorialModel.fieldtypes.generic import GenericFieldType
3
+from .generic import GenericFieldType
4
 
4
 
5
 
5
 
6
 class EmFieldType(GenericFieldType):
6
 class EmFieldType(GenericFieldType):

+ 1
- 1
EditorialModel/fieldtypes/integer.py View File

1
 #-*- coding: utf-8 -*-
1
 #-*- coding: utf-8 -*-
2
 
2
 
3
-from EditorialModel.fieldtypes.generic import GenericFieldType
3
+from .generic import GenericFieldType
4
 
4
 
5
 
5
 
6
 class EmFieldType(GenericFieldType):
6
 class EmFieldType(GenericFieldType):

+ 2
- 2
EditorialModel/fieldtypes/pk.py View File

1
 #-*- coding: utf-8 -*-
1
 #-*- coding: utf-8 -*-
2
 
2
 
3
-import EditorialModel.fieldtypes.integer
3
+from . import integer
4
 
4
 
5
 
5
 
6
 ## @todo This EmFieldType is a bit dirty....
6
 ## @todo This EmFieldType is a bit dirty....
7
-class EmFieldType(EditorialModel.fieldtypes.integer.EmFieldType):
7
+class EmFieldType(integer.EmFieldType):
8
 
8
 
9
     help = 'Integer primary key fieldtype'
9
     help = 'Integer primary key fieldtype'
10
 
10
 

+ 2
- 2
EditorialModel/fieldtypes/regexchar.py View File

1
 #-*- coding: utf-8 -*-
1
 #-*- coding: utf-8 -*-
2
 
2
 
3
 import re
3
 import re
4
-import EditorialModel
4
+from . import char
5
 
5
 
6
 
6
 
7
-class EmFieldType(EditorialModel.fieldtypes.char.EmFieldType):
7
+class EmFieldType(char.EmFieldType):
8
 
8
 
9
     help = 'String field validated with a regex. Take two options : max_length and regex'
9
     help = 'String field validated with a regex. Take two options : max_length and regex'
10
 
10
 

+ 1
- 1
EditorialModel/fieldtypes/rel2type.py View File

1
 #-*- coding: utf-8 -*-
1
 #-*- coding: utf-8 -*-
2
 
2
 
3
-from EditorialModel.fieldtypes.generic import GenericFieldType
3
+from .generic import GenericFieldType
4
 from EditorialModel.fields import EmField
4
 from EditorialModel.fields import EmField
5
 
5
 
6
 
6
 

+ 1
- 1
EditorialModel/fieldtypes/text.py View File

1
 #-*- coding: utf-8 -*-
1
 #-*- coding: utf-8 -*-
2
 
2
 
3
-from EditorialModel.fieldtypes.generic import GenericFieldType
3
+from .generic import GenericFieldType
4
 
4
 
5
 
5
 
6
 class EmFieldType(GenericFieldType):
6
 class EmFieldType(GenericFieldType):

Loading…
Cancel
Save