app/soc/models/work.py
changeset 220 3ebe00b44212
parent 206 832335761384
child 242 17984abf0c74
equal deleted inserted replaced
219:c949fe7cd731 220:3ebe00b44212
    56   abstract = db.StringProperty(multiline=True)
    56   abstract = db.StringProperty(multiline=True)
    57   abstract.help_text = ugettext_lazy(
    57   abstract.help_text = ugettext_lazy(
    58       'short abstract, summary, or snippet;'
    58       'short abstract, summary, or snippet;'
    59       ' 500 characters or less, plain text displayed publicly')
    59       ' 500 characters or less, plain text displayed publicly')
    60 
    60 
       
    61   #: Required path, prepended to a "link name" to form the document URL.
       
    62   #: The combined path and link name must be globally unique on the
       
    63   #: site.  Except in /site/docs (Developer) forms, this field is not
       
    64   #: usually directly editable by the User, but is instead set by controller
       
    65   #: logic to match the "scope" of the document.
       
    66   partial_path = db.StringProperty(required=True,
       
    67       verbose_name=ugettext_lazy('Partial path'))
       
    68   partial_path.help_text = ugettext_lazy(
       
    69     'path portion of URLs, prepended to link name')
       
    70 
    61   #: Required link name, appended to a "path" to form the document URL.
    71   #: Required link name, appended to a "path" to form the document URL.
    62   #: The combined "path" and link name must be globally unique on the
    72   #: The combined path and link name must be globally unique on the
    63   #: site (but, unlike some link names, a Work link name can be reused,
    73   #: site (but, unlike some link names, a Work link name can be reused,
    64   #: as long as the combination with the preceding path is unique).
    74   #: as long as the combination with the preceding path is unique).
    65   link_name = db.StringProperty(required=True,
    75   link_name = db.StringProperty(required=True,
    66       verbose_name=ugettext_lazy('Link name'))
    76       verbose_name=ugettext_lazy('Link name'))
    67   link_name.help_text = ugettext_lazy('link name used in URLs')
    77   link_name.help_text = ugettext_lazy('link name used in URLs')