def twitter_inbox():
 if (not auth.s3_logged_in()):
  session.error = T('Requires Login!')
  redirect(URL(c='default', f='user', args='login'))
 tablename = 'msg_twitter'
 table = s3db.msg_twitter
 s3.filter = (table.inbound == True)
 table.inbound.readable = False
 s3.crud_strings[tablename] = Storage(title_display=T('Tweet Details'), title_list=T('Twitter InBox'), label_list_button=T('View Twitter InBox'), label_delete_button=T('Delete Tweet'), msg_record_deleted=T('Tweet deleted'), msg_list_empty=T('No Tweets currently in InBox'))
 s3db.configure(tablename, editable=False, insertable=False, list_fields=['id', 'date', 'from_address', 'body'])
 return s3_rest_controller(module, 'twitter')

def twitter_inbox ( ) : if ( not auth . s3_logged_in ( ) ) : session . error = T ( 'Requires Login!' ) redirect ( URL ( c = 'default' , f = 'user' , args = 'login' ) ) tablename = 'msg_twitter' table = s3db . msg_twitter s3 . filter = ( table . inbound == True ) table . inbound . readable = False s3 . crud_strings [ tablename ] = Storage ( title_display = T ( 'Tweet Details' ) , title_list = T ( 'Twitter InBox' ) , label_list_button = T ( 'View Twitter InBox' ) , label_delete_button = T ( 'Delete Tweet' ) , msg_record_deleted = T ( 'Tweet deleted' ) , msg_list_empty = T ( 'No Tweets currently in InBox' ) ) s3db . configure ( tablename , editable = False , insertable = False , list_fields = [ 'id' , 'date' , 'from_address' , 'body' ] ) return s3_rest_controller ( module , 'twitter' )
restful crud controller for the twitter inbox - all inbound tweets are visible here .