app/soc/models/work.py
changeset 533 ba3309b2fd30
parent 513 3c1e16637ad7
child 545 217921e76f50
--- a/app/soc/models/work.py	Fri Nov 21 08:38:53 2008 +0000
+++ b/app/soc/models/work.py	Fri Nov 21 08:41:23 2008 +0000
@@ -22,16 +22,15 @@
 ]
 
 
-import polymodel
-
 from google.appengine.ext import db
 
 from django.utils.translation import ugettext_lazy
 
+import soc.models.linkable
 import soc.models.user
 
 
-class Work(polymodel.PolyModel):
+class Work(soc.models.linkable.Linkable):
   """Model of a Work created by one or more Persons in Roles.
 
   Work is a "base entity" of other more specific "works" created by Persons
@@ -57,24 +56,6 @@
   title.help_text = ugettext_lazy(
       'title of the document; often used in the window title')
 
-  #: Required path, prepended to a "link ID" to form the document URL.
-  #: The combined path and link ID must be globally unique on the
-  #: site.  Except in /site/document (Developer) forms, this field is not
-  #: usually directly editable by the User, but is instead set by controller
-  #: logic to match the "scope" of the document.
-  scope_path = db.StringProperty(required=True,
-      verbose_name=ugettext_lazy('Scope path'))
-  scope_path.help_text = ugettext_lazy(
-    'path portion of URLs, prepended to link ID')
-
-  #: Required link ID, appended to a "path" to form the document URL.
-  #: The combined path and link ID must be globally unique on the
-  #: site (but, unlike some link IDs, a Work link ID can be reused,
-  #: as long as the combination with the preceding path is unique).
-  link_id = db.StringProperty(required=True,
-      verbose_name=ugettext_lazy('Link ID'))
-  link_id.help_text = ugettext_lazy('link ID used in URLs')
-
   #: short name used in places such as the sidebar menu and breadcrumb trail
   #: (optional: title will be used if short_name is not present)
   short_name = db.StringProperty(verbose_name=ugettext_lazy('Short name'))