コード例 #1
0
ファイル: fields.py プロジェクト: cream/python-cream
 def to_python(self, value):
     if isinstance(value, basestring):
         return FontDict.fromstring(value)
     else:
         return FontDict(_FontField.to_python(self, value))
コード例 #2
0
ファイル: fields.py プロジェクト: cream/python-cream
 def conf_to_python(self, value):
     return FontDict(_FontField.conf_to_python(self, value))
コード例 #3
0
ファイル: fields.py プロジェクト: cream/python-cream
 def custom_default(self):
     return FontDict(_FontField.custom_default(self))