Skip to content

Commit

Permalink
Add E() to indico shell (shortcut for CH getById)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiefMaster committed May 27, 2015
1 parent 5e8562e commit 1d10d41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions indico/cli/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ def get_context(self):
add_to_context(transaction, doc='transaction module', color='cyan!')
add_to_context(IndicoConfigWrapper(Config.getInstance()), 'config', doc='indico config')
add_to_context(current_app, 'app', doc='flask app')
add_to_context(lambda x: ConferenceHolder().getById(x, True), 'E', doc='get event by id')
# Stuff from plugins
signals.plugin.shell_context.send(add_to_context=add_to_context, add_to_context_multi=add_to_context_multi)

Expand Down

0 comments on commit 1d10d41

Please sign in to comment.