+ default_name = "default"
+
+ ### This was a bit more complex than I thought it would be...
+ ### Sure it probably works ok, but I'd rather duct-tape it for now (above)
+ # @classmethod
+ # def get_primary_template(cls):
+ # return cls.get_by(owner=None, title=cls.default_name)
+ #
+ # @classmethod
+ # def make_primary_template(cls):
+ # if not cls.get_primary_template():
+ # page = cls(owner=None, title=cls.default_name, visible=True)
+ # prepositions = ['by','for','of']
+ # for preposition in prepositions:
+ # GalleryWidget(page=page, string=preposition+":me")
+ #
+ # @classmethod
+ # def clone_primary_template(cls, user):
+ # template = cls.get_primary_template()
+ # new = cls(owner=user, title=template.title)
+ # for gallery in template.galleries:
+ # new.galleries.append(GalleryWidget(user=user, string=gallery.string))
+ #
+ #
+ # session.add(template)
+ # template.user = user
+ # template.id = None
+ # return template
+