app/soc/models/work.py
changeset 512 aae25d2b4464
parent 477 8a8b1bd035c4
child 513 3c1e16637ad7
equal deleted inserted replaced
511:52557918ec8f 512:aae25d2b4464
    55   title = db.StringProperty(required=True,
    55   title = db.StringProperty(required=True,
    56       verbose_name=ugettext_lazy('Title'))
    56       verbose_name=ugettext_lazy('Title'))
    57   title.help_text = ugettext_lazy(
    57   title.help_text = ugettext_lazy(
    58       'title of the document; often used in the window title')
    58       'title of the document; often used in the window title')
    59 
    59 
    60   #: Required path, prepended to a "link name" to form the document URL.
    60   #: Required path, prepended to a "link ID" to form the document URL.
    61   #: The combined path and link name must be globally unique on the
    61   #: The combined path and link ID must be globally unique on the
    62   #: site.  Except in /site/document (Developer) forms, this field is not
    62   #: site.  Except in /site/document (Developer) forms, this field is not
    63   #: usually directly editable by the User, but is instead set by controller
    63   #: usually directly editable by the User, but is instead set by controller
    64   #: logic to match the "scope" of the document.
    64   #: logic to match the "scope" of the document.
    65   partial_path = db.StringProperty(required=True,
    65   partial_path = db.StringProperty(required=True,
    66       verbose_name=ugettext_lazy('Partial path'))
    66       verbose_name=ugettext_lazy('Partial path'))
    67   partial_path.help_text = ugettext_lazy(
    67   partial_path.help_text = ugettext_lazy(
    68     'path portion of URLs, prepended to link name')
    68     'path portion of URLs, prepended to link ID')
    69 
    69 
    70   #: Required link name, appended to a "path" to form the document URL.
    70   #: Required link ID, appended to a "path" to form the document URL.
    71   #: The combined path and link name must be globally unique on the
    71   #: The combined path and link ID must be globally unique on the
    72   #: site (but, unlike some link names, a Work link name can be reused,
    72   #: site (but, unlike some link IDs, a Work link ID can be reused,
    73   #: as long as the combination with the preceding path is unique).
    73   #: as long as the combination with the preceding path is unique).
    74   link_name = db.StringProperty(required=True,
    74   link_id = db.StringProperty(required=True,
    75       verbose_name=ugettext_lazy('Link name'))
    75       verbose_name=ugettext_lazy('Link ID'))
    76   link_name.help_text = ugettext_lazy('link name used in URLs')
    76   link_id.help_text = ugettext_lazy('link ID used in URLs')
    77 
    77 
    78   #: short name used in places such as the sidebar menu and breadcrumb trail
    78   #: short name used in places such as the sidebar menu and breadcrumb trail
    79   #: (optional: title will be used if short_name is not present)
    79   #: (optional: title will be used if short_name is not present)
    80   short_name = db.StringProperty(verbose_name=ugettext_lazy('Short name'))
    80   short_name = db.StringProperty(verbose_name=ugettext_lazy('Short name'))
    81   short_name.help_text = ugettext_lazy(
    81   short_name.help_text = ugettext_lazy(