<s> from django . db import models <EOL> from django . utils . translation import ugettext_lazy as _ , ugettext <EOL> from ionyweb . plugin . models import AbstractPlugin <EOL> class Plugin_WebsiteTitle ( AbstractPlugin ) : <EOL> baseline = models . CharField ( _ ( u'<STR_LIT>' ) , <EOL> max_length = <NUM_LIT:200> , <EOL> blank = True , <EOL> help_text = _ ( u'<STR_LIT>' ) ) <EOL> link_enabled = models . BooleanField ( _ ( u'<STR_LIT>' ) , <EOL> default = True ) <EOL> target_link = models . CharField ( _ ( u'<STR_LIT>' ) , max_length = <NUM_LIT:200> , <EOL> blank = True , default = '<STR_LIT:/>' ) <EOL> margin_top = models . CharField ( _ ( u'<STR_LIT>' ) , blank = True , <EOL> max_length = <NUM_LIT:10> ) <EOL> margin_bottom = models . CharField ( _ ( '<STR_LIT>' ) , blank = True , <EOL> max_length = <NUM_LIT:10> ) <EOL> def link_url ( self ) : <EOL> if self . target_link : <EOL> return self . target_link <EOL> return u'<STR_LIT:/>' <EOL> def __unicode__ ( self ) : <EOL> return u'<STR_LIT>' % ( self . pk , self . title ) <EOL> class Meta : <EOL> verbose_name = ugettext ( u"<STR_LIT>" ) </s>
