app/soc/models/work.py
changeset 351 b37fc4c1e189
parent 342 72482d8e5b34
child 400 8f07048d84ef
equal deleted inserted replaced
350:e8f14fde7f0e 351:b37fc4c1e189
    54   title = db.StringProperty(required=True,
    54   title = db.StringProperty(required=True,
    55       verbose_name=ugettext_lazy('Title'))
    55       verbose_name=ugettext_lazy('Title'))
    56   title.help_text = ugettext_lazy(
    56   title.help_text = ugettext_lazy(
    57       'title of the document; often used in the window title')
    57       'title of the document; often used in the window title')
    58 
    58 
    59   #: optional, indexed plain text field used for different purposes,
       
    60   #: depending on the specific type of the work
       
    61   abstract = db.StringProperty(multiline=True)
       
    62   abstract.help_text = ugettext_lazy(
       
    63       'short abstract, summary, or snippet;'
       
    64       ' 500 characters or less, plain text displayed publicly')
       
    65 
       
    66   #: Required path, prepended to a "link name" to form the document URL.
    59   #: Required path, prepended to a "link name" to form the document URL.
    67   #: The combined path and link name must be globally unique on the
    60   #: The combined path and link name must be globally unique on the
    68   #: site.  Except in /site/docs (Developer) forms, this field is not
    61   #: site.  Except in /site/docs (Developer) forms, this field is not
    69   #: usually directly editable by the User, but is instead set by controller
    62   #: usually directly editable by the User, but is instead set by controller
    70   #: logic to match the "scope" of the document.
    63   #: logic to match the "scope" of the document.
    84   #: short name used in places such as the sidebar menu and breadcrumb trail
    77   #: short name used in places such as the sidebar menu and breadcrumb trail
    85   #: (optional: title will be used if short_name is not present)
    78   #: (optional: title will be used if short_name is not present)
    86   short_name = db.StringProperty(verbose_name=ugettext_lazy('Short name'))
    79   short_name = db.StringProperty(verbose_name=ugettext_lazy('Short name'))
    87   short_name.help_text = ugettext_lazy(
    80   short_name.help_text = ugettext_lazy(
    88       'short name used, for example, in the sidebar menu')
    81       'short name used, for example, in the sidebar menu')
       
    82 
       
    83   #: Required db.TextProperty containing the contents of the Work.
       
    84   #: The content is only to be displayed to Persons in Roles eligible to
       
    85   #: view them (which may be anyone, for example, with the site front page).
       
    86   content = db.TextProperty(verbose_name=ugettext_lazy('Content'))
    89   
    87   
    90   #: date when the work was created
    88   #: date when the work was created
    91   created = db.DateTimeProperty(auto_now_add=True)
    89   created = db.DateTimeProperty(auto_now_add=True)
    92   
    90   
    93   #: date when the work was last modified
    91   #: date when the work was last modified