All pastes #424825 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-04-05 00:52 UTC
rendered paste body
Set status of testuser to approved (1)

--> -->
 
 
NameError	Python 2.3.4: /usr/bin/python2
Wed Apr 4 17:51:23 2007

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /var/www/html/admin/accounts/userbox.cgi
  305     if username and action=='edit':
  306         website.handle_group_mods(dbh, form, 'userbox.cgi', username,
  307                                   None, fixed_item='username', auth_username=auth_username)
  308 
  309 website.print_footer("Fedora User")
builtin None = None, fixed_item undefined, auth_username = 'wtogami'

 /var/www/html/admin/accounts/website.py in handle_group_mods(dbh=<website.PostgresDBConnection instance>, form=FieldStorage(None, None, [MiniFieldStorage('user...eldStorage('_role_approve', 'Approve Selected')]), url='userbox.cgi', username='testuser', groupname=None, fixed_item='username', auth_username='wtogami')
  625                         auto_approve_groups:
  626                     _process_auto_approvals(dbc, role_group, role_user_id,
  627                             role_domain)
  628                 if action_name != 'approve':
  629                     joinmsg = ''
role_domain = ''

 /var/www/html/admin/accounts/website.py in _process_auto_approvals(dbc=<website.PostgresDBCursor instance>, newGroup='cla_redhat', userid=101445, domain='')
   82                     " 'user', 'approved'" \
   83                     " from project_group where name = %s"
   84             dbc.execute(qry, (role_user_id, role_domain, group))
   85         else:
   86             # User was already approved for this group.
dbc = <website.PostgresDBCursor instance>, dbc.execute = <bound method pgdbCursor.execute of <pgdb.pgdbCursor instance>>, qry = "insert into role (person_id, project_group_id, r...r', 'approved' from project_group where name = %s", role_user_id undefined, role_domain undefined, group = 'cla_done'

NameError: global name 'role_user_id' is not defined
      args = ("global name 'role_user_id' is not defined",)