Package bodhi :: Module controllers :: Class Root
[hide private]
[frames] | no frames]

Class Root

source code

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

Instance Methods [hide private]
 
exception(self, tg_exceptions=None)
Generic exception handler
source code
 
jsonRequest(self) source code
 
index(self)
The main dashboard.
source code
 
pkgs(self) source code
 
login(self, forward_url=None, previous_url=None, *args, **kw) source code
 
logout(self) source code
 
list(self, release=None, bugs=None, cves=None, status=None, type=None)
Return a list of updates based on given parameters
source code
 
mine(self)
List all updates submitted by the current user
source code
 
show(self, update) source code
 
revoke(self, nvr)
Revoke a push request for a specified update
source code
 
move(self, nvr) source code
 
push(self, nvr)
Submit an update for pushing
source code
 
unpush(self, nvr)
Submit an update for unpushing
source code
 
delete(self, update)
Delete a pending update
source code
 
edit(self, update)
Edit an update
source code
 
save(self, builds, release, type, cves, notes, bugs, close_bugs=False, edited=False, **kw)
Save an update.
source code
 
default(self, *args, **kw)
This method allows for /[(pending|testing)/]<release>[/<update>] requests.
source code
 
comment(self, text, title, karma, tg_errors=None) source code
 
confirm_delete(self, nvr=None, ok=None, cancel=None) 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]
  new = NewUpdateController()
  admin = AdminController()
  search = SearchController()
  rss = Feed("rss2.0")
  comment_form = CommentForm()
  ok_cancel_form = OkCancelForm()

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

index(self)

source code 
The main dashboard. Here we generate the Tabber and all of the DataGrids for the various tabs.
Decorators:
  • @identity.require(identity.not_anonymous())
  • @expose(template= 'bodhi.templates.welcome')

pkgs(self)

source code 
Decorators:
  • @expose(template= 'bodhi.templates.pkgs')
  • @paginate('pkgs', default_order= 'name', limit= 20, allow_limit_override= True)

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

source code 
Decorators:
  • @expose(template= "bodhi.templates.login", allow_json= True)

logout(self)

source code 
Decorators:
  • @expose()

list(self, release=None, bugs=None, cves=None, status=None, type=None)

source code 
Return a list of updates based on given parameters
Decorators:
  • @expose(template= "bodhi.templates.list", allow_json= True)
  • @paginate('updates', limit= 20, allow_limit_override= True)

mine(self)

source code 
List all updates submitted by the current user
Decorators:
  • @expose(template= "bodhi.templates.list")
  • @identity.require(identity.not_anonymous())
  • @paginate('updates', limit= 20, allow_limit_override= True)

show(self, update)

source code 
Decorators:
  • @identity.require(identity.not_anonymous())
  • @expose(template= 'bodhi.templates.show')

revoke(self, nvr)

source code 
Revoke a push request for a specified update
Decorators:
  • @expose()
  • @identity.require(identity.not_anonymous())

move(self, nvr)

source code 
Decorators:
  • @exception_handler(exception)
  • @expose(allow_json= True)
  • @identity.require(identity.not_anonymous())

push(self, nvr)

source code 
Submit an update for pushing
Decorators:
  • @exception_handler(exception)
  • @expose(allow_json= True)
  • @identity.require(identity.not_anonymous())

unpush(self, nvr)

source code 
Submit an update for unpushing
Decorators:
  • @expose()
  • @identity.require(identity.not_anonymous())

delete(self, update)

source code 
Delete a pending update
Decorators:
  • @exception_handler(exception)
  • @expose(allow_json= True)
  • @identity.require(identity.not_anonymous())

edit(self, update)

source code 
Edit an update
Decorators:
  • @identity.require(identity.not_anonymous())
  • @expose(template= 'bodhi.templates.form')

save(self, builds, release, type, cves, notes, bugs, close_bugs=False, edited=False, **kw)

source code 
Save an update. This includes new updates and edited.
Decorators:
  • @expose(allow_json= True)
  • @error_handler(new.index)
  • @validate(form= update_form)
  • @identity.require(identity.not_anonymous())

default(self, *args, **kw)

source code 
This method allows for /[(pending|testing)/]<release>[/<update>] requests.
Decorators:
  • @expose(template= 'bodhi.templates.list')
  • @identity.require(identity.not_anonymous())
  • @paginate('updates', limit= 20, allow_limit_override= True)

comment(self, text, title, karma, tg_errors=None)

source code 
Decorators:
  • @expose()
  • @error_handler()
  • @validate(form= comment_form)
  • @validate(validators= {'karma': validators.Int()})
  • @identity.require(identity.not_anonymous())

confirm_delete(self, nvr=None, ok=None, cancel=None)

source code 
Decorators:
  • @expose(template= 'bodhi.templates.confirmation')