trytond-galatea_blog-old/configuration.py
2016-03-29 12:00:24 +02:00

21 lines
635 B
Python

# This file is part galatea_blog module for Tryton.
# The COPYRIGHT file at the top level of this repository contains
# the full copyright notices and license terms.
from trytond.model import fields
from trytond.pool import PoolMeta
__all__ = ['Configuration']
class Configuration:
__metaclass__ = PoolMeta
__name__ = 'galatea.configuration'
blog_thumb_size = fields.Integer('Blog Thumb Size',
help='Thumbnail Blog Image Size (width x height)')
blog_thumb_crop = fields.Boolean('Blog Thumb Crop',
help='Crop Thumb Blog Image')
@staticmethod
def default_blog_thumb_size():
return 300