app/soc/models/linkable.py
changeset 1970 385ce0c25bd0
parent 1308 35b75ffcbb37
child 2162 03ed2fa5ccc8
equal deleted inserted replaced
1969:236f677c158c 1970:385ce0c25bd0
   113   #: the LINK_ID_REGEX.
   113   #: the LINK_ID_REGEX.
   114   link_id = db.StringProperty(required=True,
   114   link_id = db.StringProperty(required=True,
   115       verbose_name=ugettext('Link ID'))
   115       verbose_name=ugettext('Link ID'))
   116   link_id.help_text = ugettext(
   116   link_id.help_text = ugettext(
   117       'Link ID is used as part of various URL links throughout the site.'
   117       'Link ID is used as part of various URL links throughout the site.'
   118       ' Lower ASCII characters, digits, and underscores only.')
   118       ' Lowercase ASCII characters, digits, and underscores only.'
       
   119       ' The regexp used to validate is "%s".') % LINK_ID_PATTERN_CORE
   119 
   120 
   120   #: Optional Self Reference property to another Linkable entity which defines
   121   #: Optional Self Reference property to another Linkable entity which defines
   121   #: the "scope" of this Linkable entity. The back-reference in the Linkable 
   122   #: the "scope" of this Linkable entity. The back-reference in the Linkable 
   122   #: model is a Query named 'links'.
   123   #: model is a Query named 'links'.
   123   scope = db.SelfReferenceProperty(required=False,
   124   scope = db.SelfReferenceProperty(required=False,