doc.islive = False
doc.save()
+ def get_basic_url(self):
+ folders = []
+ curfolder = self.folder
+ while curfolder != None:
+ folders.append(curfolder.slug)
+ curfolder = curfolder.parent
+
+ folders.reverse()
+ folderstring = "/".join(folders)
+ if folderstring != u'':
+ folderstring = "%s/" %(folderstring,)
+
+ return "%s%s/" %(folderstring, self.slug)
+
class Admin:
pass
def __unicode__(self):
return u'%s' %(self.title)
+ def get_basic_url(self):
+ folders = []
+ curfolder = self
+ while curfolder != None:
+ folders.append(curfolder.slug)
+ curfolder = curfolder.parent
+
+ folders.reverse()
+ folderstring = "/".join(folders)
+ if folderstring != u'':
+ folderstring = "%s/" %(folderstring,)
+
+ return "%s/" %(folderstring)
+
class Admin:
pass