Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/persistence/jokebook.py
diff options
context:
space:
mode:
authorAntoine van Gelder <antoine@g7.org.za>2007-10-29 09:21:06 (GMT)
committer Antoine van Gelder <antoine@g7.org.za>2007-10-29 09:21:06 (GMT)
commit420f73b64979f4a695c780f080c8873229260f27 (patch)
tree82aca565218aaf445ffb0f556c5f5c91024d119c /persistence/jokebook.py
parent05d7e0283b978bb4836a1ddf8833b039ae55f130 (diff)
JokeMachine-3.xo
* Feature: Put alerts up when joke submitted and approved over mesh * Feature: Put alert up advising patience when joining a shared jokebook * Feature: Made Lesson Plans button work * Feature: Safe fallback for builds without sugar.alert * Feature: Hooked LanguageCombo up * i18n: Created (a rough!) Afrikaans translation * Fixed: Prepended Cover on preview * Fixed: Don't hardcode JokeEditor delete button position * Fixed: On read jokebook & empty -> "Edit My Jokes" -> Go to edit my jokes tab * Updated :Mesh code for dbus tubes changes
Diffstat (limited to 'persistence/jokebook.py')
-rw-r--r--persistence/jokebook.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/persistence/jokebook.py b/persistence/jokebook.py
index acadf04..48c7297 100644
--- a/persistence/jokebook.py
+++ b/persistence/jokebook.py
@@ -73,8 +73,14 @@ class Jokebook(object):
'''jokes submitted to this jokebook pending approval'''
def default(self): return []
def get(self): return self.__submissions
-
+ @PersistentProperty
+ def show():
+ '''should this jokebook be visible to others'''
+ def default(self): return False
+ def get(self): return self.__show
+ def set(self, value): self.__show = value
+
# TODO - this should really be transparent
@property
def next_joke_id(self):