35 """Model that stores settings for various Home pages. |
35 """Model that stores settings for various Home pages. |
36 |
36 |
37 This Model is the basis for more specific "/home" view settings, such as |
37 This Model is the basis for more specific "/home" view settings, such as |
38 SiteSettings, ProgramSettings, etc. |
38 SiteSettings, ProgramSettings, etc. |
39 """ |
39 """ |
40 |
40 |
41 #: Reference to Document containing the contents of the "/home" page |
41 #: Reference to Document containing the contents of the "/home" page |
42 home = db.ReferenceProperty( |
42 home = db.ReferenceProperty( |
43 reference_class=soc.models.document.Document, |
43 reference_class=soc.models.document.Document, |
44 collection_name='home') |
44 collection_name='home') |
45 home.help_text = ugettext_lazy( |
45 home.help_text = ugettext_lazy( |
46 'Document to be used as the "/home" page static contents.') |
46 'Document to be used as the "/home" page static contents.') |
47 |
47 |
48 #: Valid ATOM or RSS feed url or None if unused. Feed entries are shown |
48 #: Valid ATOM or RSS feed url or None if unused. Feed entries are shown |
49 #: on the site page using Google's JavaScript blog widget |
49 #: on the site page using Google's JavaScript blog widget |
50 feed_url = db.LinkProperty(verbose_name=ugettext_lazy('Feed URL')) |
50 feed_url = db.LinkProperty(verbose_name=ugettext_lazy('Feed URL')) |
51 feed_url.help_text = ugettext_lazy( |
51 feed_url.help_text = ugettext_lazy( |
52 'The URL should be a valid ATOM or RSS feed. ' |
52 'The URL should be a valid ATOM or RSS feed. ' |
53 'Feed entries are shown on the home page.') |
53 'Feed entries are shown on the home page.') |
54 |
|
55 |
54 |
|
55 #: Required path, prepended to a "link name" to form the document URL. |
|
56 #: The combined path and link name must be globally unique on the |
|
57 #: site. Except in /site/docs (Developer) forms, this field is not |
|
58 #: usually directly editable by the User, but is instead set by controller |
|
59 #: logic to match the "scope" of the document. |
|
60 partial_path = db.StringProperty(required=True, |
|
61 verbose_name=ugettext_lazy('Partial path')) |
|
62 partial_path.help_text = ugettext_lazy( |
|
63 'path portion of URLs, prepended to link name') |
|
64 |
|
65 #: Required link name, appended to a "path" to form the document URL. |
|
66 #: The combined path and link name must be globally unique on the |
|
67 #: site (but, unlike some link names, a Work link name can be reused, |
|
68 #: as long as the combination with the preceding path is unique). |
|
69 link_name = db.StringProperty(required=True, |
|
70 verbose_name=ugettext_lazy('Link name')) |
|
71 link_name.help_text = ugettext_lazy('link name used in URLs') |