~divmod-dev/divmod.org/NULLIFY-versus-disallowNone-2736

« back to all changes in this revision

Viewing changes to ClickChronicle/clickchronicle/publicpage.py

  • Committer: glyph
  • Date: 2006-01-11 17:00:20 UTC
  • Revision ID: svn-v4:866e43f7-fbfc-0310-8f2a-ec88d1da2979:trunk:4021

Author: glyph
Reviewer: moe

Fixes #382

This merge provides basic sharing functionality, such as the ability to give a
user a publicly-viewable web page (at /by/username, for the cool kids, or
/users, if you're a fuddy-duddy).

It also adds (working) support for a simple ClickChronicle public page at
/by/username/clicks, which exposes the "my clicks" page without the "actions"
column, and also (not working) Hyperbola at /by/username/blog which should some
day soon grow into a blog.  Patches accepted :).


Show diffs side-by-side

added added

removed removed

Lines of Context:
300
300
 
301
301
    title = 'ClickChronicle'
302
302
    maxTitleLength = 70
303
 
    maxClickQueryResults = 10
 
303
    maxClickQueryResults = 0
304
304
 
305
305
    def __init__(self, publicPage, staticContent, forUser=None):
 
306
        """
 
307
        Create a PublicIndexPage, e.g. a resource to be displayed at the root
 
308
        of the ClickChronicle application.
 
309
 
 
310
        @param publicPage: a ClickChroniclePublicPage
 
311
        @param staticContent: some nevow dom junk
 
312
        @param forUser: a unicode user identifier
 
313
        """
306
314
        templateContent = staticTemplate("index.html")
307
 
        super(PublicIndexPage, self).__init__(None, None, templateContent, staticContent, forUser)
 
315
        super(PublicIndexPage, self).__init__(templateContent, staticContent, forUser)
308
316
 
309
317
        self.clickContainerPattern = inevow.IQ(templateContent).patternGenerator('click-container')
310
318