Package spammcan :: Module controllers :: Class Root
[hide private]

Class Root

source code

                       object --+        
                                |        
turbogears.controllers.Controller --+    
                                    |    
turbogears.controllers.RootController --+
                                        |
                                       Root

The root controller of the application.

Instance Methods [hide private]
 
index(self, paste=None, hl=None, ln=True, st=None, wrap=80, tg_errors=None, *_decorator__varargs, **_decorator__kwargs)
"Show the paste given by GUID.
source code
 
paste(self, paste=None, hl=None, ln=True, st=None, wrap=80, tg_errors=None, *_decorator__varargs, **_decorator__kwargs)
"Show the paste given by GUID.
source code
 
download(self, paste, tg_errors=None, *args, **kw)
Serve the paste given by GUID as plain text.
source code
 
new(self, paste=None, tg_errors=None, *_decorator__varargs, **_decorator__kwargs)
Show the form for a new paste.
source code
 
create(self, code, format=None, title=None, *_decorator__varargs, **_decorator__kwargs)
Save submitted paste and redirect to '/paste' to show it.
source code
 
mypastes(self, uid=None, *_decorator__varargs, **_decorator__kwargs) source code
 
about(self, package=None, *_decorator__varargs, **_decorator__kwargs)
Display information page about the software.
source code
 
help(self, package=None, *_decorator__varargs, **_decorator__kwargs)
Display usage information for the software.
source code
 
login(self, forward_url=None, *args, **kw)
Show the login form or forward user to previously requested page.
source code
 
logout(self, *_decorator__varargs, **_decorator__kwargs)
Log out the current identity and redirect to start page.
source code

Inherited from turbogears.controllers.RootController (private): _cp_log_access, _cp_log_message

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]

Inherited from turbogears.controllers.RootController: accesslog, is_app_root, msglog, msglogfunc

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

index(self, paste=None, hl=None, ln=True, st=None, wrap=80, tg_errors=None, *_decorator__varargs, **_decorator__kwargs)

source code 

"Show the paste given by GUID.

Decorators:
  • @expose(template= "spammcan.templates.paste")
  • @validate(validators= dict(paste= ValidPasteGuid(), hl= Range(if_invalid= None), ln= validators.StringBoolean(if_invalid= True), st= ValidStyle(if_invalid= None, convert_value= False), wrap= validators.Int(if_invalid= None)))

paste(self, paste=None, hl=None, ln=True, st=None, wrap=80, tg_errors=None, *_decorator__varargs, **_decorator__kwargs)

source code 

"Show the paste given by GUID.

Decorators:
  • @expose(template= "spammcan.templates.paste")
  • @validate(validators= dict(paste= ValidPasteGuid(), hl= Range(if_invalid= None), ln= validators.StringBoolean(if_invalid= True), st= ValidStyle(if_invalid= None, convert_value= False), wrap= validators.Int(if_invalid= None)))

download(self, paste, tg_errors=None, *args, **kw)

source code 

Serve the paste given by GUID as plain text.

Decorators:
  • @expose(content_type= "text/plain")
  • @validate(validators= dict(paste= ValidPasteGuid()))

new(self, paste=None, tg_errors=None, *_decorator__varargs, **_decorator__kwargs)

source code 

Show the form for a new paste.

Decorators:
  • @expose(template= "spammcan.templates.new")
  • @validate(validators= dict(paste= ValidPasteGuid(if_invalid= None)))

create(self, code, format=None, title=None, *_decorator__varargs, **_decorator__kwargs)

source code 

Save submitted paste and redirect to '/paste' to show it.

Decorators:
  • @expose(template= "spammcan.templates.paste")
  • @validate(form= paste_form)
  • @error_handler(new)

mypastes(self, uid=None, *_decorator__varargs, **_decorator__kwargs)

source code 
Decorators:
  • @expose(template= 'spammcan.templates.list')

about(self, package=None, *_decorator__varargs, **_decorator__kwargs)

source code 

Display information page about the software.

Decorators:
  • @expose(template= "spammcan.templates.static")

help(self, package=None, *_decorator__varargs, **_decorator__kwargs)

source code 

Display usage information for the software.

Decorators:
  • @expose(template= "spammcan.templates.static")

login(self, forward_url=None, *args, **kw)

source code 

Show the login form or forward user to previously requested page.

Decorators:
  • @expose(template= "spammcan.templates.login")

logout(self, *_decorator__varargs, **_decorator__kwargs)

source code 

Log out the current identity and redirect to start page.

Decorators:
  • @expose()