[IMP] fields: simple code improvements (add blank lines, remove unused imports)
This commit is contained in:
+5
-2
@@ -1255,6 +1255,7 @@ class Char(_String):
|
||||
return False
|
||||
return ustr(value)[:self.size]
|
||||
|
||||
|
||||
class Text(_String):
|
||||
""" Very similar to :class:`~.Char` but used for longer contents, does not
|
||||
have a size and usually displayed as a multiline text box.
|
||||
@@ -1272,6 +1273,7 @@ class Text(_String):
|
||||
return False
|
||||
return ustr(value)
|
||||
|
||||
|
||||
class Html(_String):
|
||||
type = 'html'
|
||||
_slots = {
|
||||
@@ -2016,8 +2018,9 @@ class Id(Field):
|
||||
def __set__(self, record, value):
|
||||
raise TypeError("field 'id' cannot be assigned")
|
||||
|
||||
|
||||
# imported here to avoid dependency cycle issues
|
||||
from openerp import SUPERUSER_ID
|
||||
from .exceptions import Warning, AccessError, MissingError
|
||||
from .models import check_pg_name, BaseModel, MAGIC_COLUMNS
|
||||
from .exceptions import AccessError, MissingError
|
||||
from .models import check_pg_name, BaseModel
|
||||
from .osv import fields
|
||||
|
||||
Reference in New Issue
Block a user